This commit is contained in:
Christer Warén 2023-04-29 16:40:54 +03:00
parent ebb530e931
commit c2e51ca2ce

View File

@ -6,13 +6,55 @@
#-------------------------------------------------- #--------------------------------------------------
on join: on join:
make player execute command "/mirricraft" make player execute command "/mirricraft item"
stop stop
on respawn: on respawn:
make player execute command "/mirricraft" make player execute command "/mirricraft item"
stop 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 diamond axe named "&5Ylläpito":
make player execute command "/mirricraft gui admin"
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 /mirricraft [<string>] [<string>] [<string>] [<string>]: command /mirricraft [<string>] [<string>] [<string>] [<string>]:
description: MirriCraft description: MirriCraft
aliases: /mirri, /mc aliases: /mirri, /mc
@ -52,7 +94,10 @@ command /mirricraft [<string>] [<string>] [<string>] [<string>]:
else: else:
message "&7[&2MIRRICRAFT&7]&r Valitsemasi matkakohde ei löytynyt!" message "&7[&2MIRRICRAFT&7]&r Valitsemasi matkakohde ei löytynyt!"
stop stop
else:
message "&7[&2MIRRICRAFT&7]&r Sinulla ei ole riittäviä oikeuksia!"
if arg-1 is "vip": if arg-1 is "vip":
if player has the permission "mirricraft.vip":
if arg-2 is "cosmetics": if arg-2 is "cosmetics":
wait 2 tick wait 2 tick
make player execute command "/uc menu main" make player execute command "/uc menu main"
@ -61,11 +106,20 @@ command /mirricraft [<string>] [<string>] [<string>] [<string>]:
wait 2 tick wait 2 tick
make player execute command "/music" make player execute command "/music"
stop stop
else:
message "&7[&2MIRRICRAFT&7]&r Osta itsellesi VIP-jäsenyys tukemalla MirriCraftin toimintaa!"
if arg-1 is "player": if arg-1 is "player":
stop stop
if arg-1 is "item": if arg-1 is "item":
if player's world is "lobby": if player's world is "lobby":
remove all items from player remove all items from player
if player have permission "mirricraft.admin":
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 6 of player's inventory to 1 of diamond axe named "&5Ylläpito"
set slot 8 of player's inventory to 1 of player's skull named "&6%player%"
stop
else:
set slot 0 of player's inventory to 1 of compass named "&4Mene" 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 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%" set slot 8 of player's inventory to 1 of player's skull named "&6%player%"
@ -87,32 +141,19 @@ command /mirricraft [<string>] [<string>] [<string>] [<string>]:
loop integers between 0 and 26: loop integers between 0 and 26:
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable 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": 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"] format slot 11 of player with compass named "&4Mene" with lore "-" to close then run [execute player command "/mirricraft gui visit"]
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"]
format slot 17 of player with diamond axe named "&5Ylläpito" with lore "-" to close then run [execute player command "/mirricraft gui admin"]
stop
else: else:
format slot 16 of player with diamond axe named "&5Ylläpito" with lore "-" to close then run [execute player command "/mirricraft gui admin"] format slot 11 of player with compass named "&4Mene" with lore "-" to close then run [execute player command "/mirricraft gui visit"]
format slot 14 of player with diamond named "&bVIP" with lore "-" to close then run [execute player command "/mirricraft gui vip"]
format slot 17 of player with player's skull named "&6Player" with lore "&o&f%player%" to close then run [execute player command "/mirricraft gui player"]
stop stop
if arg-2 is set: if arg-2 is set:
if arg-2 is "visit": if arg-2 is "visit":
if player have permission "mirricraft.visit":
wait 2 tick wait 2 tick
open chest inventory with 4 row named "MirriCraft - Mene" to player open chest inventory with 4 row named "MirriCraft - Mene" to player
wait 2 tick wait 2 tick
@ -160,6 +201,7 @@ command /mirricraft [<string>] [<string>] [<string>] [<string>]:
stop stop
if arg-2 is "admin": if arg-2 is "admin":
if player has the permission "mirricraft.admin":
wait 2 tick wait 2 tick
open chest inventory with 4 row named "MirriCraft - Ylläpito" to player open chest inventory with 4 row named "MirriCraft - Ylläpito" to player
wait 2 tick wait 2 tick
@ -171,52 +213,6 @@ command /mirricraft [<string>] [<string>] [<string>] [<string>]:
stop 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: command /lobby:
description: Lobby description: Lobby
executable by: players executable by: players