Mojira Archive
MC-271302

Attributes don't apply after switching from offhand/armor slots

Let H be an item that gives an attribute A, when held in "any" slot (the main/offhand and armor slots).

Switching H from offhand to mainhand, or armor slots to main/offhand disables A (unexpected behaviour), and switching H from mainhand to offhand, or main/offhand to armor slots does not disable A (expected behaviour).

Item to reproduce:
{{/give @s minecraft:leather_helmet[minecraft:attribute_modifiers={modifiers:[

{name:"armor",amount:1.0d,type:"minecraft:generic.armor",uuid:[I; 0, 0, 0, 0],slot:"any",operation:"add_value"}

]}]}}

Duplicate

wd4q5dy

2024-04-30, 11:46 PM

2024-05-01, 03:22 AM

2024-05-01, 03:22 AM

0

2

Unconfirmed

(Unassigned)

1.20.6

-