## fz.cache.pos已在install中初始化 execute store result storage fz:here fz.x int 1 run data get entity @s Pos[0] execute store result storage fz:here fz.y int 1 run data get entity @s Pos[1] execute store result storage fz:here fz.z int 1 run data get entity @s Pos[2] data modify storage fz:here fz.message.dimension set from storage fz:global fz.api.dimension.name data modify storage fz:here fz.message.position set value '[{"text": "[", "color": "green"}, {"nbt": "fz.x", "storage": "fz:here"}, {"text": ", "}, {"nbt": "fz.y", "storage": "fz:here"}, {"text": ", "}, {"nbt": "fz.z", "storage": "fz:here"}, {"text": "]"}]' data modify storage fz:here fz.message.append set value '' ## 调试 execute if score fz.logger.level fz.variable.integer matches ..400 run tellraw @a [{"nbt": "fz.level.debug", "interpret": true, "storage": "fz:logger"}, {"text": "玩家"}, {"selector": "@s"}, {"text": "获取了位置信息"}]