mojira.dev
MC-109121

2 × 2 jungle and spruce trees don't grow from the lowest layer

The bug

2 × 2 jungle and spruce trees don't grow from the lowest layer.

How to reproduce

Put dirt/grass blocks on the lowest possible layer, place 4 saplings in a square and bone meal it. No tree will grow.

In contrast dark oak trees and small trees do grow from the lowest layer.

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The method net.minecraft.world.gen.feature.WorldGenHugeTrees.ensureDirtsUnderneath(BlockPos, World) explicitely tests if the sapling is at y >= 2 and therefor trees can't grow on y = 1. Changing this to >= 1 should not have any negative side effects.

Attachments

Comments

migrated
[media][media][media]
migrated

Please attach screenshots.

migrated

confirmed for 1.11.2

migrated

Confirmed for 1.13.1.

migrated

Still occurs in 19w46a

wobst.michael

This has been fixed somewhere during 1.16 development.

migrated

Just out of curiosity why not Y=0? I know you need dirt below it but there is a cubic chunks mod out there so it's theoretically possible you could be trying to grow 2x2 saplings that are at Y=0. I know they don't bugfix for mods but why have the code explicitly rule out this scenario when it's possible (with mods)? Seems more like something you'd leave undefined.

migrated

(Unassigned)

Confirmed

(Unassigned)

jungle-tree, spruce-tree, tree-generation, y-coordinate

Minecraft 1.10.2, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11.2, ..., Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, 19w46a, 1.15.2

1.16 Release Candidate 1

Retrieved