How to get the real world height, not just original terrain ?

Started by djécraft on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get the real world height, not just original terrain ?

Helloooo,

I’m a beginner with MCreator (version 2025.1) and I can’t figure out how to get the real world height at given X and Z coordinates.

I want my block or structure to appear above everything, even if a player built something (house, walls…).

The problem is world surface only gets the original terrain height, so sometimes the block spawns inside buildings or glitches underground.

I can’t find which block or method to use to get the current world height (with player-built blocks).

If someone could explain how to do this in a procedure, with a small MCreator example, that would really help me because I’m still a beginner.

Thank you very much for your help !