-
Bug
-
Resolution: Works As Intended
-
None
-
Minecraft 1.8, Minecraft 16w15b, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, 1.15.2, 1.16 Pre-release 2, 1.16 Pre-release 5, 1.16.2, 1.16.4, 20w45a, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w16a, 21w17a, 1.17.1, 21w41a, 21w42a, 21w43a, 1.18 Pre-release 1, 1.18 Pre-release 7, 1.18, 1.18.1, 22w03a, 22w05a, 22w06a, 1.18.2 Release Candidate 1, 1.18.2, 22w17a, 1.19, 1.19.1, 1.19.2, 22w43a, 1.19.3, 1.19.4, 1.20, 1.20.1
-
Confirmed
-
Items
-
Normal
-
Gameplay
The Bug:
Holding items enchanted with thorns in your hand works as if you were wearing them.
Steps to Reproduce:
- Switch into survival mode and hold an item enchanted with thorns by using the command provided below.
/item replace entity @s weapon.mainhand with minecraft:golden_helmet{Enchantments:[{id:"minecraft:thorns",lvl:3}]}
- Summon an entity that will attack you, for example, a husk.
- Let it damage you a couple of times.
- Take note as to whether or not holding items enchanted with thorns in your hand works as if you were wearing them.
Observed Behavior:
Holding items enchanted with thorns in your hand works as if you were wearing them.
Expected Behavior:
Holding items enchanted with thorns in your hand would not work as if you were wearing them.
Code Analysis:
Code analysis by Marcono1234 can be found in this comment.