How to TP player to the vertically closest air block

Started by CR1MS4NE on Fri, 05/15/2020 - 23:27

Topic category: Help with modding (Java Edition)

Last seen on 05:08, 18. Jul 2021
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to TP player to the vertically closest air block
Fri, 05/15/2020 - 23:27

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 05:08, 18. Jul 2021
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 05:08, 18. Jul 2021
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.