Jump to content

[Solved]Dimension Does Not Spawn Entities


Lumby

Recommended Posts

I've created a custom dimension and added my custom biome into it successfully. The Biome is able to correctly affect the day/night cycle and the water color, yet I am unable to get it to spawn any mobs naturally. As far as I'm aware, the biome is the one handling which mobs get to spawn via the spawnableCreatureList/spawnableMonsterList. I've tried adding entities (My custom demon entity, cows, and enderman) to both lists and neither worked. Any ideas what might be the problem?

 

Custom Biome Class:

public class BiomeNightmare extends Biome{
	
	
	public BiomeNightmare() {
		super(new BiomeProperties("Nightmare").setBaseBiome("sky").setWaterColor(12255232).setRainDisabled());
		
		
		topBlock = ModBlocks.NightmareBlock.getDefaultState();
		fillerBlock = ModBlocks.NightmareBlock.getDefaultState();
		
		

		
		this.spawnableCaveCreatureList.clear();
		this.spawnableCreatureList.clear();
		this.spawnableMonsterList.clear();
		this.spawnableWaterCreatureList.clear();
		
		this.spawnableMonsterList.add(new SpawnListEntry(EntityDemon.class, 10, 4, 4));
	}
}

 

Edited by Lumby
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.