mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Change mango trees to be more accurate
This commit is contained in:
parent
a2a1a64523
commit
3957c739f3
1 changed files with 3 additions and 4 deletions
|
@ -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))))
|
||||
|
|
Loading…
Reference in a new issue