Blocks Wont Spawn In Nether

Started by The_Kipster on Sat, 09/02/2017 - 10:40

Topic category: Bugs and solutions

Last seen on 04:03, 18. Nov 2017
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Blocks Wont Spawn In Nether
Sat, 09/02/2017 - 10:40

So yeah blocks that I have set to spawn in the nether dont spawn. Is there a fix or something?

Last seen on 23:11, 12. Jul 2019
Joined Jun 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
You may have to do it by code
Sat, 09/02/2017 - 18:48

You may have to do it by code, not sure. This must be a bug in Mcreator.

Last seen on 21:22, 22. Jun 2019
Joined Aug 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I found a solution to this
Sun, 09/03/2017 - 12:10

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 stone  
Last seen on 01:51, 2. Jan 2018
Joined Jan 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Kane that doesnt really help…
Mon, 01/01/2018 - 22:53

Kane 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

 

Last seen on 06:56, 29. Jun 2019
Joined Mar 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
forBlock dont work whith me…
Sat, 02/03/2018 - 14:12

forBlock dont work whith me. I use getBlockById ;) for netherrack id is 87.

Step 1

import the class BlockMatcher with other import

  import net.minecraft.block.state.pattern.BlockMatcher;

Step 2 

as kane said the X are the max vein miner.

search:

public void generateNether.

modify the line :

(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));