In the latest version, iron golems can give copper golems a poppy as an easter egg. However, when players kill a copper golem with a poppy or use shears to trim the flower, the poppy is not dropped as an item. This behavior is inconsistent with other dropping mechanics in the game.
How to Reproduce:
Summon a copper golem with a poppy using the command:
/summon copper_golem ~ ~ ~ ~ ~ minecraft:on_take_flower
Kill the copper golem or use shears on its flower
Check the dropped items
Observed Result:
No poppy is dropped when killing the copper golem
No poppy is obtained when using shears on the flower
Expected Result:
The poppy should be dropped as an item when:
The copper golem is killed
The flower is trimmed with shears
How to Fix:
Add this JSON file into copper golem’s entities file just like snow golem:
"spawn_items": { "table": "loot_tables/entities/copper_golem_shear.json" }
And create a loot table named copper_golem_shear.json for sheared copper golems:
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:poppy",
"weight": 1,
"count": 1
}
]
}
]
}
Attachments
Comments 3
Note: Minecraft 1.21.100.24 fixed sheared loot tables but kill poppy copper golem still don’t drop flowers.
I made a behavior packs to resolve this problem. I found that the copper golem loot table file is lost so I add it in the file.
[media][media]