#spawnpoint x z

1 messages · Page 1 of 1 (latest)

dense pebble
#

what would be the best way to set a player spawnpoint to only a x and z coord? (so the spawn position is the first solid block top to bottom)?

I thought about creating an armor stand that every ticks goes to the max height and descends to -64, stopping only upon hitting a solid block (there's no solid block tag that afaik, so I'd have to create one too), but that doesn't seem very optimal

dense pebble
#

I'm using minecraft java 1.21.1

dense pebble
#

in spigot there's world.getHighestBlockYAt() afaik

plain hornet
#

You can execute positioned over surface

#

Or something like this, I forgot the exact syntax

#

world_surface

dense pebble
#

seems to default to 95Y?

hollow sand
#

Is the world custom generated?

#

Or even built

dense pebble
#

I have a stone platform built

#

though the 95 persists doesn't matter the place (even where I didn't built)

#

platform is at 104 though

plain hornet
#

It uses the world surface from worldgen, so you might need motion_blocking instead or one of the other possible height maps