Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. command /tama:
  2. trigger:
  3. add 64 to {gun.%player%.tama}
  4.  
  5. command /gun:
  6. trigger:
  7. set {gun.%player%.shoot} to true
  8. give player iron hoe named "&6&lTest &c%{gun.%player%.tama}%"
  9. set {gun.%player%.effect} to true
  10.  
  11. on rightclick:
  12. if {gun.%player%.shoot} is true:
  13. if {gun.%player%.tama} is more than 1:
  14. player is holding iron hoe named "&6&lTEST &c%{gun.%player%.tama}%"
  15. set name of player's tool to "&6&lTEST &c%{gun.%player%.tama}%"
  16. subtract 1 from {gun.%player%.tama}
  17. set {gun.%player%.shoot} to false
  18. wait 1 ticks
  19. shoot an arrow at speed 40
  20. set {gun.%player%.shoot} to true
  21.  
  22. on leftclick:
  23. player is holding iron hoe
  24. if {gun.%player%.effect} is true:
  25. execute console command "/effect @p minecraft:slowness 9999 255"
  26. set {gun.%player%.effect} to false
  27. stop
  28. if {gun.%player%.effect} is false:
  29. execute console command "/effect @p clear"
  30. set {gun.%player%.effect} to true
  31. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement