Started by
SirPogsalot
on
Topic category: Help with Minecraft modding (Java Edition)
How would I move the player to the nearest air block above them?
This is what I have, but all it does is teleport the player underground.
Topic category: Help with Minecraft modding (Java Edition)
How would I move the player to the nearest air block above them?
This is what I have, but all it does is teleport the player underground.
Image embed isn't working, not sure why.
https://imgur.com/lh0WKMY
You would need a loop to find the proper location. I believe this is the answer: https://mcreator.net/forum/60916/find-safe-spot-spawn-player
I have a loop, but it teleports me into the ground, and always to exactly the same spot underground, regardless of how far I am from it.
Did you try printing out the location before teleporting to verify it?
There seem to be some problems with tp (check the link I posted) that will be fixed in the upcoming update.
I'm not sure what the print block does exactly.
It prints given input in the console tab