完善系统核心功能、添加here模块
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
data modify storage fz:here fz.cache.nether_pos set value [0, 0]
|
||||
execute store result storage fz:here fz.cache.nether_pos[0] int 0.125 run data get entity @s Pos[0]
|
||||
execute store result storage fz:here fz.cache.nether_pos[1] int 0.125 run data get entity @s Pos[2]
|
||||
|
||||
data modify storage fz:here fz.cache.message[0] set value '{"text": "主世界", "color": "dark_green"}'
|
||||
data modify storage fz:here fz.cache.message[2] set value '[{"text": ",对应", "color": "white"}, {"text": "下届", "color": "dark_red"}, {"text": ":"}, [{"text": "[", "color": "green"}, {"nbt": "fz.cache.nether_pos[0]", "storage": "fz:here"}, {"text": ", "}, {"nbt": "fz.cache.nether_pos[1]", "storage": "fz:here"}, {"text": "]"}]]'
|
||||
@@ -0,0 +1,6 @@
|
||||
data modify storage fz:here fz.cache.overworld_pos set value [0, 0]
|
||||
execute store result storage fz:here fz.cache.overworld_pos[0] int 8 run data get entity @s Pos[0]
|
||||
execute store result storage fz:here fz.cache.overworld_pos[1] int 8 run data get entity @s Pos[2]
|
||||
|
||||
data modify storage fz:here fz.cache.message[0] set value '{"text": "下届", "color": "dark_red"}'
|
||||
data modify storage fz:here fz.cache.message[2] set value '[{"text": ",对应", "color": "white"}, {"text": "主世界", "color": "dark_green"}, {"text": ":"}, [{"text": "[", "color": "green"}, {"nbt": "fz.cache.overworld_pos[0]", "storage": "fz:here"}, {"text": ", "}, {"nbt": "fz.cache.overworld_pos[1]", "storage": "fz:here"}, {"text": "]"}]]'
|
||||
@@ -0,0 +1 @@
|
||||
execute if data storage fz:data_viewer fz.here.cache{dimension:"minecraft:overworld"} run function fz:module/here/custom_dimension_message/if_in_overworld
|
||||
@@ -0,0 +1 @@
|
||||
execute if data storage fz:data_viewer fz.here.cache{dimension:"minecraft:the_nether"} run function fz:module/here/custom_dimension_message/if_in_the_nether
|
||||
Reference in New Issue
Block a user