This commit is contained in:
延皓 committed 2021-07-03 06:21:34 +08:00
1 parent 5e41b7d950
commit b2843145af
52 files changed
+1523 -1844

No files matched your search

+3 -3
View File
@@ -2,9 +2,9 @@
#重置玩家的config分数,避免开启设置功能后,由于该玩家先前的分数而直接运行某些功能
scoreboard players reset @s config
#判断设置功能是否已经开启,如果未开启则运行主函数
execute unless data storage fz.config {is_open:1b} run function fz:config/main
execute unless data storage fz.config {is_open:1b} run scoreboard objectives add openingConfig dummy
execute unless data storage fz.config {is_open:1b} run data merge storage fz.config {is_open:1b}
execute unless data storage fz.config {is_open: 1b} run function fz:config/main
execute unless data storage fz.config {is_open: 1b} run scoreboard objectives add openingConfig dummy
execute unless data storage fz.config {is_open: 1b} run data merge storage fz.config {is_open: 1b}
#将该玩家加入打开设置页面的玩家的列表
scoreboard players set @s openingConfig 1
#将设置内容输出给玩家