Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click using blaze rod:
- player have permission "bron.blaze"
- if player has snowball named "&aAmunicja":
- set {czas} to difference between {opoznieniesnow.%player%} and now
- if {czas} is less than 4 seconds:
- set name of the player's tool to "&ePrzeladowywanie..."
- execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
- stop
- else:
- shoot snowball with speed 15
- damage targeted entity by 4 hearts
- remove 1 snowball from the player
- set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]"
- execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
- wait 3 tick
- shoot snowball with speed 15
- execute command "/playsound mob.chicken.plop %name of player% ~0 ~0 ~0 10 5"
- damage targeted entity by 4 hearts
- remove 1 snowball from the player
- set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]"
- wait 3 tick
- shoot snowball with speed 15
- execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
- damage targeted entity by 4 hearts
- remove 1 snowball from the player
- set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]"
- push the player backwards at speed 0.09
- player is sprinting
- set {_a} to a random integer between 1 and 3
- if {_a} is 1:
- damage targeted entity by 1 hearts
- execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
- if {_a} is 2:
- damage targeted entity by 2 hearts
- execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
- player is sneaking
- set {_b} to a random integer between 1 and 4
- if {_b} is 1:
- damage targeted entity by 4 hearts
- execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
- if {_b} is 2:
- damage targeted entity by 5 hearts
- execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
- if {_b} is 3:
- damage targeted entity by 6 hearts
- execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
- if {_b} is 4:
- damage targeted entity by 4 hearts
- execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
- set {opoznieniesnow.%player%} to now
- stop
- else:
- send "&8> &cBrak amunicji!"
- execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
- stop
- command /daj:
- trigger:
- give 1 blaze rod named "&b&lPistolecik" to the player
- give 64 snowball named "&aAmunicja" to the player
Advertisement
Add Comment
Please, Sign In to add comment