Advertisement
Guest User

Untitled

a guest
Feb 25th, 2021
999
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.21 KB | None | 0 0
  1. on load:
  2. register new shaped recipe for shiny emerald named "&aSpecial Emerald" using air, emerald, air, emerald, nether star, emerald, air, emerald, air
  3.  
  4. on right click:
  5. if name of player's held item = "&aSpecial Emerald":
  6. remove 1 of player's held item from player's inventory
  7. play sound "block.beacon.power_select" at player
  8. summon armor stand at player
  9. set helmet of last spawned armor stand to shiny emerald
  10. add "{Invisible:1}" to nbt of last spawned armor stand
  11. add "{NoGravity:1}" to nbt of last spawned armor stand
  12. set metadata value "special_emerald" of last spawned armor stand to true
  13.  
  14. on spawn of an armor stand:
  15. wait 1 tick
  16. if metadata value "special_emerald" of event-entity = true:
  17. loop 50 times:
  18. set {_loc} to location 0.1 meters in front of event-entity
  19. teleport event-entity to {_loc}
  20. wait 1 tick
  21. loop 25 times:
  22. set {_loc} to location 0.1 meters above event-entity
  23. teleport event-entity to {_loc}
  24. wait 1 tick
  25. specialemerald({_loc})
  26.  
  27. function specialemerald(loc: location):
  28. set {_loc} to location 2.25 meters above {_loc}
  29. loop 10 times:
  30. loop all entities in radius 50 around {_loc}:
  31. if loop-entity is not player:
  32. if loop-entity is a mob:
  33. set {_d} to distance between {_loc} and loop-entity
  34. play sound "block.beacon.deactivate" with volume 10 and pitch 2 at {_loc}
  35. drawLine particle happyvillager, speed 10, center {_loc}, target loop-entity, id "special_emerald", density 250, length {_distance}, visibleRange 100
  36. damage loop-entity by 20
  37. wait 2 ticks
  38. stopEffect id "special_emerald"
  39. wait 0.5 seconds
  40. loop all entities in radius 5 around {_loc}:
  41. if loop-entity is armor stand:
  42. if metadata value "special_emerald" of loop-entity is true:
  43. clear loop-entity
  44. drop shiny emerald named "&aSpecial Emerald" at {_loc}
  45. play 50 lava at {_loc}
  46.  
  47. command /specialemerald:
  48. trigger:
  49. give player shiny emerald named "&aSpecial Emerald"
  50.  
  51. command /firewand:
  52. trigger:
  53. give player shiny blaze rod named "&6Fire Wand"
  54.  
  55. on right click:
  56. if name of player's held item = "&6Fire Wand":
  57. firewand(player's location, player)
  58.  
  59. function firewand(loc: location, p: player):
  60. loop 50 times:
  61. set {_loc} to location 0.5 meters in front of {_loc}
  62. add {_loc} to {_locations::*}
  63. loop 50 times:
  64. add 1 to {_num}
  65. drawDot count 5, particle flame, speed 0.1, center {_locations::%{_num}%}, id "flamewand_%{_p}%_%{_num}%", visibleRange 100
  66. loop all entities in radius 2.5 around {_locations::%{_num}%}:
  67. if loop-entity is not {_p}:
  68. damage loop-entity by 2.5
  69. ignite loop-entity
  70. loop all blocks in radius 0.5 around {_locations::%{_num}%}:
  71. if {_num} is not between 1 and 10:
  72. if block above loop-block is air:
  73. set {_r} to a random integer between 1 and 2
  74. if {_r} is 1:
  75. set block above loop-block to fire
  76. wait 2 tick
  77. stopEffect id "flamewand_%{_p}%_%{_num}%"
  78.  
  79. command /diamondblast:
  80. trigger:
  81. give player shiny diamond axe named "&bDiamond Blast"
  82.  
  83. on right click:
  84. if name of player's held item = "&bDiamond Blast":
  85. diamondblast(player's location, player)
  86.  
  87. function diamondblast(loc: location, p: player):
  88. play sound "entity.blaze.ambient" with volume 10 and pitch 0 at {_p}
  89. loop 100 times:
  90. set {_loc} to location 0.5 meters in front of {_loc}
  91. add {_loc} to {_locations::*}
  92. loop 100 times:
  93. add 1 to {_num}
  94. drawSphere 1, particle "redstone", speed 10, RGB 74, 243, 254, center {_locations::%{_num}%}, id "diamond_blast_%{_p}%_%{_num}%", radius 0.5, density 100, visibleRange 100
  95. add "diamond_blast_%{_p}%_%{_num}%" to {_p::*}
  96. loop all blocks in radius 0.5 around {_locations::%{_num}%}:
  97. if loop-block is not air:
  98. set {_loc} to {_locations::%{_num}%}
  99. delete {_locations::*}
  100. loop {_p::*}:
  101. stopEffect id "%loop-value-2%"
  102. if {_kill} is not set:
  103. diamondblastkill1({_loc})
  104. set {_kill} to true
  105. if {_explode} is not set:
  106. play 1 explosion_emitter at {_loc}
  107. play sound "entity.generic.explode" with volume 10 at {_loc}
  108. set {_explode} to true
  109. play 320 of item particle using diamond at {_loc}
  110. loop all entities in radius 3 around {_locations::%{_num}%}:
  111. if loop-entity is not player:
  112. if loop-entity is set:
  113. set {_loc} to {_locations::%{_num}%}
  114. delete {_locations::*}
  115. loop {_p::*}:
  116. stopEffect id "%loop-value-2%"
  117. if {_kill} is not set:
  118. diamondblastkill2({_loc})
  119. set {_kill} to true
  120. if {_explode} is not set:
  121. play 1 explosion_emitter at {_loc}
  122. play sound "entity.generic.explode" with volume 10 at {_loc}
  123. set {_explode} to true
  124. play 320 of item particle using diamond at {_loc}
  125. wait 2 tick
  126. stopEffect id "diamond_blast_%{_p}%_%{_num}%"
  127. function diamondblastkill1(loc: location):
  128. loop all blocks in radius 0.5 around {_loc}:
  129. if loop-block is not air:
  130. loop all entities in radius 5 around {_loc}:
  131. damage loop-entity by 50
  132. set metadata value "diamond blast explosion" of loop-entity to true
  133.  
  134. function diamondblastkill2(loc: location):
  135. loop all blocks in radius 3 around {_loc}:
  136. if loop-block is not air:
  137. loop all entities in radius 5 around {_loc}:
  138. damage loop-entity by 50
  139. set metadata value "diamond blast explosion" of loop-entity to true
  140.  
  141. command /endlaser [<text>]:
  142. trigger:
  143. give player end crystal named "&dEnd Laser"
  144.  
  145. on rightclick:
  146. if name of player's held item = "&dEnd Laser":
  147. add 1 to {laserid}
  148. set {_num} to {laserid}
  149. set {_distance} to distance between target block and player
  150. if {_distance} > 50:
  151. set {_distance} to 50
  152. drawLine particle redstone, speed 10, RGB 227, 108, 252, center player, target location of target block, id "end_laser_%player%_%{laserid}%", density 100, length 10, visibleRange 100
  153. wait 1 seconds
  154. stopEffect id "end_laser_%player%_%{_num}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement