Started by
The_Kipster
on
Topic category: Troubleshooting, bugs, and solutions
So yeah blocks that I have set to spawn in the nether dont spawn. Is there a fix or something?
Topic category: Troubleshooting, bugs, and solutions
So yeah blocks that I have set to spawn in the nether dont spawn. Is there a fix or something?
You may have to do it by code, not sure. This must be a bug in Mcreator.
I found a solution to this bug
Just find this line :
(new WorldGenMinable(YourBlockName.block.getDefaultState(), X)).generate(world, rand, new BlockPos(randPosX, randPosY, randPosZ)); And write after the max vein size (that's the X that should be your "on specific chunks") this : BlockMatcher.forBlock(Blocks.NETHERRACK) That's cause WorldGenMinable makes ores spawn only in stoneKane that doesnt really help I read the code for my block 10 times and could not find and exact match or similar match to the code your referencing
forBlock dont work whith me. I use getBlockById ;) for netherrack id is 87.
Step 1
import the class BlockMatcher with other import
Step 2
as kane said the X are the max vein miner.
search:
modify the line :
(new WorldGenMinable(YourBlockName.block.getDefaultState(), X)).generate(world, rand, new BlockPos(randPosX, randPosY, randPosZ));
by :