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

Saplings can be bone mealed and grow on invalid blocks such as air and bedrock, replacing them with dirt/rooted dirt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 21w41a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 2, 1.18 Pre-release 5, 1.18 Pre-release 6, 1.18 Pre-release 8, 1.18 Release Candidate 1, 1.18, 1.18.1 Pre-release 1, 1.18.1 Release Candidate 1, 1.18.1, 22w03a, 22w05a, 22w07a, 1.18.2, 22w12a, 22w17a, 22w18a, 1.19 Pre-release 1, 1.19, 1.19.1 Pre-release 1, 1.19.1 Pre-release 5, 1.19.1, 1.19.2, 22w45a, 23w06a, 1.19.4, 23w14a, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.20.2, 1.20.4
    • Community Consensus
    • Block states
    • Low
    • Gameplay

      The bug

      Saplings can grow on invalid blocks, replacing them with dirt/rooted dirt, after being bone mealed. This includes air blocks, command blocks and bedrock. This, of course, cannot be done normally without commands, so I don't believe that it is a major issue or that it can be easily exploited.

      This also does not seem to affect moss blocks, which are only replaced with rooted dirt by azaleas. Also, this does not affect Nether fungi, which do not accept the bone meal on invalid blocks. This also did not happen in 1.17.1. The aforementioned facts strongly suggest that this behavior is unintended.

      Mushrooms do accept bone meal (MC-173213), but do not grow either.

      To reproduce

      1. Open a creative world.
      2. Fly.
      3. Execute /setblock ~ ~ ~ spruce_sapling, for example;
      4. Apply bone meal to it.
      5. The sapling grows.
      6. The block underneath it is replaced with dirt/rooted dirt.

      Code analysis

      Code analysis by Avoma can be found in this comment.

        1. 1.17.1.mp4
          9.69 MB
        2. 2021-10-17_16.47.59.png
          2021-10-17_16.47.59.png
          805 kB
        3. 2021-10-17_16.48.11.png
          2021-10-17_16.48.11.png
          911 kB
        4. 2021-10-17_16.48.22.png
          2021-10-17_16.48.22.png
          871 kB
        5. MC-239082.mp4
          8.79 MB
        6. MC-239082 - Current Code.png
          MC-239082 - Current Code.png
          445 kB
        7. MC-239082 - Fixed Code.png
          MC-239082 - Fixed Code.png
          432 kB

            Unassigned Unassigned
            ampolive [Mod] ampolive
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: