mojira.dev
MC-15224

Saplings can grow with a different type of log above

The bug

You can grow jungle and oak sapling with certain blocks above or around it. It will not remove the them but it will replace the sapling with the log and create leafs.

How to reproduce

Video demonstrating the issue: http://www.youtube.com/watch?v=eSZwNo37FQY

Code analysis

The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

The reason for this is that the method net.minecraft.world.gen.feature.WorldGenAbstractTree.canGrowInto(Block) allows a tree to generate even if one of the following blocks is in the way:

Block / Material 1

Gets replaced

air (material)

Yes ✔

leaves (material)

Yes ✔

grass

No ✔

dirt

No ✔

log

Yes ❌

log2

Yes ❌

sapling

No ✔

vine

Yes ✔

1 Multiple blocks can be out of the same material. For example "leaves" includes the blocks "leaves" and "leaves2"

Basically all blocks or materials with ❌ should be removed. Even though for logs it sounds reasonable having a oak tree with a single jungle log in the middle is pretty strange.

Linked issues

Attachments

Comments

Tails

Please do not mark unreleased versions as affected. You do not have access to this yet.

Tails

Confirmed in 13w18c.

Itouch2

Confirmed for 1.7.4, 1.7.5, 14w08a and 14w10c

Itouch2

Confirmed for 14w19a.

Itouch2

Confirmed for 14w20a and b.

Itouch2

Confirmed for 14w25b.

NotMe

The attached image is the result of trees growing through a height limiter. Confirmed in 1.8.1 -pre4

Alyxander Stokes

Confirmed still in Minecraft version 1.8.

I tested to see if this happens with every block. The only blocks that the trees managed to grow through were dirt, grass, and oak tree leaves and wood. The trees were unable to grow through wood planks or cobble, so if you're making a tree farm and trying to limit tree size, use those materials.

Jess Edward

16W06A Confirmed. This has plagued my vertical apple farm for years. If fixed, I'm willing to share it via Reddit. It has a secret dual purpose that's pretty cool....

marcono1234

Please link to this comment in the description

The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

The reason for this is that the method net.minecraft.world.gen.feature.WorldGenAbstractTree.canGrowInto(Block) allows a tree to generate even if one of the following blocks is in the way:

Block / Material 1

Gets replaced

air (material)

leaves (material)

grass

dirt

log

log2

sapling

vine

1 Multiple blocks can be out of the same material. For example "leaves" includes the blocks "leaves" and "leaves2"

Basically all blocks or materials with ❌ should be removed. Even though for logs it sounds reasonable having a oak tree with a single jungle log in the middle is pretty strange.

Kraif

Confirmed for 1.13.1.

ActuallyAntVenom

This no longer happens in 1.16. Not sure which version fixed it exactly. It does work in 1.15.2

[Mod] markderickson

Hi there!

This looks like it was fixed in 1.16 pre-release 3; I'll attach videos of prerelease 2 and 3 as evidence.

j_p_smith

Can still reproduce in 1.16.1 and 20w28a using wooden logs.

[media]

[media]

pulpetti

Can't reproduce with some blocks in 1.16.1 and 20w28a, but with others I can.

[Mod] LateLag

Reopened based on user comments.

Avoma

Can confirm in 20w48a.

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 21w14a.

Avoma

Can confirm in 21w17a.

Avoma

Can confirm in 1.17.

Avoma

Can confirm in 1.17.1.

Avoma

Can confirm in 1.17.1.

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.2.

Miki Pedersen

(Unassigned)

Confirmed

Gameplay

Low

Block states

bonemeal, grow, leaves, sapling, tree, tree-generation

Minecraft 1.5.2, Snapshot 13w18b, Snapshot 13w18c, Snapshot 13w19a, Minecraft 14w19a, ..., 1.20, 1.20.1, 1.20.4, 24w35a, 1.21.4

1.16 Pre-release 3

Retrieved