Jump to content

[1.16.1] Problem with mob spawning


Recommended Posts


I am in the process of learning how to make a mod but I am stuck on the spawning portion.

My current mapping is: mappings channel: 'snapshot', version: '20200723-1.16.1'


The errors I get are:

error: cannot find symbol
                            .add(new Biome.SpawnListEntry(ModEntityTypes.BENGAL_CAT.get(), 10, 3, 5));
  symbol:   class SpawnListEntry
  location: class Biome


error: cannot find symbol
  symbol:   method getSpawns(EntityClassification)
  location: variable biome of type Biome


Here is the code.

package com.undecimber.naturereconstructed.world.gen;

import com.undecimber.naturereconstructed.naturereconstructed;
import com.undecimber.naturereconstructed.init.ModEntityTypes;
import net.minecraft.entity.EntityClassification;
import net.minecraft.world.biome.Biome;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent;
import net.minecraftforge.registries.ForgeRegistries;

@Mod.EventBusSubscriber(modid = naturereconstructed.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModEntitySpawns {

    public static void spawnEntities(FMLLoadCompleteEvent event) {
        for (Biome biome : ForgeRegistries.BIOMES) {

            // Nether Mobs
            if (biome.getCategory() == Biome.Category.NETHER) { }

            // End Mobs
            else if (biome.getCategory() == Biome.Category.THEEND) { }

            // Overworld Mobs
            else {
                if (biome.getCategory() != Biome.Category.OCEAN) {
                            .add(new Biome.SpawnListEntry(ModEntityTypes.BENGAL_CAT.get(), 10, 3, 5));


Edited by Undecimber
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.

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.