akon1248

Untitled

Aug 31st, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. variables:
  2. {blazewandcooltime.%player%} = 0
  3. {tntwandcooltime.%player%} = 0
  4. {fireballcooltime.%player%} = 0
  5. on right click:
  6. if player is holding blaze rod of Fire Aspect 32767 named "&6BlazeWand":
  7. if {blazewandcooltime.%player%} is smaller than or equal to 0:
  8. cancel event
  9. set {blazewandcooltime.%player%} to 15
  10. shoot a small fireball from player at speed 0.2
  11. execute console command "/execute %player% ~ ~ ~ playsound minecraft:entity.blaze.shoot master @a"
  12. wait 0.3 second
  13. shoot a small fireball from player at speed 0.2
  14. execute console command "/execute %player% ~ ~ ~ playsound minecraft:entity.blaze.shoot master @a"
  15. wait 0.3 second
  16. shoot a small fireball from player at speed 0.2
  17. execute console command "/execute %player% ~ ~ ~ playsound minecraft:entity.blaze.shoot master @a"
  18. every second:
  19. loop all players:
  20. remove 1 from {blazewandcooltime.%loop-player%}
  21. if loop-player is holding blaze rod of Fire Aspect 32767 named "&6BlazeWand":
  22. if {blazewandcooltime.%loop-player%} is greater than or equal to 1:
  23. send action bar from "&b使用可能になるまであと&3%{blazewandcooltime.%loop-player%}%秒" to loop-player
  24. if {blazewandcooltime.%loop-player%} is 0:
  25. send action bar from "&6BlazeWand&bが使用可能になりました!" to loop-player
  26. on right click:
  27. if player is holding fire charge named "&cFireBall":
  28. if {fireballcooltime.%player%} is smaller than or equal to 0:
  29. cancel event
  30. shoot a fireball from player at speed 0.2
  31. remove fire charge named "&cFireBall" from player's inventory
  32. wait 1 tick
  33. execute console command "/execute %player% ~ ~ ~ entitydata @e[type=fireball,c=1] {ExplosionPower:2}"
  34. set {fireballcooltime.%player%} to 1
  35. wait 2 tick
  36. set {fireballcooltime.%player%} to 0
  37.  
  38. on right click:
  39. if player is holding bone named "&4TNTWand":
  40. if {tntwandcooltime.%player%} is smaller than or equal to 0:
  41. cancel event
  42. set {tntwandcooltime.%player%} to 15
  43. shoot a tnt from player at speed 1
  44. execute console command "/execute %player% ~ ~ ~ playsound minecraft:entity.tnt.primed master @a"
  45. every second:
  46. loop all players:
  47. remove 1 from {tntwandcooltime.%loop-player%}
  48. if loop-player is holding bone named "&4TNTWand":
  49. if {tntwandcooltime.%loop-player%} is greater than or equal to 1:
  50. send action bar from "&b使用可能になるまであと&3%{tntwandcooltime.%loop-player%}%秒" to loop-player
  51. if {tntwandcooltime.%loop-player%} is 0:
  52. send action bar from "&4TNTWand&bが使用可能になりました!" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment