mojira.dev
MCPE-236344

Wearable items enforce maximum stack size of 1

Items using the minecraft:wearable component enforce a minecraft:max_stack_size value of 1. This is inconsistent with capabilities used by Vanilla. Notably, the carved pumpkin can be worn in the head slot. Instead of enforcing a stack size limit, Minecraft enforces a stack count of 1 in the head slot.

This discrepancy limits creator capabilities.

Demonstration

The attached image shows this bug at play. A content log error is thrown indicating the problem. In game, the stack limit of 1 is enforced.

The entire code of the offending item is as follows:

{
	"format_version": "1.26.10",
	"minecraft:item": {
		"description": {"identifier": "bug_wearables:custom_item"},
		"components": {
			"minecraft:icon": "helmet",
			"minecraft:max_stack_size": 64,
			"minecraft:wearable": {"slot": "slot.armor.head"}
		}
	}
}

Reproduction

This demo screenshot and code are taken from the behavior pack in the attached world for convenience. This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such.

Linked issues

Attachments

Comments 3

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

Hi!
Thank you for your report! 

We're already tracking this issue at MCPE-176931, so I will resolve and link this ticket as a Duplicate

I suggest also to browse through the main issue for potential fixes. 

If you would like to add a vote and any extra information to the main ticket it would be appreciated. 

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Whoops. Not sure how I missed that one. Thanks.

Ciosciaa

(Unassigned)

Confirmed

Multiple

26.10.23 Preview

Retrieved