#
# 		Data pack by IJAMinecraft
# 		@ ijaminecraft.com
# 		@ youtube.com/user/IJAMinecraft
#

playsound minecraft:ui.button.click master @s ~ ~ ~ 0.2 0.7 0.2
execute if entity @e[tag=ija-a4-lang-de] run tellraw @s [{"text":"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Zu Phase springen","color":"gray"},{"text":"\n Wechselt den unendlichen Block in eine ausgewählte Phase!\n","color":"white"}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=1..47}] run tellraw @s [{"text":"  "},{"text":"Tutorial","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=1..47}] run tellraw @s [{"text":"  "},{"text":"[Tutorial]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-00"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=49..282}] run tellraw @s [{"text":"  "},{"text":"Phase 1: Flachland","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=49..282}] run tellraw @s [{"text":"  "},{"text":"[Phase 1: Flachland]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-01"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=284..680}] run tellraw @s [{"text":"  "},{"text":"Phase 2: Der Untergrund","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=284..680}] run tellraw @s [{"text":"  "},{"text":"[Phase 2: Der Untergrund]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-02"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=682..1154}] run tellraw @s [{"text":"  "},{"text":"Phase 3: Eisige Tundra","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=682..1154}] run tellraw @s [{"text":"  "},{"text":"[Phase 3: Eisige Tundra]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-03"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=1156..1725}] run tellraw @s [{"text":"  "},{"text":"Phase 4: Ozean","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=1156..1725}] run tellraw @s [{"text":"  "},{"text":"[Phase 4: Ozean]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-04"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=1727..2364}] run tellraw @s [{"text":"  "},{"text":"Phase 5: Dschungel-Dungeon","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=1727..2364}] run tellraw @s [{"text":"  "},{"text":"[Phase 5: Dschungel-Dungeon]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-05"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=2366..3088}] run tellraw @s [{"text":"  "},{"text":"Phase 6: Rote Wüste","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=2366..3088}] run tellraw @s [{"text":"  "},{"text":"[Phase 6: Rote Wüste]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-06"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=3090..3925}] run tellraw @s [{"text":"  "},{"text":"Phase 7: Die Unterwelt","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=3090..3925}] run tellraw @s [{"text":"  "},{"text":"[Phase 7: Die Unterwelt]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-07"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=3927..4657}] run tellraw @s [{"text":"  "},{"text":"Phase 8: Idylle","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=3927..4657}] run tellraw @s [{"text":"  "},{"text":"[Phase 8: Idylle]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-08"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=4659..5445}] run tellraw @s [{"text":"  "},{"text":"Phase 9: Trostloses Land","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=4659..5445}] run tellraw @s [{"text":"  "},{"text":"[Phase 9: Trostloses Land]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-09"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=5447..6301}] run tellraw @s [{"text":"  "},{"text":"Phase 10: Das Ende","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=5447..6301}] run tellraw @s [{"text":"  "},{"text":"[Phase 10: Das Ende]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-10"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de,scores={ija-a4-counter=6303..6308}] run tellraw @s [{"text":"  "},{"text":"Die Nachphasen","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-de] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=6303..6308}] run tellraw @s [{"text":"  "},{"text":"[Die Nachphasen]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-11"},"hoverEvent":{"action":"show_text","value":"Springe zu\ndieser Phase!"}}]
execute if entity @e[tag=ija-a4-lang-de] run tellraw @s [{"text":"\n "},{"text":"[Zurück]","color":"red","clickEvent":{"action":"run_command","value":"/trigger ija-a4-trigger set 1"},"hoverEvent":{"action":"show_text","value":"Klicke um zurückzugehen."}},{"text":"\n"}]
playsound minecraft:ui.button.click master @s ~ ~ ~ 0.2 0.7 0.2
execute if entity @e[tag=ija-a4-lang-en] run tellraw @s [{"text":"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Skip to Phase","color":"gray"},{"text":"\n Changes the infinite block to a selected phase!\n","color":"white"}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=1..47}] run tellraw @s [{"text":"  "},{"text":"Tutorial","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=1..47}] run tellraw @s [{"text":"  "},{"text":"[Tutorial]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-00"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=49..282}] run tellraw @s [{"text":"  "},{"text":"Phase 1: The Plains","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=49..282}] run tellraw @s [{"text":"  "},{"text":"[Phase 1: The Plains]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-01"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=284..680}] run tellraw @s [{"text":"  "},{"text":"Phase 2: The Underground","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=284..680}] run tellraw @s [{"text":"  "},{"text":"[Phase 2: The Underground]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-02"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=682..1154}] run tellraw @s [{"text":"  "},{"text":"Phase 3: Icy Tundra","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=682..1154}] run tellraw @s [{"text":"  "},{"text":"[Phase 3: Icy Tundra]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-03"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=1156..1725}] run tellraw @s [{"text":"  "},{"text":"Phase 4: Ocean","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=1156..1725}] run tellraw @s [{"text":"  "},{"text":"[Phase 4: Ocean]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-04"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=1727..2364}] run tellraw @s [{"text":"  "},{"text":"Phase 5: Jungle Dungeon","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=1727..2364}] run tellraw @s [{"text":"  "},{"text":"[Phase 5: Jungle Dungeon]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-05"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=2366..3088}] run tellraw @s [{"text":"  "},{"text":"Phase 6: Red Desert","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=2366..3088}] run tellraw @s [{"text":"  "},{"text":"[Phase 6: Red Desert]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-06"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=3090..3925}] run tellraw @s [{"text":"  "},{"text":"Phase 7: The Nether","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=3090..3925}] run tellraw @s [{"text":"  "},{"text":"[Phase 7: The Nether]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-07"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=3927..4657}] run tellraw @s [{"text":"  "},{"text":"Phase 8: Idyll","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=3927..4657}] run tellraw @s [{"text":"  "},{"text":"[Phase 8: Idyll]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-08"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=4659..5445}] run tellraw @s [{"text":"  "},{"text":"Phase 9: Desolate Land","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=4659..5445}] run tellraw @s [{"text":"  "},{"text":"[Phase 9: Desolate Land]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-09"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=5447..6301}] run tellraw @s [{"text":"  "},{"text":"Phase 10: The End","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=5447..6301}] run tellraw @s [{"text":"  "},{"text":"[Phase 10: The End]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-10"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en,scores={ija-a4-counter=6303..6308}] run tellraw @s [{"text":"  "},{"text":"The Afterphases","color":"white","italic":"true"}]
execute if entity @e[tag=ija-a4-lang-en] unless entity @e[tag=ija-a4-block,scores={ija-a4-counter=6303..6308}] run tellraw @s [{"text":"  "},{"text":"[The Afterphases]","color":"gold","clickEvent":{"action":"run_command","value":"/function ija-one-block:generated/menu/skip-to-phase-11"},"hoverEvent":{"action":"show_text","value":"Click to skip\nto this phase!"}}]
execute if entity @e[tag=ija-a4-lang-en] run tellraw @s [{"text":"\n "},{"text":"[Back]","color":"red","clickEvent":{"action":"run_command","value":"/trigger ija-a4-trigger set 1"},"hoverEvent":{"action":"show_text","value":"Click to go back."}},{"text":"\n"}]