Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. options:
  2.  
  3. website: &4&lMidas&f&lCraft&4&l.sk
  4.  
  5. CREATIVE-ITEM: &8● &b&lCREATIVE MENU &8●
  6.  
  7.  
  8. on right click:
  9. if event-world is "world_creative" or "world":
  10. if name of event-item is "{@CREATIVE-ITEM}":
  11. set {_slot} to 0
  12. open chest inventory with 5 rows named "&7&l» &b&lCREATIVE MENU" to player
  13. wait 1 ticks
  14. wait 1 ticks
  15. loop 45 times:
  16. make a gui slot {_slot} of player with black glass pane named "&7 " with lore "&7" to do nothing
  17. add 1 to {_slot}
  18. 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"
  19. 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"
  20. 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"
  21. 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"
  22.  
  23. 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:
  24. make player execute command "plot delete"
  25. close player's inventory
  26.  
  27. make a gui slot 8 of player with barrier named "&7&l» &cZavrit menu" with lore "&7" to run:
  28. close player's inventory
  29.  
  30.  
  31. on inventory click:
  32. if name of event-item is "{@CREATIVE-ITEM}":
  33. cancel event
  34. on drop:
  35. if name of event-item is "{@CREATIVE-ITEM}":
  36. cancel event
  37. on place:
  38. if name of event-item is "{@CREATIVE-ITEM}":
  39. cancel event
  40.  
  41. on player world change:
  42. if "%past changed world%" is "world_creative":
  43. wait 0.1 seconds
  44. set {_p}'s gamemode to survival
  45. hub(player)
  46. if "%past changed world%" is "world":
  47. wait 0.1 seconds
  48. set {_p}'s gamemode to creative
  49. hub(player)
  50.  
  51. function hub(p: player):
  52. make console execute command "mvtp %{_p}% world"
  53. player_clear({_p})
  54. set slot 8 of {_p} to painting named "{@CREATIVE-ITEM}"
  55. heal {_p}
  56. feed {_p}
  57.  
  58.  
  59. function send_player_to(p: player, loc: text):
  60. player_clear({_p})
  61. set {_uuid} to uuid of {_p}
  62. if {_loc} is "world_creative":
  63. player_clear({_p})
  64. make console execute command "mvtp %{_p}% world_creative"
  65. set slot 8 of {_p} to painting named "{@CREATIVE-ITEM}"
  66. stop
  67. if {_loc} is "world":
  68. player_clear({_p})
  69. set slot 8 of {_p} to painting named "{@CREATIVE-ITEM}"
  70. make console execute command "mvtp %{_p}% world"
  71.  
  72.  
  73. on join:
  74. set join message to "&8[&a+&8]&a %player%"
  75. hub(player)
  76.  
  77. on quit:
  78. set quit message to "&8[&c-&8]&c %player%"
  79.  
  80. command /creative:
  81. trigger:
  82. if player's world is "world":
  83. player_clear({_p})
  84. make console execute command "mvtp %player% world_creative"
  85. set slot 8 of player to painting named "{@CREATIVE-ITEM}"
  86. send "&a&l[ i ] &7Byl jsi teleportován do &b&lCreative sveta!"
  87. else:
  88. send "&c&l[ ! ] &7Uz se nachazis v &b&lCreativ svete!"
  89. stop
  90.  
  91. function player_clear(p: player):
  92. clear {_p}'s inventory
  93. milk {_p}
  94. heal {_p}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement