2022-07-03 06:27:45 +08:00
|
|
|
{
|
2022-07-30 16:34:38 +08:00
|
|
|
"parent": "fzsd:game_event",
|
2022-07-03 06:27:45 +08:00
|
|
|
"criteria": {
|
2022-07-03 19:01:51 +08:00
|
|
|
"on_piglin_trade": {
|
2022-07-03 06:27:45 +08:00
|
|
|
"trigger": "minecraft:thrown_item_picked_up_by_entity",
|
|
|
|
"conditions": {
|
2022-07-25 13:34:40 +08:00
|
|
|
"player": [
|
|
|
|
{
|
|
|
|
"condition": "minecraft:reference",
|
2022-07-30 16:34:38 +08:00
|
|
|
"name": "fzsd:is_real_player"
|
2022-07-25 13:34:40 +08:00
|
|
|
}
|
|
|
|
],
|
2022-07-03 06:27:45 +08:00
|
|
|
"entity": {
|
2022-07-07 07:39:01 +08:00
|
|
|
"type": "minecraft:piglin",
|
|
|
|
"flags": {
|
|
|
|
"is_baby": false
|
|
|
|
}
|
2022-07-03 06:27:45 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"rewards": {
|
2022-07-30 16:34:38 +08:00
|
|
|
"function": "fzsd:game_event/advancement/on_piglin_trade"
|
2022-07-03 06:27:45 +08:00
|
|
|
}
|
|
|
|
}
|