Blocks Wont Spawn In Nether

Started by The_Kipster on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 04:03, 18. Nov 2017
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?

Last seen on 18:36, 5. Feb 2022
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.

Last seen on 12:58, 23. Sep 2019
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  
Last seen on 01:51, 2. Jan 2018
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

 

Last seen on 17:50, 30. Jan 2020
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));