70sOn7

Untitled

Apr 17th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. command /trails:
  2. permission: *
  3. trigger:
  4. if {t.%player%} is not set:
  5. set {t.%player%} to true
  6. send "&a[TRAILS] &7Turned on &aSugar Cane &7trail"
  7. set {trail.%player%} to "Sugar Cane"
  8. stop
  9. if {t.%player%} is true:
  10. delete {t.%player%}
  11. send "&a[TRAILS] &7Turned off &aSugar Cane &7trail"
  12. set {trail.%player%} to "None"
  13. stop
  14.  
  15. every tick:
  16. loop all players:
  17. if {trail.%loop-player%} is "Sugar Cane":
  18. set {_l} to loop-player's location
  19. set {_n} to block above {_l}
  20. drop sugar cane named "&cno_pickup%random integer between 1 and 1000000%" at {_n}
  21. wait 2 ticks
  22. delete dropped-entity
  23. on pickup:
  24. if name of event-item contains "&cno_pickup":
  25. cancel event
Advertisement
Add Comment
Please, Sign In to add comment