mojira.dev
MCPE-238263

slot.armor.body is no longer accepted in wearable component

The bug

As of the latest preview, using slot.armor.body as the slot in a custom item wearable component now produces the following content log error:

[Item][error]- Failed to parse field ' -> components -> minecraft:wearable -> slot: This value is bound to 'Wearable Slot' and expects one of the following strings: 'slot.weapon.offhand', 'slot.armor.head', 'slot.armor.chest', ... (2 others). Found: 'slot.armor.body''

The item fails to load correctly, and does not have wearable functionality.

This breaks my existing content, with no workaround.

Use case explanation

My custom content has an armor item that can be equipped onto mobs, just like wolf armor. It has the following requirements:

  1. Must display as a 2D item sprite in the player’s hand

  2. Must display as a 3D attachable when equipped to a mob’s armor slot

  3. Must not be equippable to players

Using slot.armor.body in wearable fulfilled all of those criteria. The only issue with (3) was MCPE-237186, but I had a workaround for that.

This bug prevents this item from working. Since slot.armor.body is disallowed, I now have to use one of the player’s armor slots, which breaks (3). If I don’t use wearable at all, it breaks (1) and (2).

This content was working before the preview and should therefore continue to work.

How to reproduce

  1. Download and open the world from MCPE-237186

Expected result

A normal functional item

Observed result

Content log error, item does not load

Comments 0

No comments.

tryashtar

(Unassigned)

Unconfirmed

Windows

26.30.20 Preview

Retrieved