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

The blast protection enchantment, when applied to horse armor, no longer diminishes the knockback effect from explosions on horse

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 24w14a, 1.20.5 Pre-Release 1
    • None
    • Confirmed
    • Commands, Enchantments
    • Normal
    • Platform

      This problem was introduced in 24w05a due to the change that horse armor is stored in body_armor_item instead of ArmorItems[2].

      A clone of MC-269779, previously marked as "Cannot Reproduce" due to invalid reproduction steps being utilized despite a comment outlining the correct reproduction process. This bug report will reiterate the correct steps for reproduction. The Blast Protection enchantment effectively reduces damage but does not mitigate knockback. At each level, the blast protection enchantment decreases knockback by 15%. Consequently, at level 7, it completely prevents knockback from explosions, simplifying the reproduction of the issue. (To obtain an item with blast protection level 7, you can execute the following command:

      /give @p netherite_helmet[enchantments={levels:{"minecraft:blast_protection":7}}] 1

      This issue is related to MC-198809, MC-259573, MC-268936, MC-268934, MC-270301 and MC-268935.

      steps to reproduce

      1. /summon horse ~ ~ ~ {Tame:1b,body_armor_item:{id:"minecraft:diamond_horse_armor",count:1,components:{"minecraft:enchantments":{levels:{"minecraft:blast_protection":7}}}},SaddleItem:{id:"minecraft:saddle",Count:1b}}
      2. /summon creeper ~ ~ ~ {Fuse:0,ignited:1b}

      Observed: Despite being equipped with blast protection 7, the horse experienced knockback from the creeper explosion.
      Expected: The horse should be immune to knockback from the explosion as a result of the blast protection enchantment at level 7.

      If you're hesitant to utilize blast protection beyond level 4 because of MC-10755, you can alternatively follow these steps:

      1. /summon horse ~ ~ ~ {Tame:1b,Tags:["BugBlast"],body_armor_item:{id:"minecraft:diamond_horse_armor",count:1},SaddleItem:{id:"minecraft:saddle",Count:1b}}
      2. /summon horse ~ ~ ~ {Tame:1b,Tags:["BugBlast"],body_armor_item:{id:"minecraft:diamond_horse_armor",count:1,components:{"minecraft:enchantments":{levels:{"minecraft:blast_protection":4}}}},SaddleItem:{id:"minecraft:saddle",Count:1b}}
      3. /effect give @e[tag=BugBlast] minecraft:slowness infinite 6 true
      4. /execute at @e[tag=BugBlast] run summon creeper ~ ~ ~ {Fuse:0,ignited:1b}

      Observed: Both horses experienced identical knockback from the explosion, flying to the same height.
      Expected: The horse equipped with blast protection 4 armor should undergo 60% less knockback from the explosion.

            slicedlime [Mojang] slicedlime
            NoUser No User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: