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

Lightning hitting a waxed copper block does not clean surrounding weathering copper blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.1, 21w39a, 21w42a, 21w43a, 1.18 Pre-release 1, 1.18 Release Candidate 1, 1.18 Release Candidate 3, 1.18 Release Candidate 4, 1.18, 1.18.1, 22w06a, 22w14a, 22w18a, 1.19.1, 1.19.2, 1.20.2
    • None
    • Confirmed
    • Block states, Entities

      The Bug

      Lightning (using /summon command) 'de-ages' the oxidized copper block it hits fully and also some surrounding blocks a few oxidization levels but that does not happen when the lightning hits a block that is waxed.

      Expected Result

      Lightning obviously would not de-age the waxed block itself but the non-waxed surrounding blocks should still be affected by it.

      Observed Result

      None of the blocks got de-aged, even though it did set fire on the surrounding blocks.

      Steps to Reproduce

      1. Create 2 copper block testing areas. I'm using 7x7 ones.
      2. First test -  summon lightning by standing on the non-waxed block
      3. Notice that the block itself will fully de-age and some blocks around it will de-age some levels.
      4. Second test - Try summoning lightning by standing on a waxed block.

      5. Notice that the waxed block would not de-age (intended)  but any other blocks around it don't de-age either.

      These waxed blocks can also create a sort of occlusion (See Photo) where if you summon lightning on either side, the waxed copper blocks in the middle would not let the de-aging effect of lightning pass to the other side.

      Code analysis

      Code analysis can be found in this comment.

        1. 1.png
          1.png
          287 kB
        2. 2.png
          2.png
          1.08 MB
        3. 2021-07-07 12-30-14.mp4
          9.86 MB
        4. 3.png
          3.png
          1.70 MB
        5. 4.png
          4.png
          271 kB
        6. 5.png
          5.png
          1.82 MB
        7. 6.png
          6.png
          1.40 MB
        8. Occlusion.png
          Occlusion.png
          1.55 MB

            Unassigned Unassigned
            charlygulati Charly Gulati
            Votes:
            8 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: