The Bug:
Saddles don't apply attribute modifiers when worn by entities.
Steps to Reproduce:
Summon a horse equipped with a saddle that increases movement speed by using the command provided below.
/summon minecraft:horse ~ ~ ~ {Tame:1b,SaddleItem:{components:{"minecraft:attribute_modifiers":{modifiers:[{amount:1.0d,id:"minecraft:mc-80243",type:"minecraft:movement_speed",operation:"add_value"}]}},count:1,id:"minecraft:saddle"}}Mount the horse, move around, and observe its movement speed.
Take note as to whether or not saddles apply attribute modifiers when worn by entities.
Observed Behavior:
Saddles don't apply attribute modifiers when worn by entities.
Expected Behavior:
Saddles would apply attribute modifiers when worn by entities.
Attachments
Comments 12
Is this still a issue in the latest version of the game(currently 1.13.1)?
If so, please add it to the affected versions, thanks!
ConfirmedĀ in 1.15.2 and 1.16 Pre-release 5. Horse armour is no longer affected, but saddles are.
Updated command:
/give @s saddle{AttributeModifiers:[{AttributeName:"generic.max_health",Amount:10,UUID:[I;1,2,3,4]}]}Can confirm in 1.17. Here's the updated command for the third reproduction step since the command usage has changed since this report was last updated.
/item replace entity @e[type=horse,limit=1,sort=nearest] horse.armor with minecraft:diamond_horse_armor{AttributeModifiers:[{AttributeName:generic.movement_speed,Amount:1,UUID:[I;5,6,7,8]}]}Can confirm in 24w18a.
Here is a new command to reproduce this in the latest version:
/summon minecraft:horse ~ ~ ~ {Tame:1b,SaddleItem:{components:{"minecraft:attribute_modifiers":{modifiers:[{name:"generic.movement_speed",amount:99d,type:"minecraft:generic.movement_speed",uuid:[I;1,2,3,4],operation:"add_value"}]}},count:1b,id:"minecraft:saddle"}}Appears to affect 1.21.2 pre-release 1:
/give @s saddle[attribute_modifiers=[{id:"movement_speed",type:"movement_speed",amount:20,operation:"add_value",slot:"any"}]]Compare:
/give @s minecraft:leather_horse_armor[attribute_modifiers=[{id:"movement_speed",type:"movement_speed",amount:20,operation:"add_value",slot:"any"}]]
Confirmed for 15w43a