How would I detect ground level after this procedure?

Started by amogus6116 on

Topic category: Help with modding (Java Edition)

Last seen on 19:54, 2. Jul 2024
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I detect ground level after this procedure?
Mon, 07/01/2024 - 17:30 (edited)

I want to detect the ground level after this procedure is completed. Like check if the block below is not air then the block belov that and that. The thing is I don't know how to make this a loop, how would I do this?

 

Edit: I did it using a while loop, checking if the coordinates are air, and when not, spawning the entity

Edited by amogus6116 on Mon, 07/01/2024 - 17:30