$execute if entity @s[tag=edit_mode] run return run function pctf:mode/z_map_maker/edit/return {map_id: "$(map_id)"}
$tellraw @s [{"click_event":{"action":"suggest_command","command":"/function pctf:create_game_object/map/create {map_id: \"$(map_id)\", map_name: \"MAP NAME HERE\"}"},"color":"dark_green","hover_event":{"action":"show_text","value":[{"text":"Click to put command in chat","color":"yellow","bold":false,"italic":false}]},"italic":false,"text":"Finalizing and creating the map requires manual input! "},{"color":"yellow","italic":false,"text":"Click this message to copy the command into chat. "},{"color":"yellow","italic":false,"text":"Replace the field "},{"color":"aqua","italic":false,"text":"MAP NAME HERE "},{"color":"yellow","italic":false,"text":"with the name of your map and then run the command!"}]