完善系统核心功能、添加here模块

This commit is contained in:
延皓
2022-07-08 09:18:06 +08:00
parent 4665599abb
commit 596ebd9d64
179 changed files with 391 additions and 328 deletions
@@ -0,0 +1,3 @@
# 本目录用于存放向事件中注册的函数,并不用来新建事件
execute if entity @s[x_rotation = -90] run function #fz:module/config/on_config
@@ -1,7 +1,7 @@
scoreboard objectives add fz.module.config.trigger trigger
##
data modify storage fz:install_manager fz.module.config set value 1b
data modify storage fz:installed fz.module.config set value 1b
##
execute if score fz.logger.level fz.variable.integer matches ..500 run tellraw @a [{"nbt": "fz.level.info", "interpret": true, "storage": "fz:logger"}, {"text": "已安装组件:配置"}]
@@ -1,7 +1,7 @@
# 调用者:fz:module/config/trigger
## 0
execute as @a if score @s fz.module.config.trigger matches 1.. run function #fz:event/module/config/on_click
execute as @a if score @s fz.module.config.trigger matches 1.. run function #fz:module/config/on_click
execute as @a if score @s fz.module.config.trigger matches 1.. run function #fz:module/config/reset_trigger
schedule function fz:module/config/loop 1t replace
@@ -3,7 +3,7 @@ schedule clear fz:module/config/loop
scoreboard objectives remove fz.module.config.trigger
##
data modify storage fz:install_manager fz.module.config set value 0b
data modify storage fz:installed fz.module.config set value 0b
##
execute if score fz.logger.level fz.variable.integer matches ..500 run tellraw @a [{"nbt": "fz.level.info", "interpret": true, "storage": "fz:logger"}, {"text": "已卸载组件:配置"}]