Tewca Posted June 5, 2021 Share Posted June 5, 2021 I'm in need of a skript that teleports the player to spawn when they go below a certain y level. If you are ok with making it for me, I would like it to send a message to the player that says "A swift wind caught you from the void", the y level should be 40 to teleport the player and there should be a setspawn command to set the teleport point. Link to comment Share on other sites More sharing options...
StarBunnie Posted June 5, 2021 Share Posted June 5, 2021 (edited) I made this on my phone so excuse any indent errors lol options: title: &5VoidTP &8| on load: if {voidteleport::message} is no set: set {voidteleport::message} to "&8&oA swift wind caught you from the void" on join: while player is online: if y-coordinate of player < 40: teleport player to {voidteleport::spawn} send "%{voidteleport::message}%" to player wait 2.5 seconds command /voidteleport [<text>] [<text>]: aliases: voidtp, vtp trigger: player has permission "voidtp.use": if arg 1 is "spawn": set {voidteleport::spawn} to location of player send "{@title} &7Spawn was set to your location!" else if arg 1 is "message": if arg 2 is set: send "{@title} &7Teleport message is now:" send "%arg 2%" set {voidteleport::message} to "%arg 2%" else: send "{@title} &7Please choose a message." else: send "{@title} &7Please choose if you want to set a message or the spawn." else: send "{@title} &cYou don't have the required permission!" Edited June 5, 2021 by Starshinex3 Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
Tewca Posted June 5, 2021 Author Share Posted June 5, 2021 Ok thanks 1 Link to comment Share on other sites More sharing options...
dellendk_ Posted November 8, 2022 Share Posted November 8, 2022 I cant get it to instantly tp me to spawn when i try to. Do you know why? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now