mojira.dev
MC-310361

prevent_armor_change{} entity effect does not work on offhand

prevent_armor_change{} enchantment entity effect does not work in offhand when the item is equippable in the offhand (i.e shield)

Steps to reproduce :

Create a custom enchantment working in offhand with the prevent_armor_change{} entity effect
Apply the custom enchantment to a shield and equip it in the offhand
The shield can be removed from the offhand

It feel like a small oversight.

Thanks !
RedWay.

Attachments

Comments 3

Hi!
Thank you for your report!Β 

  • Can you upload an example data pack this issue can be reproduced with?

Quick Links:Β 
πŸ““β€―Issue Guidelines – πŸ’¬β€―Mojang Support – πŸ“§β€―Suggestions – πŸ“–β€―Minecraft Wiki

HI !

Here is a datapack that add a β€œBind Offhand” enchant for shields. It should prevent the user from removing the shield when equipped in the offhand :

[media]

You can apply the enchant on a shield with the command :

/enchant @s example:bind_offhand

Have a nice day.

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version History – Snapshot Version History – The official Minecraft feedback site

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

RedWay

(Unassigned)

Confirmed

26.2

Retrieved