akon1248

Untitled

Dec 17th, 2019
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. on rightclick with tnt:
  2. name of player's tool is "&bスノーTNT"
  3. cancel event
  4. shoot a tnt from player with speed 1
  5. set explosion yield of last shot tnt to 0
  6. add "snow_tnt" to scoreboard tags of last shot tnt
  7. set metadata value "Owner" of last shot tnt to player
  8. player's gamemode is survival or adventure
  9. remove a tnt from player's tool
  10. on explosion prime:
  11. event-entity is a tnt
  12. event-entity has scoreboard tag "snow_tnt"
  13. set {_shooter} to metadata value "Owner" of event-entity
  14. set {_loc} to location 0.5 meter above location of event-entity
  15. #pop ball large firework effect colored 255, 255, 255 at {_loc}
  16. wait 1 tick
  17. loop 500 times:
  18. set yaw of {_loc} to random number between 0 and 360
  19. set pitch of {_loc} to random number between -90 and 90
  20. shoot a snowball from location 0.1 meter forwards {_loc} with speed 0.75
  21. add "snow_tnt_snowball" to scoreboard tags of shot projectile
  22. {_shooter} is set
  23. set shooter of shot projectile to {_shooter}
  24. on explode:
  25. cancel event
  26. every tick:
  27. execute console command "/execute @e[type=tnt,tag=snow_tnt] ~ ~ ~ particle fallingdust ~ ~0.5 ~ 0.3 0.3 0.3 0 20 force @a 80"
  28. on projectile hit:
  29. projectile is a snowball
  30. projectile has scoreboard tag "snow_tnt_snowball"
  31. play raw sound "BLOCK_SNOW_BREAK" at projectile with pitch 1 and volume 2
  32. hit entity is set
  33. set no damage ticks of hit entity to 0
  34. on damage:
  35. projectile is a snowball
  36. projectile has scoreboard tag "snow_tnt_snowball"
  37. set damage to 2.5
  38. apply slowness 1 to victim for 10 seconds mode vanilla
Advertisement
Add Comment
Please, Sign In to add comment