-
Bug
-
Resolution: Unresolved
-
Minecraft 1.5.2, Snapshot 13w18b, Snapshot 13w18c, Snapshot 13w19a, Minecraft 14w19a, Minecraft 14w20a, Minecraft 14w20b, Minecraft 14w25b, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.8.2-pre4, Minecraft 1.8.8, Minecraft 15w49b, Minecraft 16w06a, Minecraft 1.10.2, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w38a, Minecraft 16w39b, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w06a, Minecraft 1.13.1, 19w41a, 19w46b, 1.15.1, 20w06a, 20w07a, 1.16.1, 20w28a, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4, 20w48a, 20w51a, 21w03a, 21w05b, 21w06a, 21w07a, 21w11a, 21w14a, 21w17a, 1.17, 1.17.1, 1.18.1, 1.18.2, 1.19, 1.19.2, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.20.4, 24w35a
-
Confirmed
-
Block states
-
Low
-
Gameplay
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.
- is duplicated by
-
MC-41853 Trees Growing through dirt
- Resolved
-
MC-52286 Trees growing through dirt layer above it, replacing dirt with log blocks.
- Resolved
-
MC-71201 Growing a sapling under grass will still grow into a tree.
- Resolved
-
MC-114781 Trees grow through dirt roofs
- Resolved
-
MC-154041 Saplings ignore obstacles to growth
- Resolved
-
MC-165804 Tree growth ignores restrictions
- Resolved
-
MC-192700 Oak Saplings grow into big oak trees even if a block is above it
- Resolved
- relates to
-
MC-267143 Some blocks can prevent logs from generating properly on dark oak trees
- Open
-
MC-274236 Saplings won't randomly grow with log directly above
- Open
-
MCPE-78743 If you plant a tree and place dirt on top
- Resolved