GAME OVER!

Game over message

Change the rules and players can’t come back. Drop them into the abyss and before they know it, you changed their game mode too.

GRIEFING ALERT

This mod will suddenly teleport all players into the void.

Try the code:

player.onChat("gameover", function () {
    gameplay.setGameMode(
        SURVIVAL,
        mobs.target(ALL_PLAYERS)
    )
    mobs.teleportToPosition(mobs.target(ALL_PLAYERS), pos(0, -1000, 0))
    loops.pause(1000)
    gameplay.setGameMode(
        CREATIVE,
        mobs.target(ALL_PLAYERS)
    )
})