mojira.dev
MC-80243

Saddles don't apply attribute modifiers when worn by entities

The Bug:

Saddles don't apply attribute modifiers when worn by entities.

Steps to Reproduce:

  1. 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"}}
  2. Mount the horse, move around, and observe its movement speed.

  3. 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 20w46a.

2 more comments

Can confirm in 21w06a.

Can confirm in 21w07a. Video attached.

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"}]]

John Dame

Avoma

gegy

Confirmed

Platform

Low

Items

saddle

Minecraft 1.8.4, Minecraft 15w43b, Minecraft 1.10.2, Minecraft 16w41a, Minecraft 16w42a, , 1.21, 1.21.1, 1.21.2 Pre-Release 3, 1.21.3, 1.21.4

25w03a

Retrieved