taiyaki23

Untitled

May 30th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. on rightclick with tnt:
  2. if name of tool of player is "&cmineTNT":
  3. if {mcw1.%player%} is "0":
  4. set {mcw1.%player%} to 20
  5. cancel event
  6. spawn 1 primed TNT at location of block above player
  7. set fuse time of the last spawned primed TNT to 30
  8. if player is not sneaking:
  9. wait 1 tick
  10. push last spawned tnt in direction of player with force 0.4
  11. loop 20 times:
  12. set {mcw1.%player%} to {mcw1.%player%} - 1
  13. wait 1 second
  14. set {mcw1.%player%} to "0"
  15.  
  16. on rightclick with wooden sword:
  17. if name of tool of player is "&7steve sword":
  18. if {mcw2c.%player%} is 0:
  19. cancel event
  20. set {mcw2c.%player%} to 30
  21. set {mcw2.%player%} to between 1 and 100
  22. if {mcw2.%player%} is between 1 and 40:
  23. set {mcw2d.%player%} to 1
  24. message "&b攻撃力は変わりませんでした" to player
  25. if {mcw2.%player%} is between 41 and 75:
  26. set {mcw2d.%player%} to 2
  27. message "&b攻撃力が&l&n5&l&nになりました" to player
  28. if {mcw2.%player%} is between 76 and 100:
  29. set {mcw2d.%player%} to 3
  30. message "&b攻撃力が&l&n6&l&nになりました" to player
  31. loop 30 times:
  32. set {mcw1.%player%} to {mcw1.%player%} - 1
  33. wait 1 second
Add Comment
Please, Sign In to add comment