Change mango trees to be more accurate

This commit is contained in:
Sollace 2023-09-10 18:51:50 +01:00
parent a2a1a64523
commit 3957c739f3
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -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))))