Hi, I'm making a custom Entity, already fix it all, i can spawn it by commands but idk how to create spawnegg, i'm working with deferred register and I want that mob spawns naturally in biomes, but i don't see any way to add my monster to biomemaker class etc, any tip? thank u btw.
1. I'm using tthis to try to spawn it (I know 500 it's too much), problem is: Pigs are spawning, not my mob... But on dungeons it's spawning okay.
2. Maybe a more "natural" codding way to spawn it naturally?
3. Really thanks for ur patience, I post a lot, sorry.
private void setup(final FMLCommonSetupEvent event) {
// some preinit code
LOGGER.info("HELLO FROM PREINIT");
EntitySpawnPlacementRegistry.register(VERRUCT.get(), EntitySpawnPlacementRegistry.PlacementType.ON_GROUND, Heightmap.Type.MOTION_BLOCKING_NO_LEAVES,
MonsterEntity::checkMonsterSpawnRules);
DungeonHooks.addDungeonMob(VERRUCT.get(), 500);
@SubscribeEvent
public static void onBiomeLoad(final BiomeLoadingEvent event){
if (event.getName() == null){
return;
}
MobSpawnInfoBuilder spawns = event.getSpawns();
if (event.getCategory()!=(Biome.Category.OCEAN)) {
spawns.addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(VERRUCT.get(), 500, 1, 1));
}
}