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



    • 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
    • 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
          287 kB
          Charly Gulati
        2. 2.png
          1.08 MB
          Charly Gulati
        3. 2021-07-07 12-30-14.mp4
          9.86 MB
          [Mod] ampolive
        4. 3.png
          1.70 MB
          Charly Gulati
        5. 4.png
          271 kB
          Charly Gulati
        6. 5.png
          1.82 MB
          Charly Gulati
        7. 6.png
          1.40 MB
          Charly Gulati
        8. Occlusion.png
          1.55 MB
          Charly Gulati



            Unassigned Unassigned
            charlygulati Charly Gulati
            7 Vote for this issue
            4 Start watching this issue