Bug with world surface

Started by cristianda05 on

Topic category: Help with modding (Java Edition)

Last seen on 10:58, 9. Jul 2023
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bug with world surface
Wed, 06/22/2022 - 19:51 (edited)

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
Last seen on 10:58, 9. Jul 2023
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bump
Wed, 06/22/2022 - 13:06

bump

Last seen on 10:58, 9. Jul 2023
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bump
Sun, 06/26/2022 - 13:10

bump

Last seen on 13:56, 19. Dec 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe after teleporting to…
Sun, 06/26/2022 - 14:53

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.