Adjust tree heights to remove the possibility of trees generating absurdly tall

This commit is contained in:
Sollace 2024-02-01 13:26:57 +00:00
parent 2e938633e9
commit e1f4d77580
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -24,7 +24,7 @@ import net.minecraft.world.gen.trunk.UpwardsBranchingTrunkPlacer;
public interface UTreeGen {
Tree ZAP_APPLE_TREE = Tree.Builder.create(Unicopia.id("zap_apple_tree"), new UpwardsBranchingTrunkPlacer(
7, 2, 3,
5, 3, 0,
UniformIntProvider.create(3, 6),
0.3f,
UniformIntProvider.create(1, 3),
@ -47,7 +47,7 @@ public interface UTreeGen {
Tree SWEET_APPLE_TREE = createAppleTree("sweet_apple", UBlocks.SWEET_APPLE_LEAVES, 3);
Tree SOUR_APPLE_TREE = createAppleTree("sour_apple", UBlocks.SOUR_APPLE_LEAVES, 5);
Tree GOLDEN_APPLE_TREE = Tree.Builder.create(Unicopia.id("golden_oak_tree"),
new StraightTrunkPlacer(6, 7, 3),
new StraightTrunkPlacer(6, 1, 3),
new BlobFoliagePlacer(ConstantIntProvider.create(3), ConstantIntProvider.create(0), 3)
)
.configure(TreeFeatureConfig.Builder::forceDirt)
@ -90,7 +90,7 @@ public interface UTreeGen {
static Tree createAppleTree(String name, Block leaves, int preferredDensity) {
return Tree.Builder.create(Unicopia.id(name + "_tree"),
new StraightTrunkPlacer(4, 6, 2),
new StraightTrunkPlacer(4, 3, 2),
new BlobFoliagePlacer(ConstantIntProvider.create(3), ConstantIntProvider.create(0), 3)
)
.configure(TreeFeatureConfig.Builder::forceDirt)