完善系统核心功能、添加here模块
This commit is contained in:
@@ -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": "已卸载组件:配置"}]
|
||||
Reference in New Issue
Block a user