- 将命名空间改为“fzsd”
- 完善交互器 - 添加管理员命令(/function admin.fzsd:<...>) - 添加启动函数,用于自动升级等功能 - 添加重装、深度安装、深度卸载、深度重装函数
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
## 运行事件
|
||||
function #fzsd:module/interactor/event/on_click
|
||||
## 触发器分数为正数时重新显示交互器按钮,为负数时不显示
|
||||
execute if score @s fzsd.module.interactor.trigger matches 1.. run function #fzsd:module/interactor/display
|
||||
function #fzsd:module/interactor/reset_trigger
|
||||
## 重置进度
|
||||
advancement revoke @s only fzsd:module/interactor/on_click
|
||||
@@ -0,0 +1,3 @@
|
||||
# 本目录用于存放向事件中注册的函数,并不用来新建事件
|
||||
|
||||
execute unless score @s fzsd.module.interactor.player.config matches -1 if entity @s[x_rotation = -90] run function #fzsd:module/interactor/event/on_start_interact
|
||||
@@ -0,0 +1,4 @@
|
||||
## 调试
|
||||
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "玩家"}, {"selector": "@s"}, {"text": "重置了交互器事件进度"}]
|
||||
|
||||
advancement revoke @s from fzsd:module/interactor/on_click
|
||||
Reference in New Issue
Block a user