mojira.dev
MC-276627

Attributes dont get applied when summoning an entity

When the summon command is supposed to add certain attributes to a summoned entity.

 

How to replicate:

  1. Place command block

  2. Set command as: `summon parrot ~ ~1 ~ {attributes: [{id: "minecraft:generic.movement_speed", base: 0.20000000298023224d}, {id: "minecraft:generic.scale", base: 3.0d}, {id: "minecraft:generic.max_health", base: 20.0d}],Health:20f}`

  3. Place button on command block and press it.

  4. A default parrot will spawn even tho its supposed to have a 3x scale and 20 health.

This was also tested in version 1.21 and the command summon the scaled parrot.

Comments 2

Thank you for your report!
However, this issue is Invalid.

The generic prefix and co. were removed in 24w33a, removing them in your command should make it work again.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

See https://www.minecraft.net/article/minecraft-snapshot-24w33a:

Attribute IDs no longer have generic., player. and zombie. prefixes

Tim de Vries

(Unassigned)

Unconfirmed

(Unassigned)

24w37a

Retrieved