2020-11-27 00:27:49 +08:00
|
|
|
{
|
|
|
|
"criteria": {
|
|
|
|
"trading_counter": {
|
|
|
|
"trigger": "minecraft:villager_trade",
|
|
|
|
"conditions": {
|
|
|
|
"player": [
|
|
|
|
{
|
|
|
|
"condition": "minecraft:inverted",
|
|
|
|
"term": {
|
|
|
|
"condition": "minecraft:entity_scores",
|
|
|
|
"entity": "this",
|
|
|
|
"scores": {
|
2021-08-03 06:30:28 +08:00
|
|
|
"carpetBot": 1
|
2020-11-27 00:27:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"rewards": {
|
|
|
|
"function": "fz:scoreboards/tradingcounter/calculator"
|
|
|
|
}
|
|
|
|
}
|