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

Channeling enchantment doesn't work when mob is in water or lava

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 18w07c, Minecraft 1.13-pre6, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, 1.15.2, 20w17a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w06a, 21w08b, 21w13a, 21w16a, 21w17a, 1.17.1, 1.18 Pre-release 4, 1.18.1, 22w06a, 1.18.2 Pre-release 2, 1.18.2, 22w11a, 22w13a, 1.19, 1.19.2, 1.19.3, 23w03a, 1.20.1
    • Confirmed
    • Entities
    • Low
    • Platform

      The bug

      The channeling enchantment doesn't work on a mob whilst it is standing in water or lava.

      How to reproduce

      1. Summon an entity in a block of water
      2. Run the command /weather thunder
      3. Obtain a trident with the Channeling enchantment
      4. Strike the entity with the trident

      Observed behavior

      No lightning strikes the entity and the Channeling enchantment does not affect the entity.

      Expected behavior

      The Channeling enchantment would be effective even when the entity is in water.

      Code analysis

      Code analysis by isXander can be found in this comment.

        1. MC-125773.mp4
          4.98 MB
        2. 2023-01-20_20.31.26.png
          2023-01-20_20.31.26.png
          1.25 MB
        3. 2022-03-16_22.54.53.png
          2022-03-16_22.54.53.png
          357 kB
        4. 2021-05-03_16.13.20.png
          2021-05-03_16.13.20.png
          3.61 MB

            Unassigned Unassigned
            archerking1679 Cédric Goffin
            Votes:
            17 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              CHK: