Ore replace air

Started by Flojua1 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ore replace air

Hey,
I tried to make an block called "cloud" that will spawn in the air, it replaces "minecraft:air" from min:100 to max:130.
but we got a problem, it is spawning, but only in biomes where are solid blocks higher than y:100, in normal locations where the blocks are lower than y:100, the "cloud_block" dont replace "minecraft:air" blocks.
its very strange, cuz i dont got any Biome restriction.
the screenshot is showing my problem
screenshot

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think it's 2 possibilitys …
Mon, 02/07/2022 - 20:25

I think it's 2 possibilitys :

1 :There is 3 type of air : void air, cave air, air.

2 : It generate like an ore then it search for a point attached with other blocks.

Sorry if my English is bad I'm French. I hope you will find a way out of your problem ! ^^

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Its "2" but i dont know how…
Mon, 02/07/2022 - 22:15

Its "2" but i dont know how to fix it, or if its even possible to fix

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know I'm answering very…
Wed, 04/09/2025 - 10:14
I know I'm answering very late, but if anyone finds this, here's my solution to this problem: In "configured_feature" I typed this:
{
"type": "minecraft:simple_block",
"config": {
"to_place": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "modid:yourblock"
  }
 }
}
And in "placed_feature" at the very end I typed:
{
"type": "minecraft:height_range",
"height": {
"absolute": 200
 }
}

At height Y200 my blocks appeared
You can check out my Git repository for the code (rainbow.json): https://github.com/VladosssE/JustSomeMinecraftMods/tree/master/src/main/resources/data/carmenblockmod/worldgen
(Sorry for bad English)
Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I copied the post above from…
Wed, 04/09/2025 - 10:30

I copied the post above from Google Translate and that's why the post looks so strange

 

By the way, here is a picture of the blocks at a height of 200:

https://ibb.co/KxDMRbSL