Can I remove a spawnpoint? [duplicate]
I am trying to make Minecraft harder, and one of the ways I wish to do this is to have a "pseudo-hardcore" mode where dying spawns you in a random location rather than completely locking you out of the world.
I intend to do this by setting the spawn radius to be very high.
However, I also want to make this "bed-proof" - that is, if someone places a bed and sleeps in it, I want the player to still be spawned in a random location, regardless of their personal spawn point.
How do I do this? Command blocks are fine, but data packs are not preferred.
Solution 1:
You can overwrite their spawnpoint with an invalid location. That way, they will get the message "Your home bed was missing or obstructed", which you can't avoid, but they will respawn at the world spawn point.
/spawnpoint @a 0 0 0
Just run this in a loop. The performance might be slightly better if you only do this whenever they sleep, I don't know. In that case:
/scoreboard objectives add slept minecraft.custom:minecraft.sleep_in_bed
And the loop:
/execute as @a[scores={slept=1..}] run spawnpoint @s 0 0 0