Mojira Archive
MC-180765

Attack Knockback attribute doesn't work on items.

This one is quite simple; Although generic.attack_knockback is a perfectly valid attribute, it can only be used as a base attribute for mobs, and does not currently work with items.

/give @p minecraft:stick{AttributeModifiers:[{AttributeName:"generic.attack_knockback",Name:"generic.attack_knockback",Amount:10,Operation:0,UUID:[I;5,5,5,5],Slot:"mainhand"}]} 1

The command above gives the nearest player a stick which increases Attack Knockback by 10, however, when using the stick as a weapon, the extra knockback does not apply, although the description does say "+10 Attack Knockback".

Duplicate

nottellingyou

2020-04-25, 07:28 PM

2020-06-10, 05:00 PM

2020-06-10, 05:00 PM

1

1

Unconfirmed

Commands

20w17a

-