Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

furbomomma

Members
  • Joined

  • Last visited

  1. It looks like spawn list entry is no longer on mappings channel: 'snapshot', version: '20210309-1.16.5' so i wrote this down instead: package com.fmom.cb.world.gen; import com.fmom.cb.Main; import com.fmom.cb.init.ModEntityTypes; import net.minecraft.entity.EntityClassification; import net.minecraft.world.biome.MobSpawnInfo; import net.minecraftforge.event.world.BiomeLoadingEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; @Mod.EventBusSubscriber(modid = Main.MODID, bus = Mod.EventBusSubscriber.Bus.FORGE) public class ModEntitySpawns { @SubscribeEvent public static void onBiomeLoading(BiomeLoadingEvent e) { e.getSpawns().withSpawner(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(ModEntityTypes.CAPYBARA.get(), 100, 5, 5)); } }
  2. package com.fmom.cb.world.gen; import com.fmom.cb.Main; import com.fmom.cb.init.ModEntityTypes; import net.minecraft.entity.EntityClassification; import net.minecraft.world.biome.Biome; import net.minecraft.world.biome.MobSpawnInfo; import net.minecraft.world.biome.MobSpawnInfo.Spawners; import net.minecraftforge.event.world.BiomeLoadingEvent; 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 = Main.MODID, bus = Mod.EventBusSubscriber.Bus.MOD) public class ModEntitySpawns { @SubscribeEvent public static void spawnEntities(BiomeLoadingEvent event) { for(Biome biome : ForgeRegistries.BIOMES) { if(biome.getCategory() == Biome.Category.NETHER) {} else if(biome.getCategory() == Biome.Category.THEEND) {} else { if (biome.getCategory() != Biome.Category.OCEAN) { biome.getMobSpawnInfo().getSpawners(EntityClassification.CREATURE) .add(new Biome.SpawnListEntry(ModEntityTypes.CAPYBARA.get(), 10, 3, 5)); } } } } } Hello, I'm making an entity spawn system following technovision's tutorial and I can't seem to find Biome.SpawnListEntry

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.