完善here、last_death
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
|
||||
|
||||
function #fz:module/config/reset_trigger
|
||||
schedule clear fz:module/config/loop
|
||||
execute as @a run function #fz:module/config/reset_trigger
|
||||
|
||||
## 日志
|
||||
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,6 @@
|
||||
# 调用者:fz:module/config/trigger
|
||||
|
||||
## 如果分数大于0说明玩家点击了按钮
|
||||
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
|
||||
execute as @a if score @s fz.module.config.trigger matches 1.. run function #fz:module/config/on_click/on_click
|
||||
|
||||
schedule function fz:module/config/loop 1t replace
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
# 调用者:#fz:module/config/on_click
|
||||
##### 处理玩家点击,并进行下一步操作
|
||||
|
||||
## 调试
|
||||
execute if score fz.logger.level fz.variable.integer matches ..400 run tellraw @a [{"nbt": "fz.level.debug", "interpret": true, "storage": "fz:logger"}, {"text": "玩家"}, {"selector": "@s"}, {"text": "点击了配置按钮,触发器分数为:"}, {"score": {"name": "@s", "objective": "fz.module.config.trigger"}}]
|
||||
|
||||
execute if score @s fz.module.config.trigger matches 1000..1999 run function #fz:module/scoreboard/config/on_click
|
||||
|
||||
## 重新显示一次按钮
|
||||
function #fz:module/config/display
|
||||
execute if score fz.logger.level fz.variable.integer matches ..400 run tellraw @a [{"nbt": "fz.level.debug", "interpret": true, "storage": "fz:logger"}, {"text": "玩家"}, {"selector": "@s"}, {"text": "点击了配置按钮,触发器分数为:"}, {"score": {"name": "@s", "objective": "fz.module.config.trigger"}}]
|
||||
@@ -1,13 +1,2 @@
|
||||
# 调用者:#fz:module/config/on_config
|
||||
##### 玩家抬头到最高角度并蹲起后,触发此函数
|
||||
|
||||
## 调试
|
||||
execute if score fz.logger.level fz.variable.integer matches ..400 run tellraw @a [{"nbt": "fz.level.debug", "interpret": true, "storage": "fz:logger"}, {"text": "玩家"}, {"selector": "@s"}, {"text": "触发了配置功能"}]
|
||||
|
||||
function fz:module/config/loop
|
||||
|
||||
## 显示按钮
|
||||
function #fz:module/config/display
|
||||
|
||||
## 设置或重制超时时间
|
||||
schedule function #fz:module/config/timeout 300s replace
|
||||
execute if score fz.logger.level fz.variable.integer matches ..400 run tellraw @a [{"nbt": "fz.level.debug", "interpret": true, "storage": "fz:logger"}, {"text": "玩家"}, {"selector": "@s"}, {"text": "触发了配置页面"}]
|
||||
@@ -0,0 +1,2 @@
|
||||
## 设置或重制超时时间
|
||||
schedule function #fz:module/config/timeout 300s replace
|
||||
Reference in New Issue
Block a user