Jump to content

Skript respawn help


Supagamma

Recommended Posts

So I'm trying to start a hardcore server, but every Minecraft day at 5:00 (sunrise), you are switched out of spectator mode and set to survival at the world spawn. I know little to nothing about skript, so this is probably very wrong lol.

Heres the skript:
 

at 5:00:
    if player's gamemode is spectator
        tp player to 0 75 0
    set gamemode of players to survival
    broadcast "§4The dead have been revived!"
    broadcast "§1Discord here --> §2https://discord.gg/3yHzfXq"

 

The "set gamemode of players to survival" should set everyone's gamemode to survival, no matter if they're dead or alive.

The "tp player to 0 75 0" should only teleport the players in spectator mode to the position 0 75 0

 

If someone could help me fix this mess, that would be great! 

Thanks 🙂

Link to comment
Share on other sites

at 5:00:
    if player's gamemode is spectator
        tp player to 0 75 0
    set gamemode of players to survival
    force respawn player

    broadcast "§4The dead have been revived!"
    broadcast "§1Discord here --> §2https://discord.gg/3yHzfXq"

You forgot "force respawn player" that makes the player get revived. Not sure if you can do it any other way.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...