Shadax

Bazooka

Dec 11th, 2013
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. command /bazooka:
  2. trigger:
  3. give stick named "&2Bazooka" to the player
  4. on right click:
  5. player is holding stick named "&2Bazooka":
  6. if player has 5 tnt:
  7. remove 5 tnt from the player
  8. shoot an snowball with speed 1
  9. else:
  10. send "Nie masz pociskow do bazooki"
  11. player is holding snowball:
  12. cancel event
  13. on projectile hit:
  14. projectile is snowball:
  15. set {_block} to location of projectile
  16. create explosion of force 0 at {_block}
  17. loop entities:
  18. distance between the loop-entity and {_block} is between -1 and 1:
  19. damage loop-entity by 8
  20. distance between the loop-entity and {_block} is between 1 and 2:
  21. damage loop-entity by 5
  22. distance between the loop-entity and {_block} is between 2 and 3:
  23. damage loop-entity by 4
  24. distance between the loop-entity and {_block} is between 3 and 4:
  25. damage loop-entity by 3
  26. distance between the loop-entity and {_block} is between 4 and 5:
  27. damage loop-entity by 2
  28. distance between the loop-entity and {_block} is between 5 and 6:
  29. damage loop-entity by 1
  30. distance between the loop-entity and {_block} is between 6 and 7:
  31. damage loop-entity by 0.5
Advertisement
Add Comment
Please, Sign In to add comment