Skip to content

Commit

Permalink
Tweak chicken nest generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bageldotjpg committed Sep 28, 2023
1 parent d84514f commit aebcd78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"values": [
"#minecraft:is_forest"
"minecraft:forest",
"minecraft:flower_forest",
"minecraft:birch_forest",
"minecraft:old_growth_birch_forest",
"minecraft:dark_forest",
"#minecraft:is_jungle",
"#minecraft:is_taiga"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.minecraft.data.DataGenerator;
import net.minecraft.data.tags.BiomeTagsProvider;
import net.minecraft.tags.BiomeTags;
import net.minecraft.world.level.biome.Biomes;
import net.minecraftforge.common.data.ExistingFileHelper;

public class IncubationBiomeTagsProvider extends BiomeTagsProvider {
Expand All @@ -16,7 +17,7 @@ public IncubationBiomeTagsProvider(DataGenerator generator, ExistingFileHelper e

@Override
protected void addTags() {
this.tag(IncubationBiomeTags.HAS_CHICKEN_NEST).addTag(BiomeTags.IS_FOREST);
this.tag(IncubationBiomeTags.HAS_CHICKEN_NEST).add(Biomes.FOREST, Biomes.FLOWER_FOREST, Biomes.BIRCH_FOREST, Biomes.OLD_GROWTH_BIRCH_FOREST, Biomes.DARK_FOREST).addTag(BiomeTags.IS_JUNGLE).addTag(BiomeTags.IS_TAIGA);
this.tag(IncubationBiomeTags.HAS_DUCK_NEST).addOptionalTag(IncubationConstants.HAS_DUCK);
this.tag(IncubationBiomeTags.HAS_TURKEY_NEST).addOptionalTag(IncubationConstants.HAS_TURKEY);
}
Expand Down

0 comments on commit aebcd78

Please sign in to comment.