Blocks don't generate in Nether(Ore)

Published by Volfu on Thu, 03/22/2018 - 17:13
Upvotes: 1
Issue description

So i tried to make ore, that spawns in nether but it doesn't.
i checked with different frequency on chunks/specific chunks but without effect
however everything is fine if i try to spawn it in normal world

Issue comments

found a solution for this:
1/ in code add this line : "import net.minecraft.block.state.pattern.BlockMatcher;"
2/ in "public void generateNether" modify :

(new WorldGenMinable(YourBlockName.block.getDefaultState(), X)).generate(world, rand, new BlockPos(randPosX, randPosY, randPosZ)); 

by :
(new WorldGenMinable(YourBlockName.block.getDefaultState(), X, BlockMatcher.forBlock(Block.getBlockById(87)))).generate(world, rand, new BlockPos(randPosX, randPosY, randPosZ)); 

where X is max vein miner(from 0 to 30)
After adding this blocks(ores) spawn in nether.
please add this code in 1.7.9++ mcreator versions

Wait it worked. but not. There was no compilation error anymore but when I tried in the game, I couldn't find any generated ore.

Okay it worked but I needed to put the max vein miner above 3, below 4 it won't generate, idk why.

Now It won't work for my second block generation. I have a dragon ore block that is generating but my onyx block won't.

I haven't changed anything, I only exported my mod again, tried didn't work, then exported it again and now it work. It's weird.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.