Creating a mob with an inventory (e.g. horse) but removing any slots from "minecraft:equippable" (e.g. saddle & horse armor) prevents the player from viewing the mob's inventory, which makes sense. However, after attempting to view the mob's inventory, the player cannot view their own inventory, including accessing chests & other mobs' inventories.
Steps to Reproduce:
1. Create addon
2. Add a mob (i.e. horse, llama)
3a. Copy horse.json from behavior pack
4a. Add "minecraft:is_chested": {} to tamed version of mob
5a. Add into component_groups: "minecraft:inventory": { "inventory_size": 9, "container_type": "horse", "additional_slots_per_strength": 3 } (or replace numbers with your choice)
6a. Add the following to component_groups: "minecraft:strength_3": { "minecraft:strength_3": { "minecraft:strength":{ "value": 3 }} (or replace with the 2nd number of choice) I'm unsure if this step is necessary, but I included it because it exists in the llama's code
7a. Add to event "minecraft:entity_spawned" the following component group: "minecraft:strength_3" (or 2nd number)
8a. Lastly, remove "minecraft:equippable" from tamed version if present.
3b. Replace behavior code with below json & change ex:mob to the proper namespace & name used in the rest of the addon.
Observed Results:
Mob's inventory fails to appear & player is unable to see their own inventory at any capacity.
Expected Results:
A: Equippable slots are not shown, only "chest" slots
B: No inventory is shown, but player is still able to see their own inventory & interact with chests, other mobs' inventories, etc.
Workarounds:
Player: Exit & return to game.
Developer: Add "dummy" slot like saddle, horse armor, or carpet to access mob's chest. This solution still involves proper implementation of saddle/armor/carpet code just to be able to access mob's inventory. OR remove equippable properties, leaving a bare "minecraft:equippable": {} in the tamed mob's component_group, despite no item being actually equippable by the mob.
Attachments
Comments 2
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
Is this still an issue in the latest version? If so, can you add it to the affected versions?