Recent Discussions
Skript: Custom respawn mechanics help
Unanswered
West African Crocodile posted this in #questions
76 messages
0 views
West African CrocodileOP
I'm trying make a skript that prevents players from sleeping and respawning in the "wilds" world. The problem is that when players die in "wilds" and respawn in the world spawn (as expected), BUT if they die again but now in the "world," they get respawned in the "wilds" again, where they set their respawn point, rather than being sent to the world spawn in "world."
on bed enter:
if world of player is "wilds":
cancel event
send "&cThe land rejects your need for rest, and fate denies you a place to return." to player
wilds_insomnia.sk
I have tried replacing the
Alright. Thank you.
on bed enter:
if world of player is "wilds":
cancel event
send "&cThe land rejects your need for rest, and fate denies you a place to return." to player
wilds_insomnia.sk
on bed enter:
if world of player is "wilds":
cancel event
send "&cThe land rejects your need for rest, and fate denies you a place to return." to player
on death:
if world of victim is "wilds":
set {wilds-death::%victim%} to true
on respawn:
if {wilds-death::%player%} is set:
delete {wilds-death::%player%}
set {_worldspawn} to location(1632, 69, -824, world "world")
set respawn location to {_worldspawn}
teleport player to {_worldspawn}
send "&eYou cannot respawn in Wilds. Teleporting to world spawn and resetting your respawn point! " to playerI have tried replacing the
set respawn location to {_worldspawn} with execute console command "spawnpoint %player% 1632, 69, -824" but the console is returning "Player not found" error.Alright. Thank you.

Chum salmon
I'd recommend asking in the skunity discord
Skript is't particularly liked here
discord.gg/skript
@Chum salmon Skript is't particularly liked here
Kromfohrländer
Shush I'm here for bro
Chum salmon
Also fwiw doing this would work
on death:
set {_worldspawn} to location(1632, 69, -824, world "world")
set respawn location to {_worldspawn}Kromfohrländer
Don't use the player
Chum salmon
No?
Ruddy Ground-Dove
Generally speaking you won't find much love for Skript here, nor will you find much expertise.
Go chat to Skript people.
Go chat to Skript people.
Or better yet do it in an actual programming lang.
@Ruddy Ground-Dove Generally speaking you won't find much love for Skript here, nor will you find much expertise.
Go chat to Skript people.
Go chat to Skript people.
Kromfohrländer
You will find me. With much love and expertise for skript
😡
Stop discouraging skripters
@Kromfohrländer You will find me. With much love and expertise for skript
Ruddy Ground-Dove
I'm ready to make you stop being real.
Chum salmon
fwiw this is my nickname in skunity
Screenshot_2025-02-17_at_5.34.54_pm.png
@Kromfohrländer Not the issue
Chum salmon
wdym by that tho?
If they are spawning in the wrong world then just forcibly set their spawn to world spawn
@Chum salmon wdym by that tho?
Kromfohrländer
Issue is "player not found"... Oh wait
Yeah that would fix
Chum salmon
yea lol
Kromfohrländer
Mbmb I didn't read
Loading...
Loading...