Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /trails:
- permission: *
- trigger:
- if {t.%player%} is not set:
- set {t.%player%} to true
- send "&a[TRAILS] &7Turned on &aSugar Cane &7trail"
- set {trail.%player%} to "Sugar Cane"
- stop
- if {t.%player%} is true:
- delete {t.%player%}
- send "&a[TRAILS] &7Turned off &aSugar Cane &7trail"
- set {trail.%player%} to "None"
- stop
- every tick:
- loop all players:
- if {trail.%loop-player%} is "Sugar Cane":
- set {_l} to loop-player's location
- set {_n} to block above {_l}
- drop sugar cane named "&cno_pickup%random integer between 1 and 1000000%" at {_n}
- wait 2 ticks
- delete dropped-entity
- on pickup:
- if name of event-item contains "&cno_pickup":
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment