Advertisement
hubs

Untitled

Mar 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. on right click with torch:
  2. spawn an armor stand at player
  3. set {_a} to last spawned armor stand
  4. set {_loc} to location 1 meter above location of {_a}
  5. add "{CustomName:""."",CustomNameVisible:1b,Invisible:1b,Marker:1b,NoGravity:1b}" to nbt of {_a}
  6. loop 100 times:
  7. set {_loc} to location 1 meter forwards {_loc}
  8. show 10 flame particles at {_a} offset by 0, 0, 0
  9. show 10 spell particles at {_a} offset by 0, 0, 0
  10. loop all players:
  11. play sound "BLOCK_IRON_TRAPDOOR_OPEN" to loop-player with volume 1 and pitch 1
  12. teleport {_a} to {_loc}
  13. set {_locc} to location of {_a}
  14. loop all entities in radius 2 around {_a}:
  15. loop-entity is not player
  16. loop-entity is not armor stand
  17. set {_t} to location of loop-entity
  18. if {_t} is set:
  19. target(last spawned armor stand, location of loop-entity)
  20. stop
  21. wait 1 tick
  22. kill {_a}
  23. loop all players:
  24. play sound "BLOCK_LAVA_EXTINGUISH" to loop-player with volume 1 and pitch 1
  25.  
  26. function target(ar: entity, t: location):
  27. set {_l} to location of {_ar}
  28. loop 20 times:
  29. set {_l} to location 2 meter up {_l}
  30. show 10 flame particles at {_ar} offset by 0, 0, 0
  31. show 10 spell particles at {_ar} offset by 0, 0, 0
  32. show 10 slime particles at {_ar} offset by 0, 0, 0
  33. show 10 cloud particles at {_ar} offset by 0, 0, 0
  34. loop all players:
  35. play sound "BLOCK_DISPENSER_FAIL" to loop-player with volume 1 and pitch 1
  36. play sound "BLOCK_LAVA_EXTINGUISH" to loop-player with volume 1 and pitch 1
  37. teleport {_ar} to {_l}
  38. wait 2 tick
  39. loop 60 times:
  40. set {_tp} to location 1 meter under {_ar}
  41. teleport {_ar} to {_tp}
  42. show 10 flame particles at {_ar} offset by 0, 0, 0
  43. show 10 spell particles at {_ar} offset by 0, 0, 0
  44. show 10 slime particles at {_ar} offset by 0, 0, 0
  45. show 10 cloud particles at {_ar} offset by 0, 0, 0
  46. loop all players:
  47. play sound "ENTITY_PLAYER_LEVELUP" to loop-player with volume 1 and pitch 1
  48. loop all blocks in radius 1 around {_ar}:
  49. loop-block is not air
  50. create fake explosion at {_ar}
  51. loop all entities in radius 7 around {_ar}:
  52. loop-entity is not armor stand
  53. kill loop-entity
  54. kill {_ar}
  55. stop
  56. wait 1 tick
  57. kill {_ar}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement