From 8332516600c235cdce6cf7f663519a26d855d2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Wed, 26 Apr 2023 17:44:54 +0300 Subject: [PATCH] Update --- mirricraft-old.sk => -mirricraft-old.sk | 127 ++++++------- .vscode/settings.json | 6 + mirricraft-clearinventory.sk | 26 ++- mirricraft-enderchest.sk | 23 ++- mirricraft-fly.sk | 53 ++++-- mirricraft-gamemode.sk | 65 ++++--- mirricraft-inventory.sk | 21 +++ mirricraft-irondooropener.sk | 10 +- mirricraft-kitpvp.sk | 10 +- mirricraft-lobby-tunnel.sk | 10 - mirricraft-npc.sk | 13 +- mirricraft-portals.sk | 10 +- mirricraft-spawn.sk | 10 +- mirricraft-speed.sk | 54 ++++++ mirricraft.sk | 239 +++++++++++++++++++++--- 15 files changed, 502 insertions(+), 175 deletions(-) rename mirricraft-old.sk => -mirricraft-old.sk (85%) create mode 100644 .vscode/settings.json create mode 100644 mirricraft-inventory.sk delete mode 100644 mirricraft-lobby-tunnel.sk create mode 100644 mirricraft-speed.sk diff --git a/mirricraft-old.sk b/-mirricraft-old.sk similarity index 85% rename from mirricraft-old.sk rename to -mirricraft-old.sk index e886d52..5c09693 100644 --- a/mirricraft-old.sk +++ b/-mirricraft-old.sk @@ -259,34 +259,15 @@ command /visit []: # OTHER FUNCTIONS # --- MirriCraft Item --- -#on join: -# make player execute command "/mirricraft item" -# stop +on join: + make player execute command "/mirricraft item" + stop on respawn: make player execute command "/mirricraft item" stop -on leftclick: - 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%": - make player execute command "/mirricraft gui player" - cancel the event - wait 2 tick - - -on rightclick: +on click: if event-item is ender chest named "&fMirriCraft": make player execute command "/mirricraft gui" cancel the event @@ -365,65 +346,65 @@ on weather change to rain or thunder: # # # ----------------------- # -command /hub: - description: Multiverse - Hub - executable by: players - trigger: - make player execute command "/mirricraft visit multiverse-hub" - stop +#command /hub: +# description: Multiverse - Hub +# executable by: players +# trigger: +# make player execute command "/mirricraft visit multiverse-hub" +# stop -command /multiverse: - description: Multiverse - executable by: players - trigger: - make player execute command "/mirricraft visit multiverse" - stop +#command /multiverse: +# description: Multiverse +# executable by: players +# trigger: +# make player execute command "/mirricraft visit multiverse" +# stop # --- World Title --- -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 +#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 # --- Hub Time & Weather --- -at 18:00: - if "%event-world%" is "hub": - set time to 7:00 +#at 18:00: +# if "%event-world%" is "hub": +# set time to 7:00 -on weather change to rain or thunder: - if "%event-world%" is "hub": - cancel event +#on weather change to rain or thunder: +# if "%event-world%" is "hub": +# cancel event # --- Survival Event Block --- -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%" - make console execute command "/pweather clear %player%" +#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%" +# make console execute command "/pweather clear %player%" -on region exit: - wait 1 tick - if "%event-region%" contains "survival_castle_event_block": - make console execute command "/ptime reset %player%" - make console execute command "/pweather reset %player%" +#on region exit: +# wait 1 tick +# if "%event-region%" contains "survival_castle_event_block": +# make console execute command "/ptime reset %player%" +# make console execute command "/pweather reset %player%" # make console execute command "/uf stop survival_event_newyear_2019" #on death: diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..247bf3e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "files.trimTrailingWhitespace": true, + "files.insertFinalNewline": true, + "files.trimFinalNewlines": true, + "editor.renderFinalNewline": false +} diff --git a/mirricraft-clearinventory.sk b/mirricraft-clearinventory.sk index 9f8d8cb..7de0644 100644 --- a/mirricraft-clearinventory.sk +++ b/mirricraft-clearinventory.sk @@ -1,10 +1,20 @@ -# --- Clear Inventory --- -command /clearinventory: - description: Clear Inventory +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- + +command /clearinventory []: +description: Clear Inventory aliases: /clearinv - executable by: console and players + executable by: players trigger: - if player has the permission "mirricraft.clearinventory": - remove all items from player - stop - stop \ No newline at end of file + if arg-1 is not set: + if player has permission "mirricraft.clearinventory": + remove all items from player + stop + if arg-1 is set: + if player has permission "mirricraft.admin": + remove all items from arg-1 + stop diff --git a/mirricraft-enderchest.sk b/mirricraft-enderchest.sk index b6544e2..6472957 100644 --- a/mirricraft-enderchest.sk +++ b/mirricraft-enderchest.sk @@ -1,8 +1,21 @@ -# --- EnderChest --- -command /enderchest: +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- + +command /enderchest []: description: EnderChest executable by: players trigger: - wait 2 tick - open the player's ender chest to the player - stop \ No newline at end of file + if arg-1 is not set: + if player has permission "mirricraft.enderchest": + wait 2 tick + open player's ender chest to player + stop + if arg-1 is set: + if player has permission "mirricraft.admin": + wait 2 tick + open arg-1's ender chest to player + stop diff --git a/mirricraft-fly.sk b/mirricraft-fly.sk index 76c8810..7361317 100644 --- a/mirricraft-fly.sk +++ b/mirricraft-fly.sk @@ -1,21 +1,36 @@ -# --- Fly --- -command /fly []: +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- + +command /fly []: description: Fly - executable by: console and players + executable by: players trigger: - if player has the permission "mirricraft.fly": - if {fly.%player%} is not set: - message "&7[&2MirriCraft&7]&r Lento on nyt sallittu" - set player's flight mode to true - set {fly.%player%} to true - stop - message "&7[&2MirriCraft&7]&r Lento on pois käytöstä" - set player's flight mode to false - delete {fly.%player%} - stop - -on join: - if {fly.%player%} is set: - if player has the permission "mirricraft.vip": - set player's flight mode to true - stop \ No newline at end of file + if arg-1 is not set: + if player has the permission "mirricraft.fly": + if {fly.%player%} is not set: + message "&7[&2MirriCraft&7]&r Lento on nyt sallittu" + set player's flight mode to true + set {fly.%player%} to true + stop + else: + message "&7[&2MirriCraft&7]&r Lento on pois käytöstä" + set player's flight mode to false + delete {fly.%player%} + stop + if arg-1 is set: + if player has permission "mirricraft.admin": + if {fly.%arg-1%} is not set: + set arg-1's flight mode to true + set {fly.%arg-1%} to true + stop + else: + set arg-1's flight mode to false + delete {fly.%arg-1%} + stop + +on quit: + delete {fly.%player%} diff --git a/mirricraft-gamemode.sk b/mirricraft-gamemode.sk index f6f8010..91696d8 100644 --- a/mirricraft-gamemode.sk +++ b/mirricraft-gamemode.sk @@ -1,29 +1,46 @@ -# --- Game Mode --- -command /gamemode []: +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- + +command /gamemode [] []: description: Game Mode aliases: /gm executable by: console and players trigger: - if arg-1 is "0" or "s" or "survival": - if player has the permission "mirricraft.gamemode.survival": - set gamemode of player to Survival + if arg-2 is not set: + if arg-1 is "0" or "s" or "survival": + if player has the permission "mirricraft.gamemode.survival": + set gamemode of player to Survival + stop + else if arg-1 is "1" or "c" or "creative": + if player has the permission "mirricraft.gamemode.creative": + set gamemode of player to Creative + stop + else if arg-1 is "2" or "a" or "adventure": + if player has the permission "mirricraft.gamemode.adventure": + set gamemode of player to Adventure + stop + else if arg-1 is "3" or "sp" or "spectator": + if player has the permission "mirricraft.gamemode.spectator": + set gamemode of player to Spectator + stop + else: + message "&7[&2MirriCraft&7]&r Valitse pelitila" to player stop - stop - else if arg-1 is "1" or "c" or "creative": - if player has the permission "mirricraft.gamemode.creative": - set gamemode of player to Creative - stop - stop - else if arg-1 is "2" or "a" or "adventure": - if player has the permission "mirricraft.gamemode.adventure": - set gamemode of player to Adventure - stop - stop - else if arg-1 is "3" or "sp" or "spectator": - if player has the permission "mirricraft.gamemode.spectator": - set gamemode of player to Spectator - stop - stop - else: - message "&7[&2MirriCraft&7]&r Syötä pelitila" - stop \ No newline at end of file + if arg-2 is set: + if player has the permission "mirricraft.admin": + if arg-1 is "0" or "s" or "survival": + set gamemode of arg-2 to Survival + stop + else if arg-1 is "1" or "c" or "creative": + set gamemode of arg-2 to Creative + stop + else if arg-1 is "2" or "a" or "adventure": + set gamemode of arg-2 to Adventure + stop + else if arg-1 is "3" or "sp" or "spectator": + set gamemode of arg-2 to Spectator + stop diff --git a/mirricraft-inventory.sk b/mirricraft-inventory.sk new file mode 100644 index 0000000..e5cf57f --- /dev/null +++ b/mirricraft-inventory.sk @@ -0,0 +1,21 @@ +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- + +command /inventory []: + description: Inventory + executable by: players + trigger: + if arg-1 is not set: + if player has permission "mirricraft.inventory": + wait 2 tick + open player's inventory to player + stop + if arg-1 is set: + if player has permission "mirricraft.admin": + wait 2 tick + open arg-1's inventory to player + stop diff --git a/mirricraft-irondooropener.sk b/mirricraft-irondooropener.sk index 04ce8c2..5c8e7a1 100644 --- a/mirricraft-irondooropener.sk +++ b/mirricraft-irondooropener.sk @@ -1,4 +1,10 @@ -# --- Iron Door Opener --- +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- + on right click on iron door: play sound "block.iron_door.open" with volume 1 to the player toggle event-block @@ -7,4 +13,4 @@ on right click on iron door: cancel the event on right click on iron door holding a iron door: - cancel the event \ No newline at end of file + cancel the event diff --git a/mirricraft-kitpvp.sk b/mirricraft-kitpvp.sk index 995c606..f2e5799 100644 --- a/mirricraft-kitpvp.sk +++ b/mirricraft-kitpvp.sk @@ -1,4 +1,10 @@ -# --- KitPVP --- +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- + command /kitpvp [] []: description: Spawn executable by: players @@ -230,4 +236,4 @@ on region exit: on hunger meter change: if player's world is "minigames": wait 1 tick - feed the player \ No newline at end of file + feed the player diff --git a/mirricraft-lobby-tunnel.sk b/mirricraft-lobby-tunnel.sk deleted file mode 100644 index 0d4077f..0000000 --- a/mirricraft-lobby-tunnel.sk +++ /dev/null @@ -1,10 +0,0 @@ -# --- Lobby Tunnel --- -on region enter: - wait 1 tick - if "%event-region%" contains "lobby_tunnel_": - set the player's walk speed to 0.4 - -on region exit: - wait 1 tick - if "%event-region%" contains "lobby_tunnel_": - set the player's walk speed to 0.2 \ No newline at end of file diff --git a/mirricraft-npc.sk b/mirricraft-npc.sk index a37c535..6c87402 100644 --- a/mirricraft-npc.sk +++ b/mirricraft-npc.sk @@ -1,8 +1,9 @@ -# --- NPC --- -on script load: - set {citizens} to yml value "PluginHooks.Npc" of file "plugins/Skellett/config.yml" - if {citizens} is false: - disable script "mirricraft-npc.sk" +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- on rightclick on entity: if clicked entity is a citizen: @@ -13,4 +14,4 @@ on rightclick on entity: if player doesn't have the permission "group.aikainenjasen": make console execute command "/lp user %player% group add jasen" else: - message "&7[&r%name of clicked entity%&7]&r Olet jo jäsen" to player \ No newline at end of file + message "&7[&r%name of clicked entity%&7]&r Olet jo jäsen" to player diff --git a/mirricraft-portals.sk b/mirricraft-portals.sk index fe6e32a..9528d88 100644 --- a/mirricraft-portals.sk +++ b/mirricraft-portals.sk @@ -1,4 +1,10 @@ -# --- Portals --- +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- + on region enter: wait 1 tick if "%event-region%" contains "_portal_to_lobby": @@ -12,4 +18,4 @@ on region enter: connect player to "skyblock" if "%event-region%" contains "_portal_to_minigames": teleport player to spawn of "%player's world%" - connect player to "minigames" \ No newline at end of file + connect player to "minigames" diff --git a/mirricraft-spawn.sk b/mirricraft-spawn.sk index 563579f..e7d75b8 100644 --- a/mirricraft-spawn.sk +++ b/mirricraft-spawn.sk @@ -1,4 +1,10 @@ -# --- Spawn --- +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- + command /spawn: description: Spawn executable by: players @@ -8,4 +14,4 @@ command /spawn: stop else: teleport player to spawn of "%player's world%" - stop \ No newline at end of file + stop diff --git a/mirricraft-speed.sk b/mirricraft-speed.sk new file mode 100644 index 0000000..657bf28 --- /dev/null +++ b/mirricraft-speed.sk @@ -0,0 +1,54 @@ +#-------------------------------------------------- +# +# MIRRICRAFT +# by Christer Warén / Warén Group +# +#-------------------------------------------------- + +command /speed [] [] []: + description: Speed + executable by: players + trigger: + if arg-1 is not set: + stop + if arg-1 is set: + if arg-1 is "walk": + if arg-2 is not set: + stop + if arg-2 is set: + if arg-2 is greater than 10: + set player's walking speed to 0.2 * 10 + stop + set player's walking speed to 0.2 * arg 2 + stop + if arg-1 is "fly": + if arg-2 is not set: + stop + if arg-2 is set: + if arg-3 is not set: + if player has the permission "mirricraft.speed": + if arg-2 is greater than 10: + set player's flying speed to 0.2 * 10 + stop + set player's flying speed to 0.2 * arg 2 + stop + if arg-3 is set: + if player has the permission "mirricraft.admin": + if arg-2 is greater than 10: + set arg-3's flying speed to 0.2 * 10 + stop + set arg-3's flying speed to 0.2 * arg 2 + stop + + + +# Lobby Tunnel +on region enter: + wait 1 tick + if "%event-region%" contains "lobby_tunnel_": + set player's walking speed to 0.4 + +on region exit: + wait 1 tick + if "%event-region%" contains "lobby_tunnel_": + set player's walking speed to 0.2 diff --git a/mirricraft.sk b/mirricraft.sk index 965fe22..75988dc 100644 --- a/mirricraft.sk +++ b/mirricraft.sk @@ -5,26 +5,221 @@ # #-------------------------------------------------- -on load: - #Create Config - if "mirricraft.yml" exist: - stop - else: - create file "mirricraft.yml" - #wf "#--------------------------------------------------" to "mirricraft.yml" - #wf "#" to "mirricraft.yml" - #wf "# MIRRICRAFT" to "mirricraft.yml" - #wf "# by Christer Warén / Warén Group" to "mirricraft.yml" - #wf "#" to "mirricraft.yml" - #wf "#--------------------------------------------------" to "mirricraft.yml" - stop - -# --- Bossbar --- -#on join: -# create bossbar titled "&f&lMirriCraft" and id "bossbar.%player's uuid%" for player with progress 100 with colors white -# stop - -# --- Welcome Message --- on join: - send player title "MirriCraft" for 5 seconds - send action bar "Nauti pelihetkestäsi, %player%!" to player \ No newline at end of file + make player execute command "/mirricraft" + stop + +on respawn: + make player execute command "/mirricraft" + stop + +command /mirricraft [] [] [] []: + description: MirriCraft + aliases: /mirri, /mc + executable by: players + trigger: + if arg-1 is not set: + make player execute command "/mirricraft item" + make player execute command "/mirricraft gui" + stop + if arg-1 is set: + if arg-1 is "visit": + if player has the permission "mirricraft.visit": + if arg-2 is not set: + message "&7[&2MIRRICRAFT&7]&r Sinun tulee syöttää matkakohde, johon haluat matkustaa!" + stop + if arg-2 is set: + if arg-2 is "lobby": + wait 2 tick + connect player to "lobby" + stop + else if arg-2 is "truelo": + wait 2 tick + connect player to "truelo" + stop + else if arg-2 is "utopia": + wait 2 tick + connect player to "utopia" + stop + else if arg-2 is "skyblock": + wait 2 tick + connect player to "skyblock" + stop + else if arg-2 is "minigames": + wait 2 tick + connect player to "minigames" + stop + else: + message "&7[&2MIRRICRAFT&7]&r Valitsemasi matkakohde ei löytynyt!" + stop + if arg-1 is "vip": + 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-1 is "player": + + if arg-1 is "item": + 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%" + stop + else: + set slot 8 of player's inventory to 1 of ender chest named "&fMirriCraft" + stop + if arg-1 is "reload": + if player has permission "mirricraft.admin": + message "&7[&2MirriCraft&7]&r Reloading..." + make player execute command "/skript reload mirricraft" + stop + 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 + + loop integers between 0 and 26: + format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable + + if player have permission "mirricraft.visit": + format slot 11 of player with compass named "&4Mene" with lore "-" to close then run [execute player command "/mirricraft gui visit"] + else: + format slot 11 of player with compass named "&4Mene" with lore "-" to close then run [execute player command "/mirricraft visit"] + + #if player have permission "mirricraft.kits": + # format slot 12 of player with chest named "&6Kits" with lore "-" to close then run [execute player command "/mirricraft kits"] + #else: + # format slot 12 of player with chest named "&6Kits" with lore "-" to close then run [execute player command "/mirricraft kits"] + + if player have permission "mirricraft.vip": + format slot 13 of player with diamond named "&bVIP" with lore "-" to close then run [execute player command "/mirricraft gui vip"] + else: + format slot 13 of player with diamond named "&bVIP" with lore "-" to close then run [execute player command "/mirricraft gui vip"] + + format slot 15 of player with player's skull named "&6Player" with lore "&o&f%player%" to close then run [execute player command "/mirricraft gui player"] + + if player have permission "mirricraft.admin": + format slot 16 of player with diamond axe named "&5Ylläpito" with lore "-" to close then run [execute player command "/mirricraft gui admin"] + else: + format slot 16 of player with diamond axe named "&5Ylläpito" with lore "-" to close then run [execute player command "/mirricraft gui admin"] + + stop + if arg-2 is set: + 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 + + loop integers between 0 and 35: + format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable + + 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"] + 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"] + 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"] + format slot 35 of player with nether star named "&fLobby" to close then run [execute player command "/mirricraft visit lobby"] + + format slot 27 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"] + + stop + if arg-2 is "vip": + if player has the permission "mirricraft.vip": + wait 2 tick + open chest inventory with 4 row named "MirriCraft - 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 + + if player's world is "lobby": + format slot 12 of player with ender chest named "&fCosmetics" to close then run [execute player command "/mirricraft vip cosmetics"] + format slot 14 of player with music disc cat named "&fMusic" to close then run [execute player command "/mirricraft vip music"] + + format slot 27 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"] + stop + if arg-2 is "player": + wait 2 tick + open chest inventory with 4 row named "MirriCraft - %player%" 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 12 of player with ender chest named "&fEnderChest" to close then run [execute player command "/enderchest"] + format slot 14 of player with elytra named "&fFly" to close then run [execute player command "/fly"] + + format slot 27 of player with arrow named "&fTakaisin" to close then run [execute player command "/mirricraft gui"] + + stop + if arg-2 is "admin": + wait 2 tick + open chest inventory with 4 row named "MirriCraft - Ylläpito" 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"] + + stop + +on join: + make player execute command "/mirricraft item" + stop + +on respawn: + make player execute command "/mirricraft item" + stop + +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%": + make player execute command "/mirricraft gui player" + cancel the event + wait 2 tick + +on pickup: + if event-item is ender chest named "&fMirriCraft": + delete event-entity + if event-item is compass named "&4Mene": + delete event-entity + if event-item is diamond named "&bVIP": + delete event-entity + if event-item is player's skull named "&6%player%": + delete event-entity + +on death: + if victim's world is "lobby": + clear drops + if victim's world is "utopia": + clear drops + +on weather change to rain or thunder: + if "%event-world%" is "lobby": + cancel event + +command /lobby: + description: Lobby + executable by: players + trigger: + make player execute command "/mirricraft visit lobby" + stop