mirricraft-skript/-mirricraft-old.sk

413 lines
18 KiB
Plaintext
Raw Normal View History

2020-10-20 00:39:03 +00:00
command /mirricraft [<string>] [<string>] [<string>]:
2020-10-20 00:37:11 +00:00
description: MirriCraft
aliases: /mirri, /mc
executable by: players
trigger:
if arg-1 is not set:
2020-10-20 00:39:03 +00:00
make player execute command "/mirricraft item"
make player execute command "/mirricraft gui"
2020-10-20 00:37:11 +00:00
stop
else:
2020-10-20 00:39:03 +00:00
if arg-1 is "gui":
if arg-2 is not set:
wait 2 tick
open chest inventory with 3 row named "MirriCraft" to player
wait 2 tick
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
loop integers between 0 and 26:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
if player have permission "mirricraft.visit":
format slot 11 of player with compass named "&4Mene" with lore "&o&fTila: Käytössä" to close then run [execute player command "/mirricraft gui visit"]
2020-10-20 00:37:11 +00:00
else:
2020-10-20 00:39:03 +00:00
format slot 11 of player with compass named "&4Mene" with lore "&o&fTila: Pois käytöstä" to close then run [execute player command "/mirricraft visit"]
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
#if player have permission "mirricraft.kits":
# format slot 12 of player with chest named "&6Kits" with lore "&o&fTila: Käytössä" to close then run [execute player command "/mirricraft kits"]
#else:
# format slot 12 of player with chest named "&6Kits" with lore "&o&fTila: Pois käytöstä" to close then run [execute player command "/mirricraft kits"]
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
if player have permission "mirricraft.vip":
format slot 13 of player with diamond named "&bVIP" with lore "&o&fTila: Käytössä" to close then run [execute player command "/mirricraft gui vip"]
else:
format slot 13 of player with diamond named "&bVIP" with lore "&o&fTila: Pois käytöstä" to close then run [execute player command "/mirricraft gui vip"]
2020-10-20 00:37:11 +00:00
format slot 15 of player with player's skull named "&6Player" with lore "&o&f%player's name%" to close then run [execute player command "/mirricraft gui player"]
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
#if player have permission "mirricraft.admin":
# format slot 16 of player with diamond axe named "&5Ylläpito" with lore "&o&fTila: Käytössä" to close then run [execute player command "/mirricraft admin"]
#else:
# format slot 16 of player with diamond axe named "&5Ylläpito" with lore "&o&fTila: Pois käytöstä" to close then run [execute player command "/mirricraft admin"]
2020-10-20 00:37:11 +00:00
stop
else:
2020-10-20 00:39:03 +00:00
if arg-2 is "visit":
if player have permission "mirricraft.visit":
wait 2 tick
open chest inventory with 4 row named "MirriCraft - Mene" to player
wait 2 tick
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
loop integers between 0 and 35:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
format slot 27 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"]
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
format slot 11 of player with diamond sword with no nbt named "&f&nTruelo" with lore "&o&fSelviydy elämän haasteista" and "&7Avautuu myöhemmin" to close then run [execute player command "/mirricraft visit truelo"]
2020-10-23 16:41:09 +00:00
format slot 13 of player with allium named "&f&nUtopia" with lore "&o&fVain luovuus on rajanasi" to close then run [execute player command "/mirricraft visit utopia"]
format slot 15 of player with oak sapling named "&f&nSkyBlock" with lore "&o&fTunne vapauden tuulenvire" to close then run [execute player command "/mirricraft visit skyblock"]
2021-09-11 17:57:57 +00:00
format slot 21 of player with end crystal named "&f&nMinigames" with lore "&o&fHauskaa kavereiden kanssa" to close then run [execute player command "/mirricraft visit minigames"]
format slot 23 of player with ender eye named "&f&nMultiverse" with lore "&o&fKäväise vanhoissa maailmoissa" and "&7Suljettu toistaiseksi" to close then run [execute player command "/mirricraft visit multiverse"]
2020-10-23 16:41:09 +00:00
format slot 35 of player with nether star named "&fLobby" to close then run [execute player command "/mirricraft visit lobby"]
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
if player's world is "lobby":
stop
else:
stop
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
stop
if arg-2 is "vip":
if player has the permission "mirricraft.vip":
wait 2 tick
open chest inventory with 4 row named "VIP" to player
wait 2 tick
loop integers between 0 and 35:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
format slot 27 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"]
if player's world is "lobby":
format slot 11 of player with ender chest named "&fCosmetics" to close then run [execute player command "/mirricraft vip cosmetics"]
format slot 13 of player with elytra named "&fFly" to close then run [execute player command "/mirricraft vip fly"]
format slot 15 of player with music disc cat named "&fMusic" to close then run [execute player command "/mirricraft vip music"]
else:
format slot 11 of player with white standing banner named "&fBannerBuilder" to close then run [execute player command "/mirricraft vip bannerbuilder"]
format slot 13 of player with elytra named "&fFly" to close then run [execute player command "/mirricraft vip fly"]
format slot 15 of player with ender chest named "&fEnderChest" to close then run [execute player command "/mirricraft vip enderchest"]
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
stop
if arg-2 is "player":
wait 2 tick
open chest inventory with 5 row named "%player's name%" to player
2020-10-20 00:37:11 +00:00
wait 2 tick
2020-10-20 00:39:03 +00:00
loop integers between 0 and 44:
2020-10-20 00:37:11 +00:00
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
2020-10-20 00:39:03 +00:00
format slot 36 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"]
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
stop
else if arg-1 is "visit":
if player has the permission "mirricraft.visit":
if arg-2 is "lobby":
2023-04-23 15:24:30 +00:00
wait 2 tick
2020-10-20 00:39:03 +00:00
connect player to "lobby"
stop
else if arg-2 is "truelo":
2023-04-23 15:24:30 +00:00
wait 2 tick
2020-10-20 00:39:03 +00:00
connect player to "truelo"
stop
else if arg-2 is "utopia":
2023-04-23 15:24:30 +00:00
wait 2 tick
2020-10-20 00:39:03 +00:00
connect player to "utopia"
stop
else if arg-2 is "skyblock":
2023-04-23 15:24:30 +00:00
wait 2 tick
2020-10-20 00:39:03 +00:00
connect player to "skyblock"
stop
else if arg-2 is "minigames":
2023-04-23 15:24:30 +00:00
wait 2 tick
2020-10-20 00:39:03 +00:00
connect player to "minigames"
stop
else if arg-2 is "multiverse":
2023-04-23 15:24:30 +00:00
wait 2 tick
2020-10-20 00:39:03 +00:00
connect player to "multiverse"
stop
else if arg-2 is "multiverse-hub" or "hub" or "multiverse-creative" or "multiverse-survival" or "multiverse-skyblock":
if arg-2 is "multiverse-hub":
2023-04-23 15:24:30 +00:00
wait 2 tick
teleport player to spawn of "hub"
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
if arg-2 is "multiverse-creative":
2023-04-23 15:24:30 +00:00
wait 2 tick
teleport player to spawn of "creative"
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
if arg-2 is "multiverse-survival":
2023-04-23 15:24:30 +00:00
wait 2 tick
teleport player to spawn of "survival"
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
if arg-2 is "multiverse-skyblock":
2023-04-23 15:24:30 +00:00
wait 2 tick
teleport player to spawn of "skyblock"
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
stop
else:
message "&7[&2MIRRICRAFT&7]&r Sinun tulee syöttää matkakohde, johon haluat matkustaa"
stop
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
stop
2020-10-20 00:37:11 +00:00
else if arg-1 is "item":
2020-10-20 00:39:03 +00:00
if player's world is "lobby":
remove all items from player
set slot 0 of player's inventory to 1 of compass named "&4Mene"
set slot 4 of player's inventory to 1 of diamond named "&bVIP"
set slot 8 of player's inventory to 1 of player's skull named "&6%player's name%"
2020-10-20 00:39:03 +00:00
else:
set slot 8 of player's inventory to 1 of ender chest named "&fMirriCraft"
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
else if arg-1 is "gamemode":
if arg-2 is "0" or "s" or "survival":
if player has the permission "mirricraft.gamemode.survival":
set gamemode of player to Survival
stop
stop
if arg-2 is "1" or "c" or "creative":
if player has the permission "mirricraft.gamemode.creative":
set gamemode of player to Creative
stop
stop
if arg-2 is "2" or "a" or "adventure":
if player has the permission "mirricraft.gamemode.adventure":
set gamemode of player to Adventure
stop
stop
if arg-2 is "3" or "sp" or "spectator":
if player has the permission "mirricraft.gamemode.spectator":
set gamemode of player to Spectator
stop
stop
stop
else if arg-1 is "clearinventory":
if player has the permission "mirricraft.clearinventory":
remove all items from player
stop
else if arg-1 is "vip":
if player has the permission "mirricraft.vip":
if arg-2 is "fly":
if {fly.%player's name%} is not set:
2020-10-20 00:39:03 +00:00
message "&7[&2MirriCraft&7]&r Lento on nyt sallittu"
set player's flight mode to true
set {fly.%player's name%} to true
2020-10-20 00:39:03 +00:00
stop
message "&7[&2MirriCraft&7]&r Lento on pois käytöstä"
set player's flight mode to false
delete {fly.%player's name%}
2020-10-20 00:39:03 +00:00
stop
if arg-2 is "bannerbuilder":
wait 2 tick
make player execute command "/bannerbuilder"
stop
if arg-2 is "cosmetics":
wait 2 tick
make player execute command "/uc menu main"
stop
if arg-2 is "music":
wait 2 tick
make player execute command "/music"
stop
if arg-2 is "enderchest":
wait 2 tick
open the player's ender chest to the player
stop
stop
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
else if arg-1 is "reload":
if player has the permission "mirricraft.admin":
message "&7[&2MirriCraft&7]&r Reloading..."
2020-10-20 00:57:37 +00:00
make player execute command "/skript reload mirricraft-old"
2020-10-20 00:39:03 +00:00
stop
2020-10-20 00:37:11 +00:00
stop
2020-10-20 00:39:03 +00:00
stop
command /lobby:
description: Lobby
executable by: players
trigger:
make player execute command "/mirricraft visit lobby"
stop
command /vip:
description: VIP
executable by: players
trigger:
make player execute command "/mirricraft gui vip"
stop
2020-10-20 00:37:11 +00:00
command /visit [<text>]:
description: Visit
executable by: players
trigger:
if arg-1 is not set:
make player execute command "/mirricraft visit"
stop
else:
make player execute command "/mirricraft visit %arg-1%"
stop
2020-10-24 03:31:01 +00:00
2020-10-20 00:39:03 +00:00
#command /disabledcommands:
# description: Disabled Commands
# aliases: /disabled
# executable by: players
# trigger:
# stop
2020-10-20 00:37:11 +00:00
# OTHER FUNCTIONS
# --- MirriCraft Item ---
2023-04-26 14:44:54 +00:00
on join:
make player execute command "/mirricraft item"
stop
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
on respawn:
2020-10-20 00:37:11 +00:00
make player execute command "/mirricraft item"
stop
2023-04-26 14:44:54 +00:00
on click:
if event-item is ender chest named "&fMirriCraft":
make player execute command "/mirricraft gui"
cancel the event
wait 2 tick
if event-item is compass named "&4Mene":
make player execute command "/mirricraft gui visit"
cancel the event
wait 2 tick
if event-item is diamond named "&bVIP":
make player execute command "/mirricraft gui vip"
cancel the event
wait 2 tick
if event-item is player's skull named "&6%player's name%":
make player execute command "/mirricraft gui player"
cancel the event
wait 2 tick
2021-10-02 19:19:09 +00:00
#on inventory click:
# if event-item is ender chest named "&fMirriCraft":
# cancel the event
# if event-item is compass named "&4Mene":
# cancel the event
# if event-item is diamond named "&bVIP":
# cancel the event
# if event-item is player's skull named "&6%player's name%":
2021-10-02 19:19:09 +00:00
# cancel the event
#on drop:
# if event-item is ender chest named "&fMirriCraft":
# cancel the event
# if event-item is compass named "&4Mene":
# cancel the event
# if event-item is diamond named "&bVIP":
# cancel the event
# if event-item is player's skull named "&6%player's name%":
2021-10-02 19:19:09 +00:00
# cancel the event
2020-10-20 00:39:03 +00:00
on pickup:
if event-item is ender chest named "&fMirriCraft":
2024-01-15 01:49:06 +00:00
delete event-entity
2020-10-20 00:39:03 +00:00
if event-item is compass named "&4Mene":
2024-01-15 01:49:06 +00:00
delete event-entity
2020-10-20 00:39:03 +00:00
if event-item is diamond named "&bVIP":
2024-01-15 01:49:06 +00:00
delete event-entity
if event-item is player's skull named "&6%player's name%":
2024-01-15 01:49:06 +00:00
delete event-entity
2020-10-20 00:39:03 +00:00
on death:
2023-04-23 15:24:30 +00:00
if victim's world is "lobby":
2020-10-20 00:39:03 +00:00
clear drops
2023-04-23 15:24:30 +00:00
if victim's world is "utopia":
2020-10-20 18:54:42 +00:00
clear drops
2020-10-20 00:37:11 +00:00
# --- Welcome Message ---
2024-01-15 01:20:05 +00:00
on join:
send title "MirriCraft" to player for 5 seconds
send action bar "Nauti pelihetkestäsi, %player's name%!" to player
2020-10-20 00:37:11 +00:00
# --- World Title ---
on player world change:
2020-10-20 00:39:03 +00:00
if "%event-world%" is "lobby":
2024-01-15 01:20:05 +00:00
send title "&6MirriCraft" to player for 5 seconds
2020-10-20 00:37:11 +00:00
2020-10-20 00:39:03 +00:00
# --- Lobby Time & Weather ---
#at 18:00:
# if "%event-world%" is "lobby":
# set time to 7:00
on weather change to rain or thunder:
if "%event-world%" is "lobby":
cancel event
# ----------------------- #
# #
# MULTIVERSE #
# #
# ----------------------- #
2023-04-26 14:44:54 +00:00
#command /hub:
# description: Multiverse - Hub
# executable by: players
# trigger:
# make player execute command "/mirricraft visit multiverse-hub"
# stop
2020-10-20 00:39:03 +00:00
2023-04-26 14:44:54 +00:00
#command /multiverse:
# description: Multiverse
# executable by: players
# trigger:
# make player execute command "/mirricraft visit multiverse"
# stop
2020-10-20 00:39:03 +00:00
# --- World Title ---
2023-04-26 14:44:54 +00:00
#on player world change:
# if "%event-world%" is "hub":
# send player title "&6HUB" for 5 seconds
# else if "%event-world%" is "survival":
# send player title "&6Survival" for 5 seconds
# else if "%event-world%" is "survival_resources":
# send player title "&6Survival - Resources" for 5 seconds
# else if "%event-world%" is "survival_nether":
# send player title "&6Survival - Nether" for 5 seconds
# else if "%event-world%" is "survival_end":
# send player title "&6Survival - End" for 5 seconds
# else if "%event-world%" is "creative":
# send player title "&6Creative" for 5 seconds
# else if "%event-world%" is "skyblock":
# send player title "&6SkyBlock" for 5 seconds
# else if "%event-world%" is "skyblock_normal":
# send player title "&6SkyBlock - Normal" for 5 seconds
# else if "%event-world%" is "skyblock_nether":
# send player title "&6SkyBlock - Nether" for 5 seconds
# else if "%event-world%" is "skyblock_end":
# send player title "&6SkyBlock - End" for 5 seconds
2020-10-20 00:37:11 +00:00
# --- Hub Time & Weather ---
2023-04-26 14:44:54 +00:00
#at 18:00:
# if "%event-world%" is "hub":
# set time to 7:00
2020-10-20 00:37:11 +00:00
2023-04-26 14:44:54 +00:00
#on weather change to rain or thunder:
# if "%event-world%" is "hub":
# cancel event
2020-10-20 00:37:11 +00:00
# --- Survival Event Block ---
2023-04-26 14:44:54 +00:00
#on region enter:
# wait 1 tick
# if "%event-region%" contains "survival_castle_event_block":
# make console execute command "/uf start survival_event_newyear_2019"
# make console execute command "/ptime 14000ticks %player's name%"
# make console execute command "/pweather clear %player's name%"
2023-04-26 14:44:54 +00:00
#on region exit:
# wait 1 tick
# if "%event-region%" contains "survival_castle_event_block":
# make console execute command "/ptime reset %player's name%"
# make console execute command "/pweather reset %player's name%"
2020-10-20 00:37:11 +00:00
# make console execute command "/uf stop survival_event_newyear_2019"
#on death:
# if victim has permission "mirricraft.vip":
# launch creeper firework colored red at victim with duration 1