Advertisement
RedstoneKing106

Untitled

Mar 31st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.36 KB | None | 0 0
  1. Command /push [<player>] [<number>]:
  2. trigger:
  3. player has permission "lobby.push":
  4. push arg-1 in direction of player with speed arg-2
  5. else:
  6. send "&cYou do not have permission."
  7. on join:
  8. refreshBoard()
  9. set {cooldown-slime.%player%} to now
  10. Command /cosmetics:
  11. trigger:
  12. close player's inventory
  13. open virtual chest inventory with size 1 named "&6&lCOSMETICS" to player
  14. make gui slot 2 of player with gunpowder named "&6&lTrails" with lore "&7Click to open Trails menu" to close then run function trailsGui(player)
  15. make gui slot 4 of player with white wool named "&6&lWings" with lore "&7Click to open Wings menu" to close then run function wingsGui(player)
  16. make gui slot 6 of player with slimeball named "&6&lGadgets" with lore "&7Click to open Gadgets menu" to close then run function gadgetsGui(player)
  17. on sneak toggle:
  18. player's held item is slime block
  19. difference between now and {cooldown-slime.%player%} >= 5 seconds:
  20. push the player upwards with force 1
  21. wait 1 tick
  22. push the player in direction of player with force 0.4
  23. set {cooldown-slime.%player%} to now
  24. else:
  25. {cooldown-slime.%player%} is not set:
  26. set {cooldown-slime.%player%} to now
  27. else:
  28. send "&cThis item is on cooldown!"
  29. function gadgetsGui(p: player):
  30. close {_p}'s inventory
  31. open virtual chest inventory with size 1 named "&6&lTRAILS" to {_p}
  32. make gui slot 0 of {_p} with ender pearl named "&6&lEthereal Pearl" with lore "&7Click to get" and "&aLion rank only!" to close then run function cosmetic("pearl", {_p})
  33. make gui slot 1 of {_p} with slime block named "&6&lLeaper" with lore "&7Click to get" and "&aLion rank only!" to close then run function cosmetic("leap", {_p})
  34. make gui slot 2 of {_p} with tnt named "&6&lThrowing TNT" with lore "&7Click to get" and "&aLion rank only!" to close then run function cosmetic("tnt", {_p})
  35. make gui slot 7 of {_p} with barrier named "&6&lRemove gadgets" with lore "&7Click to remove" and "&aLion rank only!" to close then run function removeCosmetics({_p})
  36. make gui slot 8 of {_p} with arrow named "&cGO BACK" with lore "&7Click to go back to main cosmetics" to run {_p} command "/cosmetics"
  37. function trailsGui(p: player):
  38. close {_p}'s inventory
  39. open virtual chest inventory with size 1 named "&6&lTRAILS" to {_p}
  40. make gui slot 0 of {_p} with feather named "&6&lSmoke Trail" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("lava", {_p})
  41. make gui slot 1 of {_p} with end rod named "&6&lEnd Rod Trail" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("end", {_p})
  42. make gui slot 2 of {_p} with web named "&6&lCloud" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("Cloud", {_p})
  43. make gui slot 3 of {_p} with lava bucket named "&6&lLavaDrip" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("lavadrip", {_p})
  44. make gui slot 4 of {_p} with redstone dust named "&6&lHearts" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("heart", {_p})
  45. make gui slot 5 of {_p} with note block named "&6&lNote" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("note", {_p})
  46. make gui slot 7 of {_p} with barrier named "&6&lNote" with lore "&7Click to toggle" and "&aLion rank only!" to run {_p} command "/togglecosmetics"
  47. make gui slot 8 of {_p} with arrow named "&cGO BACK" with lore "&7Click to go back to main cosmetics" to run {_p} command "/cosmetics"
  48. function wingsGui(p: player):
  49. open virtual chest inventory with size 1 named "&6&lWINGS" to {_p}
  50. make gui slot 0 of {_p} with white wool named "&6&lWhite Wings" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("Wings1", {_p})
  51. make gui slot 1 of {_p} with red wool named "&6&lRed Wings" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("Wings2", {_p})
  52. make gui slot 2 of {_p} with blue wool named "&6&lBlue Wings" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("Wings3", {_p})
  53. make gui slot 8 of {_p} with arrow named "&cGO BACK" with lore "&7Click to go back to main cosmetics" to run {_p} command "/cosmetics"
  54. on right click with tnt:
  55. difference between {cooldown.%player%} and now >= 5 seconds:
  56. spawn a primed tnt at the player
  57. push last spawned entity upwards with force 0.3
  58. push last spawned tnt in direction of player with force 0.7
  59. set {cooldown.%player%} to now
  60. else:
  61. {cooldown.%player%} is not set:
  62. set {cooldown.%player%} to now
  63. else:
  64. send "&cThis item is on cooldown!"
  65. function removeCosmetics(p: player):
  66. send "&cRemoved cosmetics." to {_p}
  67. remove all slime block from {_p}
  68. remove all ender pearl from {_p}
  69. remove all tnt from {_p}
  70. on drop:
  71. cancel event
  72. Command /togglecosmetics:
  73. trigger:
  74. {show.%player%} is true:
  75. send "&c&lCOSMETICS &7Cosmetics disabled."
  76. set {show.%player%} to false
  77. else:
  78. send "&c&lCOSMETICS &7Cosmetics enabled."
  79. set {show.%player%} to true
  80. on shoot:
  81. projectile exists
  82. if projectile is ender pearl:
  83. make shooter ride the projectile
  84. give 1 ender pearl named "&d&lETHEREAL PEARL" to shooter
  85. function cosmetic(c: text, p: player):
  86. {_c} is "end":
  87. set {smoke.%{_p}%} to false
  88. set {cloud.%{_p}%} to false
  89. set {lava.%{_p}%} to false
  90. set {note.%{_p}%} to false
  91. set {heart.%{_p}%} to false
  92. {end.%{_p}%} is true:
  93. set {end.%{_p}%} to false
  94. send "&c&lPARTICLE &7End rod disabled." to {_p}
  95. else:
  96. set {smoke.%{_p}%} to false
  97. set {end.%{_p}%} to true
  98. send "&c&lPARTICLE &7End rod enabled." to {_p}
  99. else if {_c} is "lava":
  100. set {end.%{_p}%} to false
  101. set {cloud.%{_p}%} to false
  102. set {lava.%{_p}%} to false
  103. set {heart.%{_p}%} to false
  104. set {note.%{_p}%} to false
  105. {smoke.%{_p}%} is true:
  106. set {smoke.%{_p}%} to false
  107. send "&c&lPARTICLE &7Smoke disabled." to {_p}
  108. else:
  109. set {smoke.%{_p}%} to true
  110. send "&c&lPARTICLE &7Smoke enabled." to {_p}
  111. else if {_c} is "cloud":
  112. set {end.%{_p}%} to false
  113. set {smoke.%{_p}%} to false
  114. set {lava.%{_p}%} to false
  115. set {heart.%{_p}%} to false
  116. set {note.%{_p}%} to false
  117. {cloud.%{_p}%} is true:
  118. set {cloud.%{_p}%} to false
  119. send "&c&lPARTICLE &7Cloud disabled." to {_p}
  120. else:
  121. set {cloud.%{_p}%} to true
  122. send "&c&lPARTICLE &7Cloud enabled." to {_p}
  123. else if {_c} is "lavadrip":
  124. set {end.%{_p}%} to false
  125. set {smoke.%{_p}%} to false
  126. set {cloud.%{_p}%} to false
  127. set {heart.%{_p}%} to false
  128. set {note.%{_p}%} to false
  129. {lava.%{_p}%} is true:
  130. set {lava.%{_p}%} to false
  131. send "&c&lPARTICLE &7LavaDrip disabled." to {_p}
  132. else:
  133. set {lava.%{_p}%} to true
  134. send "&c&lPARTICLE &7LavaDrip enabled." to {_p}
  135. else if {_c} is "heart":
  136. set {end.%{_p}%} to false
  137. set {smoke.%{_p}%} to false
  138. set {cloud.%{_p}%} to false
  139. set {lava.%{_p}%} to false
  140. set {note.%{_p}%} to false
  141. {heart.%{_p}%} is true:
  142. set {heart.%{_p}%} to false
  143. send "&c&lPARTICLE &7Heart disabled." to {_p}
  144. else:
  145. set {heart.%{_p}%} to true
  146. send "&c&lPARTICLE &7Heart enabled." to {_p}
  147. else if {_c} is "note":
  148. set {end.%{_p}%} to false
  149. set {smoke.%{_p}%} to false
  150. set {cloud.%{_p}%} to false
  151. set {lava.%{_p}%} to false
  152. set {heart.%{_p}%} to false
  153. {note.%{_p}%} is true:
  154. set {note.%{_p}%} to false
  155. send "&c&lPARTICLE &7Heart disabled." to {_p}
  156. else:
  157. set {note.%{_p}%} to true
  158. send "&c&lPARTICLE &7Heart enabled." to {_p}
  159. else if {_c} is "pearl":
  160. remove all ender pearl from {_p}
  161. remove all tnt from {_p}
  162. remove all slime block from {_p}
  163. give 1 ender pearl named "&d&lETHEREAL PEARL" to {_p}
  164. else if {_c} is "leap":
  165. remove all ender pearl from {_p}
  166. remove all slime block from {_p}
  167. remove all tnt from {_p}
  168. give 1 slime block named "&a&lLEAPER &7&o(Sneak to leap)" to {_p}
  169. else if {_c} is "tnt":
  170. remove all ender pearl from {_p}
  171. remove all tnt from {_p}
  172. remove all slime block from {_p}
  173. give 1 tnt named "&c&lTHROWABLE TNT &7&o(Right click)" to {_p}
  174. else if {_c} is "wings1": #WHITEWINGS
  175. set {wings3.%{_p}%} to false
  176. set {wings2.%{_p}%} to false
  177. set {wings.%{_p}%} to false
  178. {wings.%{_p}%}
  179. else:
  180. send "&c&lWINGS &7Wings enabled." to {_p}
  181. set {wings1.%{_p}%} to true
  182. stopEffect id "%{_p}%"
  183. else if {_c} is "wings2": #REDWINGS
  184. set {wings1.%{_p}%} to false
  185. set {wings3.%{_p}%} to false
  186. set {wings.%{_p}%} to false
  187. {wings2.%{_p}%} is true:
  188. send "&c&lWINGS &7Wings disabled." to {_p}
  189. set {wings2.%{_p}%} to false
  190. stopEffect id "%{_p}%"
  191. else:
  192. send "&c&lWINGS &7Wings enabled." to {_p}
  193. set {wings2.%{_p}%} to true
  194. stopEffect id "%{_p}%"
  195. else if {_c} is "wings3": #BLUEWINGS
  196. set {wings1.%{_p}%} to false
  197. set {wings2.%{_p}%} to false
  198. set {wings.%{_p}%} to false
  199. {wings3.%{_p}%} is true:
  200. send "&c&lWINGS &7Wings disabled." to {_p}
  201. set {wings3.%{_p}%} to false
  202. stopEffect id "%{_p}%"
  203. else:
  204. send "&c&lWINGS &7Wings enabled." to {_p}
  205. set {wings3.%{_p}%} to true
  206. stopEffect id "%{_p}%"
  207. every 3 ticks:
  208. loop all players:
  209. {wings3.%loop-player%} is true:
  210. loop all players:
  211. drawWings style 3, particle1 "redstone", RGB 0, 0, 255, particle2 "redstone", RGB2 0, 0, 255, particle3 "redstone", RGB3 0, 0, 255, center loop-player-1, isSingle true, loop-player-2, id "%{_p}%", angle 110, height 0, space 0.2, visibleRange 30, tps 0, second 3
  212. loop all players:
  213. {wings2.%loop-player%} is true:
  214. loop all players:
  215. drawWings style 3, particle1 "redstone", RGB 255, 0, 0, particle2 "redstone", RGB2 255, 0, 0, particle3 "redstone", RGB3 255, 0, 0, center loop-player-1, isSingle true, loop-player-2, id "%{_p}%", angle 110, height 0, space 0.2, visibleRange 30, tps 0, second 3
  216. loop all players:
  217. {wings1.%loop-player%} is true:
  218. loop all players:
  219. drawWings style 3, particle1 "redstone", RGB 255, 255, 255, particle2 "redstone", RGB2 255, 255, 255, particle3 "redstone", RGB3 255, 255, 255, center loop-player-1, isSingle true, loop-player-2, id "%{_p}%", angle 110, height 0, space 0.2, visibleRange 30, tps 0, second 3
  220. loop all players:
  221. {heart.%loop-player%} is true:
  222. loop all players:
  223. drawDot count 3, particle "heart", XYZ 0, 0, 0, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 10 ticks
  224. loop all players:
  225. {lava.%loop-player%} is true:
  226. loop all players:
  227. drawDot count 3, particle "lavadrip", XYZ 0, 0, 0, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 10 ticks
  228. loop all players:
  229. {cloud.%loop-player%} is true:
  230. loop all players:
  231. drawDot count 3, particle "Cloud", XYZ 0, 0, 0, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 10 ticks
  232. loop all players:
  233. {smoke.%loop-player%} is true:
  234. loop all players:
  235. drawDot count 3, particle "Smoke", XYZ 0, 0, 0, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 10 ticks
  236. loop all players:
  237. {end.%loop-player%} is true:
  238. loop all players:
  239. drawDot count 3, particle "endrod", XYZ 0.2, 0, 0.2, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 15 ticks
  240. loop all players:
  241. {note.%loop-player%} is true:
  242. loop all players:
  243. drawDot count 3, particle "note", XYZ 0, 0, 0, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 10 ticks
  244. on join:
  245. clear the player's inventory
  246. give 1 nether star named "&b&lCOSMETICS &7&o(Right click)" to player
  247. on right click with nether star:
  248. execute player command "cosmetics"
  249. on explode:
  250. cancel event
  251. on bungeecord player switch server:
  252. set {smoke.%player%} to false
  253. set {cloud.%player%} to false
  254. set {end.%player%} to false
  255. set {lava.%player%} to false
  256. set {note.%player%} to false
  257. set {heart.%player%} to false
  258. set {wings.%player%} to false
  259. set {wings1.%player%} to false
  260. set {wings2.%player%} to false
  261. set {wings3.%player%} to false
  262. stopEffect id "%player%"
  263. on quit:
  264. refreshBoard()
  265. set {smoke.%player%} to false
  266. set {cloud.%player%} to false
  267. set {end.%player%} to false
  268. set {lava.%player%} to false
  269. set {note.%player%} to false
  270. set {heart.%player%} to false
  271. set {wings.%player%} to false
  272. set {wings1.%player%} to false
  273. set {wings2.%player%} to false
  274. set {wings3.%player%} to false
  275. stopEffect id "%player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement