fz-survival-datapack/data/fzsd/advancement/module/interactor/on_click.json

42 lines
1.5 KiB
JSON
Raw Normal View History

{
"parent": "fzsd:module/interactor",
"criteria": {
"on_click": {
"trigger": "minecraft:tick",
"conditions": {
"player": [
{
"condition": "minecraft:reference",
"name": "fzsd:is_real_player"
},
{
"condition": "minecraft:any_of",
"terms": [
{
"condition": "minecraft:entity_scores",
"entity": "this",
"scores": {
"fzsd.module.interactor.trigger": {
"min": 1
}
}
},
{
"condition": "minecraft:entity_scores",
"entity": "this",
"scores": {
"fzsd.module.interactor.trigger": {
"max": -1
}
}
}
]
}
]
}
}
},
"rewards": {
"function": "fzsd:module/interactor/event/advamcement/on_click"
}
}