2022-06-23 20:11:56 +08:00
|
|
|
{
|
2022-07-30 16:34:38 +08:00
|
|
|
"parent": "fzsd:game_event/on_sneak",
|
2022-06-23 20:11:56 +08:00
|
|
|
"criteria": {
|
2022-07-03 19:01:51 +08:00
|
|
|
"on_unsneak": {
|
2022-06-25 02:22:23 +08:00
|
|
|
"trigger": "minecraft:tick",
|
2022-06-23 20:11:56 +08:00
|
|
|
"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-06-25 02:22:23 +08:00
|
|
|
},
|
2022-07-25 13:34:40 +08:00
|
|
|
{
|
|
|
|
"condition": "minecraft:entity_properties",
|
|
|
|
"entity": "this",
|
|
|
|
"predicate": {
|
|
|
|
"flags": {
|
|
|
|
"is_sneaking": false
|
|
|
|
},
|
2022-08-02 00:24:48 +08:00
|
|
|
"__comment_type_specific": "1.19+",
|
2022-07-25 13:34:40 +08:00
|
|
|
"type_specific": {
|
|
|
|
"type": "player",
|
|
|
|
"advancements": {
|
2022-07-30 16:34:38 +08:00
|
|
|
"fzsd:game_event/on_sneak": true
|
2022-07-25 13:34:40 +08:00
|
|
|
}
|
2022-08-02 00:24:48 +08:00
|
|
|
},
|
|
|
|
"__comment_player": "1.18 compat",
|
|
|
|
"player": {
|
|
|
|
"advancements": {
|
|
|
|
"fzsd:game_event/on_sneak": true
|
|
|
|
}
|
2022-07-25 13:34:40 +08:00
|
|
|
}
|
2022-06-25 02:22:23 +08:00
|
|
|
}
|
2022-06-23 20:11:56 +08:00
|
|
|
}
|
2022-07-25 13:34:40 +08:00
|
|
|
]
|
2022-06-23 20:11:56 +08:00
|
|
|
}
|
|
|
|
}
|
2022-06-23 21:10:09 +08:00
|
|
|
},
|
|
|
|
"rewards": {
|
2022-07-30 16:34:38 +08:00
|
|
|
"function": "fzsd:game_event/advancement/on_unsneak"
|
2022-06-23 20:11:56 +08:00
|
|
|
}
|
|
|
|
}
|