$dialog show @s { \
  "type": "minecraft:server_links",\
  "title": {\
    "text": "Mine Treasure Settings"\
  },\
  "inputs": [\
    {\
      "type": "minecraft:single_option",\
      "key": "progression",\
      "label": {\
        "text": "Progression",\
        "type": "text"\
      },\
      "options": $(progression) \
    },\
    {\
      "type": "minecraft:single_option",\
      "key": "frequency",\
      "label": {\
        "text": "Spawn Frequency",\
        "type": "text"\
      },\
      "options": $(frequency) \
    },\
    $(loot_table_rolls),\
    {\
      "type": "minecraft:single_option",\
      "key": "despawn",\
      "label": {\
        "text": "Despawn Speed",\
        "type": "text"\
      },\
      "options": $(despawn) \
    },\
    $(disable_build),\
    $(disable_global),\
    $(disable_common),\
    $(disable_rare),\
    $(disable_epic),\
    $(disable_legendary),\
    $(disable_mythical),\
    $(runes),\
    $(detonation_mine),\
    $(silk_touch),\
    $(bedrock),\
    $(giga_drill),\
    $(vanilla_mode)\
  ],\
  "pause": true,\
  "after_action": "close",\
  "exit_action": {\
    "label": {\
      "text": "Confirm"\
    },\
    "action": {\
      "type": "dynamic/run_command",\
      "template": "function mt:settings/set {progression:\u0024(progression),frequency:\u0024(frequency), loot_table_rolls:\u0024(loot_table_rolls), despawn:\u0024(despawn),disable_build:\u0024(disable_build), disable_global:\u0024(disable_global), disable_common:\u0024(disable_common), disable_rare:\u0024(disable_rare), disable_epic:\u0024(disable_epic), disable_legendary:\u0024(disable_legendary),disable_mythical:\u0024(disable_mythical),runes:\u0024(runes),detonation_mine:\u0024(detonation_mine),silk_touch:\u0024(silk_touch),bedrock:\u0024(bedrock),giga_drill:\u0024(giga_drill), vanilla_mode:\u0024(vanilla_mode)}"\
    }\
  }\
}
