Zeldaboy111

Teleport signs! ]|[ Skript #398

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