Skip to content

Commit

Permalink
Add mooshrooms
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Jun 18, 2024
1 parent a8ad5cf commit 96e5c05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/twilightforest/biomes/TFBiomeDeepMushrooms.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package twilightforest.biomes;

import net.minecraft.entity.passive.EntityMooshroom;
import twilightforest.TFFeature;

public class TFBiomeDeepMushrooms extends TFBiomeBase {
Expand All @@ -14,6 +15,10 @@ public TFBiomeDeepMushrooms(BiomeProperties props) {

getTFBiomeDecorator().myceliumPerChunk = 3;
getTFBiomeDecorator().alternateCanopyChance = 0.9F;

// custom creature list.
spawnableCreatureList.clear();
spawnableCreatureList.add(new SpawnListEntry(EntityMooshroom.class, 10, 4, 4));
}

@Override
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/twilightforest/biomes/TFBiomeMushrooms.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package twilightforest.biomes;

import net.minecraft.entity.passive.EntityMooshroom;

public class TFBiomeMushrooms extends TFBiomeBase {

public TFBiomeMushrooms(BiomeProperties props) {
Expand All @@ -9,5 +11,8 @@ public TFBiomeMushrooms(BiomeProperties props) {
getTFBiomeDecorator().setMushroomsPerChunk(8);
getTFBiomeDecorator().setBigMushroomsPerChunk(2);
getTFBiomeDecorator().alternateCanopyChance = 0.2F;

// custom creature list.
spawnableCreatureList.add(new SpawnListEntry(EntityMooshroom.class, 10, 1, 2));
}
}

0 comments on commit 96e5c05

Please sign in to comment.