Skip to content

Commit 79f0ec1

Browse files
committed
maple tree generation updated
1 parent 85ac7ba commit 79f0ec1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/world/worldgen/OverworldChunkGenerator.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,31 +105,31 @@ public Random getRandom(ChunkCoord coord) {
105105
private void placeTree(int x, int y, int z) {
106106
var world = generator.world;
107107
// tree
108-
for (int i = 0; i <= 6; i++) {
108+
for (int i = 0; i <= 7; i++) {
109109
world.setBlock(x, y + i, z, Blocks.MAPLELOG.id);
110110
}
111111
// leaves, bottom
112-
world.setBlock(x - 1, y + 3, z, Blocks.MAPLELEAVES.id);
113-
world.setBlock(x + 1, y + 3, z, Blocks.MAPLELEAVES.id);
114-
world.setBlock(x, y + 3, z - 1, Blocks.MAPLELEAVES.id);
115-
world.setBlock(x, y + 3, z + 1, Blocks.MAPLELEAVES.id);
116-
world.setBlock(x - 1, y + 6, z, Blocks.MAPLELEAVES.id);
117-
world.setBlock(x + 1, y + 6, z, Blocks.MAPLELEAVES.id);
118-
world.setBlock(x, y + 6, z - 1, Blocks.MAPLELEAVES.id);
119-
world.setBlock(x, y + 6, z + 1, Blocks.MAPLELEAVES.id);
112+
world.setBlock(x - 1, y + 4, z, Blocks.MAPLELEAVES.id);
113+
world.setBlock(x + 1, y + 4, z, Blocks.MAPLELEAVES.id);
114+
world.setBlock(x, y + 4, z - 1, Blocks.MAPLELEAVES.id);
115+
world.setBlock(x, y + 4, z + 1, Blocks.MAPLELEAVES.id);
116+
world.setBlock(x - 1, y + 7, z, Blocks.MAPLELEAVES.id);
117+
world.setBlock(x + 1, y + 7, z, Blocks.MAPLELEAVES.id);
118+
world.setBlock(x, y + 7, z - 1, Blocks.MAPLELEAVES.id);
119+
world.setBlock(x, y + 7, z + 1, Blocks.MAPLELEAVES.id);
120120
// leaves, thick
121121
for (int x1 = -1; x1 <= 1; x1++) {
122122
for (int z1 = -1; z1 <= 1; z1++) {
123123
// don't overwrite the trunk
124124
if (x1 == 0 && z1 == 0) {
125125
continue;
126126
}
127-
for (int y1 = 4; y1 <= 5; y1++) {
127+
for (int y1 = 5; y1 <= 6; y1++) {
128128
world.setBlock(x + x1, y + y1, z + z1, Blocks.MAPLELEAVES.id);
129129
}
130130
}
131131
}
132132

133-
world.setBlock(x, y + 7, z, Blocks.MAPLELEAVES.id);
133+
world.setBlock(x, y + 8, z, Blocks.MAPLELEAVES.id);
134134
}
135135
}

0 commit comments

Comments
 (0)