Mojira Archive
MCPE-121800

Custom entities holding equipments other than a sword or a bow don't show the picked up items in their inventories

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

 

 

 

Incomplete

Goldenx42

2021-03-19, 12:44 PM

2021-07-15, 06:38 PM

2021-07-15, 06:38 PM

0

1

Unconfirmed

1.16.210

-