Jump to content

[1.16] Getting the entity to spawn


MFMods

Recommended Posts

I have a functional creature-entity (I can get it when i use the spawn egg). That was too frustrating but I'll try not to vent.

Now i need those things to spawn in swamps.

What i have:

1) in FMLCommonSetupEvent i have just one line:

EntitySpawnPlacementRegistry.register(RegistrationManager.TESTSLIME.get(), EntitySpawnPlacementRegistry.PlacementType.ON_GROUND, Heightmap.Type.MOTION_BLOCKING_NO_LEAVES, TestSlimeEntity::checkTestSlimeSpawnRules);

event fires, but checkTestSlimeSpawnRules is never called. i don't know why.

2) in BiomeLoadingEvent just this:

if (event.getCategory() == Biome.Category.SWAMP)
{
    event.getSpawns().getSpawner(EntityClassification.CREATURE).add(new MobSpawnInfo.Spawners(RegistrationManager.TESTSLIME.get(), 8, 1, 4));
}

event fires a couple of times (swamp i'm in is likely composed of few small biomes; it is cut up by other biomes).

3) in entity registration, it is classified as EntityClassification.CREATURE.

any idea why they won't spawn?

 

 

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.



×
×
  • Create New...

Important Information

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