Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- website: &4&lMidas&f&lCraft&4&l.sk
- CREATIVE-ITEM: &8● &b&lCREATIVE MENU &8●
- on right click:
- if event-world is "world_creative" or "world":
- if name of event-item is "{@CREATIVE-ITEM}":
- set {_slot} to 0
- open chest inventory with 5 rows named "&7&l» &b&lCREATIVE MENU" to player
- wait 1 ticks
- wait 1 ticks
- loop 45 times:
- make a gui slot {_slot} of player with black glass pane named "&7 " with lore "&7" to do nothing
- add 1 to {_slot}
- make a gui slot 10 of player with green glass pane named "&7&l» &eAuto-claim plochy" with lore "&7Automaticky Vam prideli plochu" to run player command "plot auto"
- make a gui slot 19 of player with green glass pane named "&7&l» &eClaim plochy" with lore "&7Musite stát na plose, kterou chcete claimnout" to run player command "plot claim"
- make a gui slot 11 of player with green glass pane named "&7&l» &eTeleport na plochu" with lore "&7Teleportuje Vas na Vasi plochu" to run player command "plot teleport"
- make a gui slot 20 of player with green glass pane named "&7&l» &eSmaze obsah plochy" with lore "&7Smaze uplne vse, co jste postavil" to run player command "plot clear"
- make a gui slot 14 of player with red glass pane named "&7&l» &eOdclaimovani plochy" with lore "&7Odclaimuje Vasi plochu. Musite stát v ní" to run:
- make player execute command "plot delete"
- close player's inventory
- make a gui slot 8 of player with barrier named "&7&l» &cZavrit menu" with lore "&7" to run:
- close player's inventory
- on inventory click:
- if name of event-item is "{@CREATIVE-ITEM}":
- cancel event
- on drop:
- if name of event-item is "{@CREATIVE-ITEM}":
- cancel event
- on place:
- if name of event-item is "{@CREATIVE-ITEM}":
- cancel event
- on player world change:
- if "%past changed world%" is "world_creative":
- wait 0.1 seconds
- set {_p}'s gamemode to survival
- hub(player)
- if "%past changed world%" is "world":
- wait 0.1 seconds
- set {_p}'s gamemode to creative
- hub(player)
- function hub(p: player):
- make console execute command "mvtp %{_p}% world"
- player_clear({_p})
- set slot 8 of {_p} to painting named "{@CREATIVE-ITEM}"
- heal {_p}
- feed {_p}
- function send_player_to(p: player, loc: text):
- player_clear({_p})
- set {_uuid} to uuid of {_p}
- if {_loc} is "world_creative":
- player_clear({_p})
- make console execute command "mvtp %{_p}% world_creative"
- set slot 8 of {_p} to painting named "{@CREATIVE-ITEM}"
- stop
- if {_loc} is "world":
- player_clear({_p})
- set slot 8 of {_p} to painting named "{@CREATIVE-ITEM}"
- make console execute command "mvtp %{_p}% world"
- on join:
- set join message to "&8[&a+&8]&a %player%"
- hub(player)
- on quit:
- set quit message to "&8[&c-&8]&c %player%"
- command /creative:
- trigger:
- if player's world is "world":
- player_clear({_p})
- make console execute command "mvtp %player% world_creative"
- set slot 8 of player to painting named "{@CREATIVE-ITEM}"
- send "&a&l[ i ] &7Byl jsi teleportován do &b&lCreative sveta!"
- else:
- send "&c&l[ ! ] &7Uz se nachazis v &b&lCreativ svete!"
- stop
- function player_clear(p: player):
- clear {_p}'s inventory
- milk {_p}
- heal {_p}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement