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:install 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": "已安装组件:上次穿出的下界传送门"}] |