@ SubscribeEvent ( priority = EventPriority . LOWEST ) public void onBiomeGenInit ( WorldTypeEvent . InitBiomeGens event ) { // Negative one is flag value for normal world gen if ( bparams . getBiome ( ) == - 1 ) return ; GenLayer [ ] replacement = new GenLayer [ 2 ] ; replacement [ 0 ] = new GenLayerConstant ( bparams . getBiome ( ) ) ; replacement [ 1 ] = replacement [ 0 ] ; event . setNewBiomeGens ( replacement ) ; }
Make sure that the biome is one type with an event on biome gen