Guest User

Blaze

a guest
Aug 27th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. on right click using blaze rod:
  2. player have permission "bron.blaze"
  3. if player has snowball named "&aAmunicja":
  4. set {czas} to difference between {opoznieniesnow.%player%} and now
  5. if {czas} is less than 4 seconds:
  6. set name of the player's tool to "&ePrzeladowywanie..."
  7. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  8. stop
  9. else:
  10. shoot snowball with speed 15
  11. damage targeted entity by 4 hearts
  12. remove 1 snowball from the player
  13. set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]"
  14. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  15. wait 3 tick
  16. shoot snowball with speed 15
  17. execute command "/playsound mob.chicken.plop %name of player% ~0 ~0 ~0 10 5"
  18. damage targeted entity by 4 hearts
  19. remove 1 snowball from the player
  20. set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]"
  21. wait 3 tick
  22. shoot snowball with speed 15
  23. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  24. damage targeted entity by 4 hearts
  25. remove 1 snowball from the player
  26. set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]"
  27. push the player backwards at speed 0.09
  28. player is sprinting
  29. set {_a} to a random integer between 1 and 3
  30. if {_a} is 1:
  31. damage targeted entity by 1 hearts
  32. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  33. if {_a} is 2:
  34. damage targeted entity by 2 hearts
  35. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  36. player is sneaking
  37. set {_b} to a random integer between 1 and 4
  38. if {_b} is 1:
  39. damage targeted entity by 4 hearts
  40. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  41. if {_b} is 2:
  42. damage targeted entity by 5 hearts
  43. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  44. if {_b} is 3:
  45. damage targeted entity by 6 hearts
  46. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  47. if {_b} is 4:
  48. damage targeted entity by 4 hearts
  49. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  50. set {opoznieniesnow.%player%} to now
  51. stop
  52. else:
  53. send "&8> &cBrak amunicji!"
  54. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  55. stop
  56.  
  57.  
  58. command /daj:
  59. trigger:
  60. give 1 blaze rod named "&b&lPistolecik" to the player
  61. give 64 snowball named "&aAmunicja" to the player
Advertisement
Add Comment
Please, Sign In to add comment