tag @s[tag=display_M+K] remove display_M+K
tag @s add mapping
function game:map/get/init

setblock 0 2 0 oak_sign

data modify storage map tmp set from storage map rooms
execute if data storage map tmp.[] run function game:map/print/loop
data modify storage map tmp set from storage map doors
execute if data storage map tmp.[] run function game:map/print/loop
data modify storage map tmp set from storage map others
execute if data storage map tmp.[] run function game:map/print/loop

data modify block 0 2 0 Text1 set value '["\\ue000",{"translate":"space.-100"},{"translate":"space.-61"},{"nbt":"Text1","block":"0 2 0","interpret":true},"\\ue001"]'

execute positioned 0 1 0 run function effects:hud/calc

title @s actionbar [{"translate":"space.12"},{"nbt":"Text1","block":"0 2 0","interpret":true},{"translate":"space.-128"},{"translate":"space.-45"},{"nbt":"Text1","block":"0 1 0","interpret":true}]

# Remove the oak_sign so it doesn't crash
setblock 0 2 0 air
setblock 0 1 0 air

tag @s remove mapping
