Blocks Wont Spawn In Nether

Started by The_Kipster on

Topic category: Troubleshooting, bugs, and solutions

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Blocks Wont Spawn In Nether

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

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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  
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

 

Joined Mar 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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));