I made some custom entities on MC 1.14.xx which perfectly worked back then.
Since I play on MC 1.16 I noticed that my entities don't show what they picked up on the ground in their inventories.
After a few test I realize that entities holding a bow or a sword show the items, the other ones don't.
Behavior :
"minecraft:equipment": {
"table": "loot_tables/entities/guerrier_gear.json"
},
"minecraft:shareables": { "minecraft:shareables": {"items": [{"item": "minecraft:rotten_flesh","max_amount": 1024, "priority": 1, "stored_in_inventory": true}]}
"minecraft:inventory":{"minecraft:inventory":{ "container_type": "inventory", "inventory_size": 27 }
JSON gear file
with a sword , it's working :
{ "pools": [ { "rolls": 1, "entries": [ { "type": "item", "name": "minecraft:iron_sword", "weight": 1, "functions": [ { "function": "looting_enchant", "count": { "min": 0, "max": 1 } }, { "function": "enchant_random_gear", "chance": 0.25 } ] } ] }, { "conditions": [ { "condition": "random_difficulty_chance", "default_chance": 1.0, "peaceful": 0, "easy": 0 }, { "condition": "random_regional_difficulty_chance", "max_chance": 0.15 } ], "tiers": { "initial_range": 2, "bonus_rolls": 3, "bonus_chance": 0.095 }, "entries": [ { "type": "loot_table", "name": "loot_tables/entities/armor_set_leather.json" }, { "type": "loot_table", "name": "loot_tables/entities/armor_set_gold.json" }, { "type": "loot_table", "name": "loot_tables/entities/armor_set_chain.json" }, { "type": "loot_table", "name": "loot_tables/entities/armor_set_iron.json" }, { "type": "loot_table", "name": "loot_tables/entities/armor_set_diamond.json" } ] } ] }
with an axe, it isn't :
{ "pools": [ { "rolls": 1, "entries": [ { "type": "item", "name": "minecraft:iron_axe", "weight": 1, "functions": [ { "function": "looting_enchant", "count": { "min": 0, "max": 1 } }, { "function": "enchant_random_gear", "chance": 0.25 } ] } ] }, { "conditions": [ { "condition": "random_difficulty_chance", "default_chance": 1.0, "peaceful": 0, "easy": 0 }, { "condition": "random_regional_difficulty_chance", "max_chance": 0.15 } ], "tiers": { "initial_range": 2, "bonus_rolls": 3, "bonus_chance": 0.095 }, "entries": [ { "type": "loot_table", "name": "loot_tables/entities/armor_set_leather.json" }, { "type": "loot_table", "name": "loot_tables/entities/armor_set_gold.json" }, { "type": "loot_table", "name": "loot_tables/entities/armor_set_chain.json" }, { "type": "loot_table", "name": "loot_tables/entities/armor_set_iron.json" }, { "type": "loot_table", "name": "loot_tables/entities/armor_set_diamond.json" } ] } ] }
i'll send the files if you need them
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?