Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #©
- #- Reselling/Reuploading while claiming that it is yours or made by you is disallowed
- #- Do not edit it and upload it as your own
- #- While using it in a video, please feature everything under "Video"
- #©
- #
- #Video:
- #Skript made by Zeldaboy111
- #More content of the creator: https://forums.skunity.com/search/26443679/
- options:
- logo: &d&lT&5&lS&8:&7
- command /teleportsign [<text>] [<text>] [<text>] [<text>] [<text>] [<text>] [<text>]:
- aliases: tpsign
- trigger:
- if arg-1 is "create":
- if target block of player is any sign:
- if distance between location of player and location of target block of player <= 5:
- if {teleportsign.%location of target block of player%.teleportTo} is not set:
- set {teleportsign.%location of target block of player%.teleportTo} to true
- else:
- send "{@logo} A teleport sign already exists at this location."
- else:
- send "{@logo} You must be looking at a sign."
- else:
- send "{@logo} You must be looking at a sign."
- else if arg-1 is "delete":
- if target block of player is any sign:
- if distance between location of player and location of target block of player <= 5:
- if {teleportsign.%location of target block of player%.teleportTo} is set:
- delete {teleportsign.%location of target block of player%.teleportTo}
- loop 4 times:
- set line loop-value of target block of player to ""
- send "{@logo} You have deleted the teleport sign at the location you were looking at."
- else:
- send "{@logo} There is no teleport sign found at the location you are looking at."
- else:
- send "{@logo} You must be looking at a sign."
- else:
- send "{@logo} You must be looking at a sign."
- else:
- send "{@logo} Invalid Usage!%nl% &8- &7/tpsign delete%nl% &8- &7/tpsign create <x> <y> <z> [yaw] [pitch] [world]"
- on break of any sign:
- if {teleportsign.%location of target block of player%.teleportTo} is set:
- cancel event
- send "{@logo} You cannot break a teleport sign."
Advertisement
Add Comment
Please, Sign In to add comment