fz-survival-datapack/data/fz/functions/config/main.mcfunction

8 lines
509 B
Mcfunction
Raw Normal View History

2020-11-27 00:27:49 +08:00
#主函数
#允许玩家操作config记分板
scoreboard players enable @a config
#每条子函数都要reset config分数和function fz:config/display
2021-07-03 06:21:34 +08:00
execute if data storage fz.installed {sweeper: 1b} as @a if score @s config matches 1478966200..1478966217 run function fz:sweeper/config/trigger
2021-07-20 01:52:26 +08:00
execute if data storage fz.installed {scoreboards: 1b} as @a if score @s config matches 1838019368..1838019379 run function fz:scoreboards/config
2020-11-27 00:27:49 +08:00
#循环执行本函数
2021-07-03 06:21:34 +08:00
schedule function fz:config/main 1t