Zeldaboy111

Teleport signs! ]|[ Skript #398

Mar 14th, 2021
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. #©
  2. #- Reselling/Reuploading while claiming that it is yours or made by you is disallowed
  3. #- Do not edit it and upload it as your own
  4. #- While using it in a video, please feature everything under "Video"
  5. #©
  6. #
  7. #Video:
  8. #Skript made by Zeldaboy111
  9. #More content of the creator: https://forums.skunity.com/search/26443679/
  10. options:
  11. logo: &d&lT&5&lS&8:&7
  12.  
  13. command /teleportsign [<text>] [<text>] [<text>] [<text>] [<text>] [<text>] [<text>]:
  14. aliases: tpsign
  15. trigger:
  16. if arg-1 is "create":
  17. if target block of player is any sign:
  18. if distance between location of player and location of target block of player <= 5:
  19. if {teleportsign.%location of target block of player%.teleportTo} is not set:
  20. set {teleportsign.%location of target block of player%.teleportTo} to true
  21. else:
  22. send "{@logo} A teleport sign already exists at this location."
  23. else:
  24. send "{@logo} You must be looking at a sign."
  25. else:
  26. send "{@logo} You must be looking at a sign."
  27. else if arg-1 is "delete":
  28. if target block of player is any sign:
  29. if distance between location of player and location of target block of player <= 5:
  30. if {teleportsign.%location of target block of player%.teleportTo} is set:
  31. delete {teleportsign.%location of target block of player%.teleportTo}
  32. loop 4 times:
  33. set line loop-value of target block of player to ""
  34. send "{@logo} You have deleted the teleport sign at the location you were looking at."
  35. else:
  36. send "{@logo} There is no teleport sign found at the location you are looking at."
  37. else:
  38. send "{@logo} You must be looking at a sign."
  39. else:
  40. send "{@logo} You must be looking at a sign."
  41. else:
  42. send "{@logo} Invalid Usage!%nl% &8- &7/tpsign delete%nl% &8- &7/tpsign create <x> <y> <z> [yaw] [pitch] [world]"
  43.  
  44.  
  45. on break of any sign:
  46. if {teleportsign.%location of target block of player%.teleportTo} is set:
  47. cancel event
  48. send "{@logo} You cannot break a teleport sign."
  49.  
Advertisement
Add Comment
Please, Sign In to add comment