Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /bazooka:
- trigger:
- give stick named "&2Bazooka" to the player
- on right click:
- player is holding stick named "&2Bazooka":
- if player has 5 tnt:
- remove 5 tnt from the player
- shoot an snowball with speed 1
- else:
- send "Nie masz pociskow do bazooki"
- player is holding snowball:
- cancel event
- on projectile hit:
- projectile is snowball:
- set {_block} to location of projectile
- create explosion of force 0 at {_block}
- loop entities:
- distance between the loop-entity and {_block} is between -1 and 1:
- damage loop-entity by 8
- distance between the loop-entity and {_block} is between 1 and 2:
- damage loop-entity by 5
- distance between the loop-entity and {_block} is between 2 and 3:
- damage loop-entity by 4
- distance between the loop-entity and {_block} is between 3 and 4:
- damage loop-entity by 3
- distance between the loop-entity and {_block} is between 4 and 5:
- damage loop-entity by 2
- distance between the loop-entity and {_block} is between 5 and 6:
- damage loop-entity by 1
- distance between the loop-entity and {_block} is between 6 and 7:
- damage loop-entity by 0.5
Advertisement
Add Comment
Please, Sign In to add comment