mojira.dev

RedWay

Assigned

No issues.

Comments

Can’t we, at least, have a copy of the “SelectedItem” data in the “equipment.mainhand” data if the item is equippable in mainhand :

"minecraft:equippable": {"slot": "mainhand"}

It would make the advancement trigger “inventory_changed” work as it should count as equipping the item.

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.