Hi all, sorry if this question is a little bit stupid, but I was wondering why I couldn't spawn already existing mobs. I had tried spawning the Giant mob in this code here, but I'm not sure what I'm doing wrong:
@Mod.EventBusSubscriber(modid = mod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModEntitySpawns {
@SubscribeEvent
public static void spawnEntities (FMLLoadCompleteEvent event, World world) {
for (Biome biome: ForgeRegistries.BIOMES) {
if (biome.getCategory() != Biome.Category.OCEAN) {
biome.getSpawns(EntityClassification.MONSTER).add(
new Biome.SpawnListEntry(EntityType.GIANT, 100, 3, 16)
);
}
}
}
}
Hi all, sorry if this question is a little bit stupid, but I was wondering why I couldn't spawn already existing mobs. I had tried spawning the Giant mob in this code here, but I'm not sure what I'm doing wrong:
Methods with the @SubscribeEvent annotation should only have one parameter, namely the event parameter.