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

Saplings won't randomly grow with log directly above

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21, 1.21.3
    • None
    • Community Consensus
    • Block states

      Saplings are known to not care about log blocks when determining whether they can grow at all, and also grow right though them.
      There is one exception, though: A log block directly above the sapling will prevent it from growing via random ticks. If there is an air block between the log and the sapling, it will grow just fine, though.

      Steps to repeat:

      1. Place a sapling on any block it usually grows on.
      2. Place a Log directly on top of the sapling.
      3. Wait. /gamerule randomTickSpeed 1000 won't help, as the sapling never grows, unless bone meal is applied. (Notably, the sapling's age stays at 0, indicating it never even attempts to grow in the first place, rather than failing growth attempts. Compare this to MC-228758, where the diagonal block allows growth attempts to happen, but makes those fail.)
      4. Place another log on top of the first log and remove log right above the sapling. The sapling will grow into a tree eventually.

      Expected behavior:
      Since logs don't usually block growth, there should not be a difference between having a log right on top of the sapling or one block higher.

      Code analysis:
      SaplingBlock.randomTick() performs a light level check in addition to having a built-in random success chance. That light level check is not performed in the sapling block itself, but in the block above. Since logs are full opaque blocks, the light level will always be zero in this specific case, preventing the sapling from growing.

        1. 2024-07-07_19.05.29.png
          1.41 MB
          Wormbo
        2. 2024-07-07_19.05.50.png
          1.22 MB
          Wormbo

            Unassigned Unassigned
            Wormbo Wormbo
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: