

# -> Set tag
tag @s add OverlyRealistic.Player.HasSeenInitializationUI

# -> Black screen
title @s times 0 5 30
title @s title {translate:"starting_message.overlyrealistic.black_screen",fallback:"%1$s",with:[{text:" "},{text:"\u0010",font:"overlyrealistic:hud/hud_misc",shadow_color:0}]}

# -> Sound
playsound ui.button.click ui @s ~ ~ ~ 0.5 2 1

# -> Chat message
tellraw @s [{translate:"starting_message.overlyrealistic.chat_notification",fallback:"%1$s",with:[[{text:"\n"},{text:"> To re-open the initialization screen, you can ",color:"#ff9e1e"},{text:"[Click Here!]",color:"#ffca1e",hover_event:{action:"show_text",value:{text:">Click me!",color:"yellow"}},click_event:{action:"run_command",command:"/trigger OverlyRealistic.Player.OrTriggers set 100012"}},{text:"\n"}],          [{text:"\n"},{text:"\u0040",font:"overlyrealistic:icons"},{text:" To re-open the initialization screen, you can ",color:"#ff9e1e",font:"overlyrealistic:small_caps"},{text:"[Click Here!]",bold:true,color:"#ffca1e",font:"overlyrealistic:small_caps",hover_event:{action:"show_text",value:{text:">Click me!",color:"#ffca1e"}},click_event:{action:"run_command",command:"/trigger OverlyRealistic.Player.OrTriggers set 100012"}},{text:"\n"}]]}]

# -> Show UI
$dialog show @s {\
  "type": "minecraft:notice",\
  "title": [\
    {\
      "text": "                                                                                                                                                                                                  "\
    }\
  ],\
  "body": {\
    "type": "minecraft:plain_message",\
    "contents": [\
      {\
        "text": "\n\n"\
      },\
      {\
        "translate": "starting_message.overlyrealistic.title",\
        "fallback": "%2$s",\
        "with": [\
            {\
                "text": "\u0053\u1001\u0054\u1001\u0055",\
                "font": "overlyrealistic:icons",\
            },\
            {\
                "text":"Overly-Realistic",\
                "color": "#30fa30",\
                "bold":true\
            }\
        ]\
      },\
      {\
        "text": "\n\n"\
      },\
      {\
        "text": "[ BETA ]",\
        "color":"#DEDEDE",\
        "font": "overlyrealistic:small_caps_stylized_0"\
      },\
      {\
        "text": "\n"\
      },\
      \
      \
      {\
        "translate": "starting_message.overlyrealistic.splash_text",\
        "fallback": "%1$s",\
        "with": [\
            {\
                "color":"yellow",\
                "text":"$(splash_text_current)  ",\
                italic:true\
            },\
            {\
                "color":"yellow",\
                "text":"$(splash_text_current)  ",\
                font:"overlyrealistic:small_caps",\
                italic:true\
            }\
        ]\
      },\
      {\
        "translate": "starting_message.overlyrealistic.first_header",\
        "fallback": "%1$s",\
        "with": [\
          [\
            {\
                  "color":"#e73232",\
                  "text":"\n\n\nWARNING: ",\
                  "bold":true\
              },\
              {\
                  "color":"gold",\
                  "text":"You do not have the resource pack that the datapack version of Overly-Realistic requires!\nYou can download it by ",\
                  "bold":false\
              },\
              {\
                  "color":"yellow",\
                  "text":"[Clicking Here!]",\
                  "bold":true,\
                  "hover_event":{action:"show_text",value:[{text:">Click me to install the required resource pack!",color:"gold"}]},\
                  "click_event":{action:"open_url",url:"https://modrinth.com/resourcepack/overly-realistic-base-resources"}\
              },\
              {\
                  "color":"gold",\
                  "text":"\n\n"\
              }\
          ],\
          {text:"\n\n"}\
        ]\
      },\
      \
      \
      \
      {\
        translate:"starting_message.overlyrealistic.icon_0",\
        fallback:"%1$s",\
        with: [\
            {\
                text:"→",\
                "color":"#96A8A5"\
            },\
            {\
                text:"\u0022",\
                font:"overlyrealistic:icons",\
                shadow_color:0\
            },\
            {\
                text:" "\
            }\
        ]\
      },\
      {\
        "color":"#96A8A5",\
        "text":" Make sure to check the"\
      },\
      {\
        "bold":false,\
        "color":"#cbdbd9",\
        "text":" advancements tab "\
      },\
      {\
        "bold":false,\
        "color":"#96A8A5",\
        "text":"to track your progress!"\
      },\
      {\
        "text": "\n\n"\
      },\
      \
      \
      \
      \
      \
      {\
        translate:"starting_message.overlyrealistic.icon_1",\
        fallback:"%1$s",\
        with: [\
            {\
                text:"→",\
                "color":"#96A8A5"\
            },\
            {\
                text:"\u0024",\
                font:"overlyrealistic:icons",\
                shadow_color:0\
            },\
            {\
                text:" "\
            }\
        ]\
      },\
      {\
        "bold":false,\
        "color":"#96A8A5",\
        "text":" You can type "\
      },\
      {\
        "bold":false,\
        "color":"#FFD500",\
        "text":"/function or:settings",\
        click_event: {\
            action:"run_command",\
            command:"/function or:settings"\
          },\
        hover_event: {\
            action:"show_text",\
            value: {\
                text:">Click me to open the settings menu",\
                color:"#ff970f"\
              }\
            }\
      },\
      {\
          "bold":false,\
          "color":"#96A8A5",\
          "text":" in chat to open the settings menu or access it through your pause menu! You can also press your quick-actions keybind for it! "\
      },\
      {\
        "text": "\n\n"\
      },\
      \
      \
      \
      \
      \
      {\
        translate:"starting_message.overlyrealistic.icon_3",\
        fallback:"%1$s",\
        with: [\
            {\
                text:"→ Warning: ",\
                "color":"#BA0000"\
            },\
            {\
                text:"\u0026",\
                font:"overlyrealistic:icons",\
                shadow_color:0\
            },\
            {\
                text:" "\
            }\
        ]\
      },\
      {\
        "bold":false,\
        "color":"#FFD500",\
        "text":" Realistic survival punishes individualism! Playing without friends/peers is extremely hard!"\
      },\
      {\
        "text": "\n\n"\
      },\
      \
      \
      \
      \
      \
      \
      \
      \
      \
      {\
        "bold":false,\
        "color":"#D42A00",\
        "text":"[This message only appears once!]\n"\
      },\
      \
      \
      \
      \
      \
      {\
        "translate": "starting_message.overlyrealistic.discord_button",\
        "fallback": "%1$s",\
        "with": [\
          [\
            {\
                "color":"#4a75c4",\
                "text":"\n[Join the discord!]\n\n",\
                "bold":true,\
                "hover_event": {"action":"show_text","value":{text:">Click to join the official discord server!",color:"#4a75c4"}},\
                "click_event": {"action":"open_url","url":"https://discord.gg/6Q8evksd2j"}\
            }\
          ],\
          [\
            {\
                "color":"white",\
                "text":"\n\n\n\u0014\n\n\n",\
                "font":"overlyrealistic:menus",\
                "bold":false,\
                "hover_event": {"action":"show_text","value":[{text:"\n\u0040",color:"white",font:"overlyrealistic:icons"},{text:" Click to join the official discord server!\n",color:"#5f8de4",font:"minecraft:default"}]},\
                "click_event": {"action":"open_url","url":"https://discord.gg/6Q8evksd2j"}\
            }\
          ]\
        ]\
      }\
    ],\
    "width": 400\
  },\
  "inputs": [],\
  "can_close_with_escape": true,\
  "pause": true,\
  "action": {\
    "label": "Continue"\
  }\
}
