34 lines
1.1 KiB
JSON
34 lines
1.1 KiB
JSON
{
|
|
"parent": "fz:game_event/on_sneak",
|
|
"criteria": {
|
|
"on_unsneak": {
|
|
"trigger": "minecraft:tick",
|
|
"conditions": {
|
|
"player": [
|
|
{
|
|
"condition": "minecraft:reference",
|
|
"name": "fz:is_real_player"
|
|
},
|
|
{
|
|
"condition": "minecraft:entity_properties",
|
|
"entity": "this",
|
|
"predicate": {
|
|
"flags": {
|
|
"is_sneaking": false
|
|
},
|
|
"type_specific": {
|
|
"type": "player",
|
|
"advancements": {
|
|
"fz:game_event/on_sneak": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"rewards": {
|
|
"function": "fz:game_event/advancement/on_unsneak"
|
|
}
|
|
} |