-
Bug
-
Resolution: Invalid
-
None
-
20w17a, 20w18a, 20w19a, 20w20a, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2
-
None
-
Community Consensus
-
Commands
-
Low
You can use the minecraft:generic.attack_knockback attribute to change the attack knockback of a mob. But if you try to do this with players it does not work. It says entity name has no Attribute Attack Knockback. For mobs it works fine.
How to reproduce:
Run this command: /attribute @s minecraft:generic.attack_knockback base set 0
It fails.
minecraft:generic.flying_speed has the same issue.
It seems like minecraft:generic.flying_speed also does not work on mobs.
This also doesn’t work if you have the attribute on an item. You can for example use this command:/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 and the attribute of the item will only work on mobs.
- is duplicated by
-
MC-180765 Attack Knockback attribute doesn't work on items.
- Resolved
-
MC-182367 players don’t have an attack knockback attribute value
- Resolved
-
MC-194338 Problem with attribute "flying_speed"
- Resolved
-
MC-199161 Attribute "generic.attack_knockback" doesn't work for iron golems
- Resolved
-
MC-268325 `minecraft:generic.flying_speed` does not work for players
- Resolved
- relates to
-
MC-269226 The minecraft:generic.attack_knockback attribute remains unutilized for certain mobs capable of executing melee attacks.
- Open
-
MC-268410 generic.gravity attribute not working on projectiles or items
- Resolved