stingly

ok baba

Jan 24th, 2022 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.89 KB | None | 0 0
  1. command /is [<text>] [<offline player>]:
  2. trigger:
  3. if arg-1 is "create":
  4. if {island.%player%} is not set:
  5. add 1000 to {fd}
  6. add 1000 to {sd}
  7. set {island.%player%} to location({fd}, 77, {sd}, world "TheIslands", -90, 0)
  8. set block at location({fd}, 76, {sd}, world "TheIslands",-90, 0) to bedrock
  9. load "island" at location({fd} - 1, 74, {sd} - 4, world "TheIslands",-90, 0)
  10. teleport player to {island.%player%}
  11. send "&aYou succesfully created your Island"
  12. set {island.b::%player%::z::*} to {sd} + 28 and {sd} - 28
  13. set {island.b::%player%::x::*} to {fd} + 28 and {fd} - 28
  14. if arg-1 is "home" or "h":
  15. if {island.%player%} is set:
  16. teleport player to {island.%player%}
  17. send "&aTeleporting to your &eIsland"
  18. else:
  19. send "&cYou don't have a island!"
  20. if arg-1 is "delete":
  21. if {island.%player%} is set:
  22. send "&cAre you sure you want to remove your island?" to player
  23. send "&cType &bYes &cin the chat" to player
  24. set {removecooldown.%player%} to true
  25. if arg-1 is "invite":
  26. send "&a&l%player% &ainvited you to their island type&7""/is join %player%""" to arg-2
  27. set {invite.%arg-2%.%player%} to true
  28. wait 30 seconds
  29. clear {invite.%arg-2%.%player%}
  30. if arg-1 is "join":
  31. if {invite.%player%.%arg-2%} is true:
  32. set {_d} to "%player%"
  33. loop all players:
  34. z-loc of loop-player is between {island.b::%{_d}%::z::1} and {island.b::%{_d}%::z::2}:
  35. x-loc of loop-player is between {island.b::%{_d}%::x::1} and {island.b::%{_d}%::x::2}:
  36. make loop-player execute command "/spawn"
  37. send "&cThis island closed!"
  38. set {island.%player%} to {island.%arg-2%}
  39. set {island.b::%player%::z::1} to {island.b::%arg-1%::z::1}
  40. set {island.b::%player%::z::2} to {island.b::%arg-1%::z::2}
  41. set {island.b::%player%::x::1} to {island.b::%arg-1%::x::1}
  42. set {island.b::%player%::x::2} to {island.b::%arg-1%::x::2}
  43. send "&aYou succesfully joined &a&l%arg-2%&a&l's &a island" to player
  44. send "&a&l%player% &aJoined your team" to arg-2
  45. if arg-1 is "visit" or "v":
  46. if {island.%arg-2%} is set:
  47. if {lock.island.%arg-2%} is not set:
  48. if {ban.%arg-2%.%player%} is not set:
  49. teleport player to {island.%arg-2%}
  50. send "&aYou have been teleported to &a&l%arg-2%'s &aIsland!"
  51. else:
  52. send "&cYou are banned from this island!"
  53. else:
  54. send "&c&l%arg-2%'s &cisland is locked!"
  55. else:
  56. send "&cThis player does not have a island!"
  57. if arg-1 is "lock":
  58. if {lock.island.%player%} is not set:
  59. set {lock.island.%arg-2%} to true
  60. if {lock.island.%arg-2%} is true:
  61. clear {lock.island.%arg-2%}
  62. if arg-1 is "ban":
  63. if {island.%player%} is set:
  64. set {ban.%player%.%arg-2%} to true
  65. z-loc of arg-2 is between {island.b::%player%::z::1} and {island.b::%player%::z::2}:
  66. x-loc of arg-2 is between {island.b::%player%::x::1} and {island.b::%player%::x::2}:
  67. make arg-2 execute command "/spawn"
  68. send "&cYou got banned from &c&l%player%'s &cisland!" to arg-2
  69. send "&aYou succesfully banned &a&l%arg-2% from your island!"
  70. if arg-1 is "unban":
  71. if {ban.%player%.%arg-2%} is set:
  72. clear {ban.%player%.%arg-2%}
  73. send "&aYou succesfully unbanned &a&l%arg-2%"
  74. send "&aYou got unbanned from &a&l%player%'s &aisland!" to arg-2
  75. if arg-1 is "settings":
  76. if {island.%player%} is set:
  77. create a gui with virtual chest inventory named "settings" with 4 rows
  78. format gui slot 1 to grey stained glass pane
  79. on left click with stick:
  80. cancel event
  81. set {loc1} to location of clicked block
  82. send "pos1"
  83. on right click with stick:
  84. cancel event
  85. set {loc2} to location of clicked block
  86. send "pos2"
  87.  
  88. command /skem:
  89. trigger:
  90. set {fd} to 0.5
  91.  
  92. on block break:
  93. if player's world is not "TheIslands":
  94. if player doesn't have permission "block break":
  95. cancel event
  96. if player's world is "TheIslands":
  97. z-loc of player is not between {island.b::%player%::z::1} and {island.b::%player%::z::2}:
  98. x-loc of player is not between {island.b::%player%::x::1} and {island.b::%player%::x::2}:
  99. if player doesn't have permission "island.bypass":
  100. send "&cYou can't break here!"
  101. cancel event
  102. on block place:
  103. if player's world is not "TheIslands":
  104. if player doesn't have permission "block break":
  105. cancel event
  106. if player's world is "TheIslands":
  107. z-loc of player is not between {island.b::%player%::z::1} and {island.b::%player%::z::2}:
  108. x-loc of player is not between {island.b::%player%::x::1} and {island.b::%player%::x::2}:
  109. if player doesn't have permission "island.bypass":
  110. send "&cYou can't build here!"
  111. cancel event
  112.  
  113. on right click:
  114. if player's world is "TheIslands":
  115. z-loc of player is not between {island.b::%player%::z::1} and {island.b::%player%::z::2}:
  116. x-loc of player is not between {island.b::%player%::x::1} and {island.b::%player%::x::2}:
  117. if player doesn't have permission "island.bypass":
  118. send "&cThis isn't your island!"
  119. cancel event
  120.  
  121.  
  122. on damage:
  123. loop all players:
  124. z-loc of attacker is between {island.b::%loop-player%::z::1} and {island.b::%loop-player%::z::2}:
  125. x-loc of attacker is between {island.b::%loop-player%::x::1} and {island.b::%loop-player%::x::2}:
  126. if {setting.pvp.%loop-player%} is not set:
  127. cancel event
  128.  
  129. on pickup:
  130. if player's world is "TheIslands":
  131. z-loc of player is not between {island.b::%player%::z::1} and {island.b::%player%::z::2}:
  132. x-loc of player is not between {island.b::%player%::x::1} and {island.b::%player%::x::2}:
  133. if player doesn't have permission "island.bypass":
  134. loop all players:
  135. z-loc of player is between {island.b::%loop-player%::z::1} and {island.b::%loop-player%::z::2}:
  136. x-loc of player is between {island.b::%loop-player%::x::1} and {island.b::%loop-player%::x::2}:
  137. if {settings.pickup.%player%} is not set:
  138. cancel event
  139.  
  140.  
  141. command /pee:
  142. trigger:
  143. send "e"
Add Comment
Please, Sign In to add comment