How to make my ore spawn at a certain distance from air blocks

Started by CapitalisMan on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make my ore spawn at a certain distance from air blocks

I have an ore block that I've created but I don't want it to spawn in caves or in view of the player, I think the best way to do that is to make it spawn at a distance from air blocks, but I have no clue how to code that...