Made poplar tree generation look slightly more natural
This commit is contained in:
parent
aaa1b7c337
commit
7c82ce7a42
|
@ -75,6 +75,17 @@ public class PoplarTreeFeature extends TreeFeatureBase
|
|||
this.setLog(changedBlocks, world, pos, boundingBox);
|
||||
pos = pos.up();
|
||||
}
|
||||
|
||||
for (int i = 1; i < leavesHeight - 3; i++)
|
||||
{
|
||||
for (int xx = -1; xx < 2; xx++)
|
||||
{
|
||||
for (int zz = -1; zz < 2; zz++)
|
||||
{
|
||||
this.setLeaves(world, pos.add(xx, i, zz));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Generate middle of the tree
|
||||
for(int i = 0; i < leavesHeight; i++)
|
||||
|
@ -137,14 +148,15 @@ public class PoplarTreeFeature extends TreeFeatureBase
|
|||
{
|
||||
if ((x == -radius || x == radius) && (z == -radius || z == radius)) { continue; }
|
||||
|
||||
this.setLeaves(world, pos.add(x, 0, z));
|
||||
|
||||
for (int i = -1; i < 3; i++)
|
||||
if (x == -radius || x == radius || z == -radius || z == radius)
|
||||
{
|
||||
this.setLeaves(world, pos.add(-1, i, -1));
|
||||
this.setLeaves(world, pos.add(1, i, 1));
|
||||
this.setLeaves(world, pos.add(-1, i, 1));
|
||||
this.setLeaves(world, pos.add(1, i, -1));
|
||||
if (world.getRandom().nextInt(3) != 0) {
|
||||
this.setLeaves(world, pos.add(x, 0, z));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.setLeaves(world, pos.add(x, 0, z));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,13 +2,13 @@ modLoader="javafml"
|
|||
loaderVersion="[24,)"
|
||||
issueTrackerURL="https://github.com/Glitchfiend/BiomesOPlenty/issues"
|
||||
displayURL="https://minecraft.curseforge.com/projects/biomes-o-plenty"
|
||||
authors="Adubbz, Forstride"
|
||||
logoFile="bop_logo.png"
|
||||
|
||||
[[mods]]
|
||||
modId="biomesoplenty"
|
||||
version="${version}"
|
||||
displayName="Biomes O' Plenty"
|
||||
authors="Forstride, Adubbz"
|
||||
description='''
|
||||
Adds over 50 new biomes, blocks, and more!
|
||||
'''
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue