From 3957c739f3c05fa29518facdb5f2336990d22eed Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 10 Sep 2023 18:51:50 +0100 Subject: [PATCH] Change mango trees to be more accurate --- .../com/minelittlepony/unicopia/server/world/UTreeGen.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java b/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java index b80c1d09..bb55a235 100644 --- a/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java +++ b/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java @@ -19,7 +19,6 @@ import net.minecraft.world.gen.foliage.JungleFoliagePlacer; import net.minecraft.world.gen.stateprovider.BlockStateProvider; import net.minecraft.world.gen.treedecorator.LeavesVineTreeDecorator; import net.minecraft.world.gen.treedecorator.TrunkVineTreeDecorator; -import net.minecraft.world.gen.trunk.MegaJungleTrunkPlacer; import net.minecraft.world.gen.trunk.StraightTrunkPlacer; import net.minecraft.world.gen.trunk.UpwardsBranchingTrunkPlacer; @@ -67,13 +66,13 @@ public interface UTreeGen { .count(2, 0.01F, 1) .build(); Tree MANGO_TREE = Tree.Builder.create(Unicopia.id("mango_tree"), - new MegaJungleTrunkPlacer(3, 4, 6), - new JungleFoliagePlacer(ConstantIntProvider.create(3), ConstantIntProvider.create(0), 2) + new StraightTrunkPlacer(4, 7, 3), + new BlobFoliagePlacer(ConstantIntProvider.create(3), ConstantIntProvider.create(0), 3) ) .farmingCondition(9, 0, 4) .log(Blocks.JUNGLE_LOG) .leaves(UBlocks.MANGO_LEAVES) - .biomes(selector -> selector.hasTag(BiomeTags.IS_JUNGLE) && selector.getBiomeKey() != BiomeKeys.JUNGLE) + .biomes(selector -> selector.hasTag(BiomeTags.IS_JUNGLE) && selector.getBiomeKey() != BiomeKeys.SPARSE_JUNGLE) .sapling(Unicopia.id("mango_sapling")) .count(1, 1, 2) .configure(builder -> builder.decorators(ImmutableList.of(TrunkVineTreeDecorator.INSTANCE, new LeavesVineTreeDecorator(0.25f))))