Started by
cristianda05
on
Topic category: Help with Minecraft modding (Java Edition)
I am making a block that, when collided with, teleports the player to another dimension. The coordinates are as following:
x = player x, y = world surface, z = player z.
Can someone explain why, when I am in creative mode, I am teleported to the correct place but when I am in survival mode I get teleported to the correct x and z but UNDERGROUND? Thank you.
Edited by cristianda05 on Wed, 06/22/2022 - 19:51
bump
bump
Maybe after teleporting to the other dimension, set location to (x) (random number between ? and ? included) (z) for entity. You're gonna need to find out what the relative max and min ground y coordinates are first before you use the procedure block above. This is not totally foolproof but you might need to alter the numbers a bit so the player doesn't drop a few blocks.