fz-survival-datapack/data/fz/functions/module/last_nether_portal/install.mcfunction
2022-07-19 20:53:53 +08:00

11 lines
1.0 KiB
Mcfunction

scoreboard objectives add fz.module.last_nether_portal.dimension dummy
scoreboard objectives add fz.module.last_nether_portal.x dummy
scoreboard objectives add fz.module.last_nether_portal.y dummy
scoreboard objectives add fz.module.last_nether_portal.z dummy
data modify storage fz:last_nether_portal fz.message set value '[{"nbt": "fz.api.dimension.name", "interpret": true, "storage": "fz:global"}, [{"text": "[", "color": "green"}, {"score": {"name": "@s", "objective": "fz.module.last_nether_portal.x"}}, {"text": ", "}, {"score": {"name": "@s", "objective": "fz.module.last_nether_portal.z"}}, {"text": ", "}, {"score": {"name": "@s", "objective": "fz.module.last_nether_portal.z"}}, {"text": "]"}]]'
## 标记为已安装
data modify storage fz:installed fz.module.last_nether_portal set value 1b
## 日志
execute if score fz.logger.level fz.variable.integer matches ..500 run tellraw @a [{"nbt": "fz.level.info", "interpret": true, "storage": "fz:logger"}, {"text": "已安装组件:上次穿出的下界传送门"}]