fz-survival-datapack/data/fz/functions/config/unsneak.mcfunction
2020-11-27 00:27:49 +08:00

6 lines
346 B
Mcfunction
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#由config/sneak和config/unsneak成就触发
#判断玩家视角是否指向正上方是则运行turnon函数
execute if data storage fz.installed {config:1b} if entity @s[x_rotation=-90] run function fz:config/turnon
#重置该玩家的两个成就
advancement revoke @s only fz:config/sneak
advancement revoke @s only fz:config/unsneak