Follow the logic from NaturalSpawner.spawnForChunk()
then think about what happens with your configuration in that code,
e.g. the MobCategory, SpawnState, LocalMobCapCalculator and the Biome's MobSpawnSettings.
You can always use a debugger to see what is really happening.
You should use a IIngameOverlay, register it in FMLClientSetupEvent with one of the register methods in OverlayRegistry.
You can take a look at ForgeIngameGui for the vanilla Overlays.
RenderGameOverlayEvent is a runtime event not a mod specific configuration event.
So you need Bus.FORGE
The easy way to check which bus you need is whether the event implements IModBusEvent
It is also a client side event (it is graphics stuff), so you also need
value = Dist.CLIENT
otherwise your mod will likely crash when loaded on a server.
1
point
Important Information
By using this site, you agree to our Terms of Use.