Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-15224

Saplings can grow with dirt above

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      You can grow jungle and oak sapling with dirt or grass above or around it. It will not remove the dirt 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)
      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.

        Attachments

        1. 2014-03-10_18.36.20.png
          266 kB
          Itouch2
        2. 2014-11-16_21.20.12.png
          333 kB
          Ricky Fisher
        3. 2015-12-06_16.26.27.png
          152 kB
          [Mod] Kumasasa
        4. 2015-12-06_16.27.09.png
          498 kB
          [Mod] Kumasasa

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mikiminer Miki Pedersen
              • Votes:
                13 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: