da7af9fc83
- 将命名空间改为“fzsd” - 完善交互器 - 添加管理员命令(/function admin.fzsd:<...>) - 添加启动函数,用于自动升级等功能 - 添加重装、深度安装、深度卸载、深度重装函数
9 lines
537 B
Mcfunction
9 lines
537 B
Mcfunction
## 调试
|
|
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": "受到了伤害"}]
|
|
|
|
## 将事件数据缓存
|
|
scoreboard players operation fzsd.var.score fzsd.variable.integer = @s fzsd.event.damage_taken
|
|
scoreboard players operation fzsd.var.score fzsd.variable.integer /= 10 fzsd.variable.integer
|
|
|
|
## 运行事件
|
|
function #fzsd:game_event/player/on_took_damage |