mojira.dev
MC-298683

Item with equippable component cannot be given to happy ghast.

An item with the equippable component (body slot) and the happy ghast as the allowed entity, cannot be given to a happy ghast.

Steps to reproduce:

  1. Get the item with the equippable component:

    /give @s minecraft:blue_harness[equippable={allowed_entities:["minecraft:happy_ghast"], slot:body, can_be_sheared:1b, asset_id:"minecraft:red_harness"}]

  2. Attempt to give it to a happy ghast with no harness (/summon minecraft:happy_ghast ~ ~ ~ {NoAI:1b})

Expected Behaviour & Result:

Happy ghast equips a shearable blue harness with the appearance of a red one

Actual Behaviour & Result:

Happy ghast does not equip anything, even with the right slot and allowed entity

Comments 3

equip_on_interact must be true.
The correct command would be:

/give @s minecraft:blue_harness[equippable={allowed_entities:["minecraft:happy_ghast"], slot:body, can_be_sheared:1b, asset_id:"minecraft:red_harness", equip_on_interact:1b}]

The equippable component is missing the `equip_on_interact` field, if this is included it can be equipped as expected. πŸ™‚

Oh alright, sorry, then it’s inconsistent behaviour from that of wolves (and players). The same item, no defined equip_on_interact, but with wolf as the allowed entity can be equipped on a tamed wolf, moreover if there's no allowed_entities the player themselves can equip it. Is this a reportable bug?

Mr Ice

(Unassigned)

Plausible

Expansion A

Low

Commands, Entities

1.21.6 Pre-Release 4

Retrieved