How to TP player to the vertically closest air block

Started by SirPogsalot on

Topic category: Help with modding (Java Edition)

Last seen on 04:19, 17. Apr 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to TP player to the vertically closest air block

How would I move the player to the nearest air block above them?

MCreator Procedure

This is what I have, but all it does is teleport the player underground.

Last seen on 04:19, 17. Apr 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have a loop, but it…
Sat, 05/16/2020 - 15:07

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…
Sat, 05/16/2020 - 17:40

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.

Last seen on 04:19, 17. Apr 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure what the print…
Sat, 05/16/2020 - 17:45

I'm not sure what the print block does exactly.