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

Started by CapitalisMan on Thu, 08/22/2019 - 23:52

Topic category: Help with modding (Java Edition)

Last seen on 21:39, 24. Aug 2019
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
How to make my ore spawn at a certain distance from air blocks
Thu, 08/22/2019 - 23:52

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...

You could make a structure…
Sat, 08/24/2019 - 18:08

You could make a structure with your ore blocks and set its spawning location to air.