Blast Protection does not reduce explosion knockback in creative game mode
Summary:
Blast Protection does not reduce explosion knockback in creative game mode.
Since the player receives knockback in creative mode, it would make sense that Blast Protection also works in creative mode.
Steps to reproduce:
- Switch to creative game mode.
- Give yourself armor with Blast Protection 4:
/give @s netherite_helmet{Enchantments:[{id:"minecraft:blast_protection",lvl:4s}]} 1 - Stand next to the exploding creeper/TNT.
Observed results:
Blast Protection does not reduce explosion knockback in creative game mode.
Expected results:
Blast Protection reduce explosion knockback in creative game mode.
Created Issue:
Blast Protection does not reduce explosion knockback in creative game mode
Summary:
Blast Protection does not reduce explosion knockback in creative game mode.
Since the player receives knockback in creative mode, it would make sense that Blast Protection also works in creative mode.Steps to reproduce:
- Switch to creative game mode.
- Give yourself armor with Blast Protection 4:
/give @s netherite_helmet{Enchantments:[{id:"minecraft:blast_protection",lvl:4s}]} 1- Stand next to the exploding creeper/TNT.
Observed results:
Blast Protection does not reduce explosion knockback in creative game mode.Expected results:
Blast Protection reduce explosion knockback in creative game mode.
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
/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}}/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:
/summon horse ~ ~ ~ {Tame:1b,Tags:["BugBlast"],body_armor_item:{id:"minecraft:diamond_horse_armor",count:1},SaddleItem:{id:"minecraft:saddle",Count:1b}}/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}}/effect give @e[tag=BugBlast] minecraft:slowness infinite 6 true/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.