Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /navi [<text>]:
- trigger:
- {navigation.%player's uuid%} is true
- stopEffect "nav-%player%"
- {navigation.%player's uuid%} is false
- open chest with 2 rows named "&8Navigation" to player
- format slot 0 of player with emerald named "&7Hotel" to close then run [execute player command "/navi Hotel"]
- if arg-1 is "Hotel":
- wait 5 ticks
- send "&a[Navi]&7 Der Weg zu &l%arg-1%&7 wird dir nun angezeigt."
- set {_targetLocation} to location at -1689, 4, 552
- drawLine particle redstone, RGB 255, 0, 0, center player, target {_targetLocation}, id "nav-%player%", onlyFor player, density 20, length 4, zigZag count 0, height 0, visibleRange 45, displacementXYZ 0, 1, 0, pulseDelay 15
- while distance between {_targetLocation} and player is not smaller than or equal to 1:
- wait 5 ticks
- stopEffect "nav-%player%"
- send "&a[Navi] &7Du hast dein Ziel erreicht"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement