42 lines
1.5 KiB
JSON
42 lines
1.5 KiB
JSON
|
{
|
||
|
"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"
|
||
|
}
|
||
|
}
|