da7af9fc83
- 将命名空间改为“fzsd” - 完善交互器 - 添加管理员命令(/function admin.fzsd:<...>) - 添加启动函数,用于自动升级等功能 - 添加重装、深度安装、深度卸载、深度重装函数
11 lines
1.0 KiB
Mcfunction
11 lines
1.0 KiB
Mcfunction
scoreboard objectives add fzsd.module.last_nether_portal.dimension dummy
|
|
scoreboard objectives add fzsd.module.last_nether_portal.x dummy
|
|
scoreboard objectives add fzsd.module.last_nether_portal.y dummy
|
|
scoreboard objectives add fzsd.module.last_nether_portal.z dummy
|
|
data modify storage fzsd:last_nether_portal fzsd.message set value '[{"nbt": "fzsd.api.dimension.name", "interpret": true, "storage": "fzsd:global"}, [{"text": "[", "color": "green"}, {"score": {"name": "@s", "objective": "fzsd.module.last_nether_portal.x"}}, {"text": ", "}, {"score": {"name": "@s", "objective": "fzsd.module.last_nether_portal.z"}}, {"text": ", "}, {"score": {"name": "@s", "objective": "fzsd.module.last_nether_portal.z"}}, {"text": "]"}]]'
|
|
|
|
## 标记为已安装
|
|
data modify storage fzsd:installed fzsd.module.last_nether_portal set value 1b
|
|
|
|
## 日志
|
|
execute if score fzsd.logger.level fzsd.variable.integer matches ..500 run tellraw @a [{"nbt": "fzsd.level.info", "interpret": true, "storage": "fzsd:logger"}, {"text": "已安装组件:上次穿出的下界传送门"}] |