{ "parent": "fz:game_event", "criteria": { "on_piglin_trade": { "trigger": "minecraft:thrown_item_picked_up_by_entity", "conditions": { "player": [ { "condition": "minecraft:reference", "name": "fz:is_real_player" } ], "entity": { "type": "minecraft:piglin", "flags": { "is_baby": false } } } } }, "rewards": { "function": "fz:game_event/advancement/on_piglin_trade" } }