import * as ui from "@minecraft/server-ui";
import { world } from '@minecraft/server'


const SOUND_TURN_PAGE = "item.book.page_turn";
const SOUND_OPTIONS = { pitch: 1.0, volume: 1.0, };

// CONSTS
const MENU_MAIN = new ui.ActionFormData();
const MENU_B1 = new ui.ActionFormData();
const MENU_B1_1 = new ui.ActionFormData();
const MENU_B1_1_1 = new ui.ActionFormData();
const MENU_B1_2 = new ui.ActionFormData();
const MENU_B1_3 = new ui.ActionFormData();
const MENU_B1_4 = new ui.ActionFormData();
const MENU_B1_5 = new ui.ActionFormData();
const MENU_B1_5_1 = new ui.ActionFormData();
const MENU_B1_6 = new ui.ActionFormData();
const MENU_B2 = new ui.ActionFormData();
const MENU_B2_1 = new ui.ActionFormData();
const MENU_B2_1_1 = new ui.ActionFormData();
const MENU_B2_1_2 = new ui.ActionFormData();
const MENU_B2_1_3 = new ui.ActionFormData();
const MENU_B2_1_4 = new ui.ActionFormData();
const MENU_B2_1_5 = new ui.ActionFormData();
const MENU_B2_1_6 = new ui.ActionFormData();
const MENU_B2_1_7 = new ui.ActionFormData();
const MENU_B2_1_8 = new ui.ActionFormData();
const MENU_B2_1_9 = new ui.ActionFormData();
const MENU_B2_1_10 = new ui.ActionFormData();
const MENU_B2_1_11 = new ui.ActionFormData();
const MENU_B2_1_12 = new ui.ActionFormData();
const MENU_B2_1_13 = new ui.ActionFormData();
const MENU_B2_2 = new ui.ActionFormData();
const MENU_B2_2_1 = new ui.ActionFormData();
const MENU_B2_2_2 = new ui.ActionFormData();
const MENU_B2_2_3 = new ui.ActionFormData();
const MENU_B2_2_4 = new ui.ActionFormData();
const MENU_B2_2_5 = new ui.ActionFormData();
const MENU_B2_2_6 = new ui.ActionFormData();
const MENU_B2_2_7 = new ui.ActionFormData();
const MENU_B2_2_8 = new ui.ActionFormData();
const MENU_B2_2_9 = new ui.ActionFormData();
const MENU_B2_2_10 = new ui.ActionFormData();
const MENU_B2_2_11 = new ui.ActionFormData();
const MENU_B2_2_12 = new ui.ActionFormData();
const MENU_B2_2_13 = new ui.ActionFormData();
const MENU_B2_2_14 = new ui.ActionFormData();
const MENU_B2_3 = new ui.ActionFormData();
const MENU_B2_3_1 = new ui.ActionFormData();
const MENU_B2_3_2 = new ui.ActionFormData();
const MENU_B2_3_3 = new ui.ActionFormData();
const MENU_B2_3_4 = new ui.ActionFormData();
const MENU_B2_3_5 = new ui.ActionFormData();
const MENU_B2_3_6 = new ui.ActionFormData();
const MENU_B2_3_7 = new ui.ActionFormData();
const MENU_B2_4 = new ui.ActionFormData();
const MENU_B2_4_1 = new ui.ActionFormData();
const MENU_B2_4_2 = new ui.ActionFormData();
const MENU_B2_4_3 = new ui.ActionFormData();
const MENU_B2_4_4 = new ui.ActionFormData();
const MENU_B2_5 = new ui.ActionFormData();
const MENU_B2_5_1 = new ui.ActionFormData();
const MENU_B2_5_2 = new ui.ActionFormData();
const MENU_B2_5_3 = new ui.ActionFormData();
const MENU_B2_5_4 = new ui.ActionFormData();
const MENU_B3 = new ui.ActionFormData();
const MENU_B3_1 = new ui.ActionFormData();
const MENU_B3_2 = new ui.ActionFormData();
const MENU_B3_2_1 = new ui.ActionFormData();
const MENU_B3_2_2 = new ui.ActionFormData();
const MENU_B3_2_3 = new ui.ActionFormData();
const MENU_B3_3 = new ui.ActionFormData();
const MENU_B3_3_1 = new ui.ActionFormData();
const MENU_B3_3_2 = new ui.ActionFormData();
const MENU_B3_3_3 = new ui.ActionFormData();
const MENU_B3_3_4 = new ui.ActionFormData();
const MENU_B3_3_5 = new ui.ActionFormData();
const MENU_B3_3_6 = new ui.ActionFormData();
const MENU_B3_3_7 = new ui.ActionFormData();
const MENU_B3_4 = new ui.ActionFormData();
const MENU_B3_4_1 = new ui.ActionFormData();
const MENU_B3_4_2 = new ui.ActionFormData();
const MENU_B3_4_3 = new ui.ActionFormData();
const MENU_B3_4_4 = new ui.ActionFormData();
const MENU_B3_4_5 = new ui.ActionFormData();
const MENU_B3_4_6 = new ui.ActionFormData();
const MENU_B3_4_7 = new ui.ActionFormData();
const MENU_B3_5 = new ui.ActionFormData();
const MENU_B3_5_1 = new ui.ActionFormData();
const MENU_B3_5_2 = new ui.ActionFormData();
const MENU_B3_5_3 = new ui.ActionFormData();
const MENU_B4 = new ui.ActionFormData();
const MENU_B4_1 = new ui.ActionFormData();
const MENU_B4_2 = new ui.ActionFormData();
const MENU_B4_3 = new ui.ActionFormData();
const MENU_B5 = new ui.ActionFormData();
const MENU_B5_1 = new ui.ActionFormData();
const MENU_B5_1_1 = new ui.ActionFormData();
const MENU_B5_1_2 = new ui.ActionFormData();
const MENU_B5_1_3 = new ui.ActionFormData();
const MENU_B5_1_4 = new ui.ActionFormData();
const MENU_B5_1_5 = new ui.ActionFormData();
const MENU_B5_2 = new ui.ActionFormData();
const MENU_B5_2_1 = new ui.ActionFormData();
const MENU_B5_2_2 = new ui.ActionFormData();
const MENU_B5_2_3 = new ui.ActionFormData();
const MENU_B5_2_4 = new ui.ActionFormData();
const MENU_B5_3 = new ui.ActionFormData();
const MENU_B5_3_1 = new ui.ActionFormData();
const MENU_B5_3_2 = new ui.ActionFormData();
const MENU_B5_3_3 = new ui.ActionFormData();
const MENU_B5_3_4 = new ui.ActionFormData();
const MENU_B5_4 = new ui.ActionFormData();
const MENU_B5_4_1 = new ui.ActionFormData();
const MENU_B5_4_2 = new ui.ActionFormData();
const MENU_B5_4_3 = new ui.ActionFormData();
const MENU_B5_4_4 = new ui.ActionFormData();

const MENU_FOG_SETTINGS = new ui.ActionFormData()

export const biomeFogMap = new Map([
    ["taiga", "cyd_dino:fog_cold"],
    ["frozen", "cyd_dino:fog_cold"],
    ["desert", "cyd_dino:fog_warm"],
    ["mesa", "cyd_dino:fog_warm"],
    ["savanna", "cyd_dino:fog_warm"],
    ["jungle", "cyd_dino:fog_jungle"],
    ["ash", "cyd_dino:fog_ash"],
    ["default", "cyd_dino:fog_default"]
])

export function setupStaticMenus() {

    //BOOK MAIN
    MENU_MAIN.title({ translate: "cyd_mp.menu_main_title" });
    MENU_MAIN.body({ translate: "cyd_mp.menu_main_body", "with": ["\n"] });
    MENU_MAIN.button({ translate: "cyd_mp.menu_button_B1" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    MENU_MAIN.button({ translate: "cyd_mp.menu_button_B2" }, "textures/cyd/dino/items/spawn_eggs/tyranosaurus");
    MENU_MAIN.button({ translate: "cyd_mp.menu_button_B3" }, "textures/cyd/dino/items/weapons/tranquilizer_dart_gun");
    MENU_MAIN.button({ translate: "cyd_mp.menu_button_B4" }, "textures/cyd/dino/items/armor/dino_helmet");
    MENU_MAIN.button({ translate: "cyd_mp.menu_button_B5" }, "textures/cyd/dino/items/cyd_dino_dino_skull");
    MENU_MAIN.button({ translate: "cyd_mp.menu_button_B6" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B1 Primeval World
    MENU_B1.title({ translate: "cyd_mp.menu_B1_title" });
    MENU_B1.body({ translate: "cyd_mp.menu_B1_body", "with": ["\n"] });
    MENU_B1.button({ translate: "cyd_mp.menu_button_B1.1" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    MENU_B1.button({ translate: "cyd_mp.menu_button_B1.2" }, "textures/items/saddle");
    MENU_B1.button({ translate: "cyd_mp.menu_button_B1.3" }, "textures/items/egg");
    MENU_B1.button({ translate: "cyd_mp.menu_button_B1.4" }, "textures/cyd/dino/items/weapons/dino_totem");
    MENU_B1.button({ translate: "cyd_mp.menu_button_B1.5" }, "textures/cyd/dino/items/misc/upgrade_chest");
    MENU_B1.button({ translate: "cyd_mp.menu_button_B1.6" }, "textures/cyd/dino/blocks/trees/podocarp_sapling");
    MENU_B1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B1.1 Quick Start
    MENU_B1_1.title({ translate: "cyd_mp.menu_B1.1_title" });
    MENU_B1_1.body({ translate: "cyd_mp.menu_B1.1_body", "with": ["\n"] });
    MENU_B1_1.button({ translate: "cyd_mp.menu_button_B1.1.1" }, "textures/cyd/dino/items/misc/giant_bone");
    MENU_B1_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B1.1.1 Giant Bone
    MENU_B1_1_1.title({ translate: "cyd_mp.menu_B1.1.1_title" });
    MENU_B1_1_1.body({ translate: "cyd_mp.menu_B1.1.1_body", "with": ["\n"] });
    MENU_B1_1_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B1.2 Taming
    MENU_B1_2.title({ translate: "cyd_mp.menu_B1.2_title" });
    MENU_B1_2.body({ translate: "cyd_mp.menu_B1.2_body", "with": ["\n"] });
    MENU_B1_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B1.3 Breeding
    MENU_B1_3.title({ translate: "cyd_mp.menu_B1.3_title" });
    MENU_B1_3.body({ translate: "cyd_mp.menu_B1.3_body", "with": ["\n"] });
    MENU_B1_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B1.4 Personalities
    MENU_B1_4.title({ translate: "cyd_mp.menu_B1.4_title" });
    MENU_B1_4.body({ translate: "cyd_mp.menu_B1.4_body", "with": ["\n"] });
    MENU_B1_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B1.5 Dino Abilities
    MENU_B1_5.title({ translate: "cyd_mp.menu_B1.5_title" });
    MENU_B1_5.body({ translate: "cyd_mp.menu_B1.5_body", "with": ["\n"] });
    MENU_B1_5.button({ translate: "cyd_mp.menu_button_B1.5.1" }, "textures/cyd/dino/items/misc/dino_log");
    MENU_B1_5.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B1.5.1 Dino Notepad
    MENU_B1_5_1.title({ translate: "cyd_mp.menu_B1.5.1_title" });
    MENU_B1_5_1.body({ translate: "cyd_mp.menu_B1.5.1_body", "with": ["\n"] });
    MENU_B1_5_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B1.6 Plants
    MENU_B1_6.title({ translate: "cyd_mp.menu_B1.6_title" });
    MENU_B1_6.body({ translate: "cyd_mp.menu_B1.6_body", "with": ["\n"] });
    MENU_B1_6.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2 Primeval Fauna
    MENU_B2.title({ translate: "cyd_mp.menu_B2_title" });
    MENU_B2.body({ translate: "cyd_mp.menu_B2_body", "with": ["\n"] });
    MENU_B2.button({ translate: "cyd_mp.menu_button_B2.1" }, "textures/cyd/dino/items/spawn_eggs/tyranosaurus");
    MENU_B2.button({ translate: "cyd_mp.menu_button_B2.2" }, "textures/cyd/dino/items/spawn_eggs/triceratops");
    MENU_B2.button({ translate: "cyd_mp.menu_button_B2.3" }, "textures/cyd/dino/items/spawn_eggs/ichtyosaurus");
    MENU_B2.button({ translate: "cyd_mp.menu_button_B2.4" }, "textures/cyd/dino/items/spawn_eggs/quetzalcoatlus");
    MENU_B2.button({ translate: "cyd_mp.menu_button_B2.5" }, "textures/cyd/dino/items/spawn_eggs/carnankylos");
    MENU_B2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1 Land Carnivores
    MENU_B2_1.title({ translate: "cyd_mp.menu_B2.1_title" });
    MENU_B2_1.body({ translate: "cyd_mp.menu_B2.1_body", "with": ["\n"] });
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.1" }, "textures/cyd/dino/items/spawn_eggs/tyranosaurus");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.2" }, "textures/cyd/dino/items/spawn_eggs/spinosaurus");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.3" }, "textures/cyd/dino/items/spawn_eggs/carnotaurus");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.4" }, "textures/cyd/dino/items/spawn_eggs/utahraptor");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.5" }, "textures/cyd/dino/items/spawn_eggs/velociraptor");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.6" }, "textures/cyd/dino/items/spawn_eggs/baryonyx");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.7" }, "textures/cyd/dino/items/spawn_eggs/dimetrodon");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.8" }, "textures/cyd/dino/items/spawn_eggs/conchoraptor");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.9" }, "textures/cyd/dino/items/spawn_eggs/sinotyrannus");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.10" }, "textures/cyd/dino/items/spawn_eggs/suchomimus");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.11" }, "textures/cyd/dino/items/spawn_eggs/ceratosaurus");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.12" }, "textures/cyd/dino/items/spawn_eggs/allosaurus");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.1.13" }, "textures/cyd/dino/items/spawn_eggs/majungosaurus");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_B2.4.3" }, "textures/cyd/dino/items/spawn_eggs/archeopteryx");
    MENU_B2_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.1 Tyrannosaurus
    MENU_B2_1_1.title({ translate: "cyd_mp.menu_B2.1.1_title" });
    MENU_B2_1_1.body({ translate: "cyd_mp.menu_B2.1.1_body", "with": ["\n"] });
    MENU_B2_1_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.2 Spinosaurus
    MENU_B2_1_2.title({ translate: "cyd_mp.menu_B2.1.2_title" });
    MENU_B2_1_2.body({ translate: "cyd_mp.menu_B2.1.2_body", "with": ["\n"] });
    MENU_B2_1_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.3 Carnotaurus
    MENU_B2_1_3.title({ translate: "cyd_mp.menu_B2.1.3_title" });
    MENU_B2_1_3.body({ translate: "cyd_mp.menu_B2.1.3_body", "with": ["\n"] });
    MENU_B2_1_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.4 Utahraptor
    MENU_B2_1_4.title({ translate: "cyd_mp.menu_B2.1.4_title" });
    MENU_B2_1_4.body({ translate: "cyd_mp.menu_B2.1.4_body", "with": ["\n"] });
    MENU_B2_1_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.5 Velociraptor
    MENU_B2_1_5.title({ translate: "cyd_mp.menu_B2.1.5_title" });
    MENU_B2_1_5.body({ translate: "cyd_mp.menu_B2.1.5_body", "with": ["\n"] });
    MENU_B2_1_5.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.6 Baryonyx
    MENU_B2_1_6.title({ translate: "cyd_mp.menu_B2.1.6_title" });
    MENU_B2_1_6.body({ translate: "cyd_mp.menu_B2.1.6_body", "with": ["\n"] });
    MENU_B2_1_6.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.7 Dimetrodon
    MENU_B2_1_7.title({ translate: "cyd_mp.menu_B2.1.7_title" });
    MENU_B2_1_7.body({ translate: "cyd_mp.menu_B2.1.7_body", "with": ["\n"] });
    MENU_B2_1_7.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.8 Conchoraptor
    MENU_B2_1_8.title({ translate: "cyd_mp.menu_B2.1.8_title" });
    MENU_B2_1_8.body({ translate: "cyd_mp.menu_B2.1.8_body", "with": ["\n"] });
    MENU_B2_1_8.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.9 Sinotyrannus
    MENU_B2_1_9.title({ translate: "cyd_mp.menu_B2.1.9_title" });
    MENU_B2_1_9.body({ translate: "cyd_mp.menu_B2.1.9_body", "with": ["\n"] });
    MENU_B2_1_9.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.10 Suchomimus
    MENU_B2_1_10.title({ translate: "cyd_mp.menu_B2.1.10_title" });
    MENU_B2_1_10.body({ translate: "cyd_mp.menu_B2.1.10_body", "with": ["\n"] });
    MENU_B2_1_10.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.11 Ceratosaurus
    MENU_B2_1_11.title({ translate: "cyd_mp.menu_B2.1.11_title" });
    MENU_B2_1_11.body({ translate: "cyd_mp.menu_B2.1.11_body", "with": ["\n"] });
    MENU_B2_1_11.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.12 Allosaurus
    MENU_B2_1_12.title({ translate: "cyd_mp.menu_B2.1.12_title" });
    MENU_B2_1_12.body({ translate: "cyd_mp.menu_B2.1.12_body", "with": ["\n"] });
    MENU_B2_1_12.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.1.13 Majungosaurus
    MENU_B2_1_13.title({ translate: "cyd_mp.menu_B2.1.13_title" });
    MENU_B2_1_13.body({ translate: "cyd_mp.menu_B2.1.13_body", "with": ["\n"] });
    MENU_B2_1_13.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2 Land Herbivores
    MENU_B2_2.title({ translate: "cyd_mp.menu_B2.2_title" });
    MENU_B2_2.body({ translate: "cyd_mp.menu_B2.2_body", "with": ["\n"] });
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.1" }, "textures/cyd/dino/items/spawn_eggs/triceratops");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.2" }, "textures/cyd/dino/items/spawn_eggs/styracosaurus");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.3" }, "textures/cyd/dino/items/spawn_eggs/microceratus");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.4" }, "textures/cyd/dino/items/spawn_eggs/stegosaurus");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.5" }, "textures/cyd/dino/items/spawn_eggs/ankylosaurus");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.6" }, "textures/cyd/dino/items/spawn_eggs/brachiosaurus");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.7" }, "textures/cyd/dino/items/spawn_eggs/parasaurolophus");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.8" }, "textures/cyd/dino/items/spawn_eggs/pachycephalosaurus");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.9" }, "textures/cyd/dino/items/spawn_eggs/ohmdenosaurus");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.10" }, "textures/cyd/dino/items/spawn_eggs/psitacosaurus");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.11" }, "textures/cyd/dino/items/spawn_eggs/gigantspinosaurus");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.12" }, "textures/cyd/dino/items/spawn_eggs/stegouros");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.13" }, "textures/cyd/dino/items/spawn_eggs/zhanghenlong");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_B2.2.14" }, "textures/cyd/dino/items/spawn_eggs/iguanodon");
    MENU_B2_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.1 Triceratops
    MENU_B2_2_1.title({ translate: "cyd_mp.menu_B2.2.1_title" });
    MENU_B2_2_1.body({ translate: "cyd_mp.menu_B2.2.1_body", "with": ["\n"] });
    MENU_B2_2_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.2 Styracosaurus
    MENU_B2_2_2.title({ translate: "cyd_mp.menu_B2.2.2_title" });
    MENU_B2_2_2.body({ translate: "cyd_mp.menu_B2.2.2_body", "with": ["\n"] });
    MENU_B2_2_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.3 Microceratus
    MENU_B2_2_3.title({ translate: "cyd_mp.menu_B2.2.3_title" });
    MENU_B2_2_3.body({ translate: "cyd_mp.menu_B2.2.3_body", "with": ["\n"] });
    MENU_B2_2_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.4 Stegosaurus
    MENU_B2_2_4.title({ translate: "cyd_mp.menu_B2.2.4_title" });
    MENU_B2_2_4.body({ translate: "cyd_mp.menu_B2.2.4_body", "with": ["\n"] });
    MENU_B2_2_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.5 Ankylosaurus
    MENU_B2_2_5.title({ translate: "cyd_mp.menu_B2.2.5_title" });
    MENU_B2_2_5.body({ translate: "cyd_mp.menu_B2.2.5_body", "with": ["\n"] });
    MENU_B2_2_5.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.6 Brachiosaurus
    MENU_B2_2_6.title({ translate: "cyd_mp.menu_B2.2.6_title" });
    MENU_B2_2_6.body({ translate: "cyd_mp.menu_B2.2.6_body", "with": ["\n"] });
    MENU_B2_2_6.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.7 Parasaurolophus
    MENU_B2_2_7.title({ translate: "cyd_mp.menu_B2.2.7_title" });
    MENU_B2_2_7.body({ translate: "cyd_mp.menu_B2.2.7_body", "with": ["\n"] });
    MENU_B2_2_7.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.8 Pachycephalosaurus
    MENU_B2_2_8.title({ translate: "cyd_mp.menu_B2.2.8_title" });
    MENU_B2_2_8.body({ translate: "cyd_mp.menu_B2.2.8_body", "with": ["\n"] });
    MENU_B2_2_8.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.9 Ohmdenosaurus
    MENU_B2_2_9.title({ translate: "cyd_mp.menu_B2.2.9_title" });
    MENU_B2_2_9.body({ translate: "cyd_mp.menu_B2.2.9_body", "with": ["\n"] });
    MENU_B2_2_9.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.10 Psittacosaurus
    MENU_B2_2_10.title({ translate: "cyd_mp.menu_B2.2.10_title" });
    MENU_B2_2_10.body({ translate: "cyd_mp.menu_B2.2.10_body", "with": ["\n"] });
    MENU_B2_2_10.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.11 Gigantspinosaurus
    MENU_B2_2_11.title({ translate: "cyd_mp.menu_B2.2.11_title" });
    MENU_B2_2_11.body({ translate: "cyd_mp.menu_B2.2.11_body", "with": ["\n"] });
    MENU_B2_2_11.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.12 Stegouros
    MENU_B2_2_12.title({ translate: "cyd_mp.menu_B2.2.12_title" });
    MENU_B2_2_12.body({ translate: "cyd_mp.menu_B2.2.12_body", "with": ["\n"] });
    MENU_B2_2_12.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.13 Zhanghenlong
    MENU_B2_2_13.title({ translate: "cyd_mp.menu_B2.2.13_title" });
    MENU_B2_2_13.body({ translate: "cyd_mp.menu_B2.2.13_body", "with": ["\n"] });
    MENU_B2_2_13.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.2.14 Iguanodon
    MENU_B2_2_14.title({ translate: "cyd_mp.menu_B2.2.14_title" });
    MENU_B2_2_14.body({ translate: "cyd_mp.menu_B2.2.14_body", "with": ["\n"] });
    MENU_B2_2_14.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.3 Water Reptiles
    MENU_B2_3.title({ translate: "cyd_mp.menu_B2.3_title" });
    MENU_B2_3.body({ translate: "cyd_mp.menu_B2.3_body", "with": ["\n"] });
    MENU_B2_3.button({ translate: "cyd_mp.menu_button_B2.3.1" }, "textures/cyd/dino/items/spawn_eggs/ichtyosaurus");
    MENU_B2_3.button({ translate: "cyd_mp.menu_button_B2.3.2" }, "textures/cyd/dino/items/spawn_eggs/onchopristis");
    MENU_B2_3.button({ translate: "cyd_mp.menu_button_B2.3.3" }, "textures/cyd/dino/items/spawn_eggs/simolestes");
    MENU_B2_3.button({ translate: "cyd_mp.menu_button_B2.3.4" }, "textures/cyd/dino/items/spawn_eggs/cameroceras");
    MENU_B2_3.button({ translate: "cyd_mp.menu_button_B2.3.5" }, "textures/cyd/dino/items/spawn_eggs/dunkleosteus");
    MENU_B2_3.button({ translate: "cyd_mp.menu_button_B2.3.6" }, "textures/cyd/dino/items/spawn_eggs/xiphactinus");
    MENU_B2_3.button({ translate: "cyd_mp.menu_button_B2.3.7" }, "textures/cyd/dino/items/spawn_eggs/prognathodon");
    MENU_B2_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.3.1 Ichthyosaurus
    MENU_B2_3_1.title({ translate: "cyd_mp.menu_B2.3.1_title" });
    MENU_B2_3_1.body({ translate: "cyd_mp.menu_B2.3.1_body", "with": ["\n"] });
    MENU_B2_3_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.3.2 Onchopristis
    MENU_B2_3_2.title({ translate: "cyd_mp.menu_B2.3.2_title" });
    MENU_B2_3_2.body({ translate: "cyd_mp.menu_B2.3.2_body", "with": ["\n"] });
    MENU_B2_3_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.3.3 Simolestes
    MENU_B2_3_3.title({ translate: "cyd_mp.menu_B2.3.3_title" });
    MENU_B2_3_3.body({ translate: "cyd_mp.menu_B2.3.3_body", "with": ["\n"] });
    MENU_B2_3_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.3.4 Cameroceras
    MENU_B2_3_4.title({ translate: "cyd_mp.menu_B2.3.4_title" });
    MENU_B2_3_4.body({ translate: "cyd_mp.menu_B2.3.4_body", "with": ["\n"] });
    MENU_B2_3_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.3.5 Dunkleosteus
    MENU_B2_3_5.title({ translate: "cyd_mp.menu_B2.3.5_title" });
    MENU_B2_3_5.body({ translate: "cyd_mp.menu_B2.3.5_body", "with": ["\n"] });
    MENU_B2_3_5.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.3.6 Xiphactinus
    MENU_B2_3_6.title({ translate: "cyd_mp.menu_B2.3.6_title" });
    MENU_B2_3_6.body({ translate: "cyd_mp.menu_B2.3.6_body", "with": ["\n"] });
    MENU_B2_3_6.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.3.7 Prognathodon
    MENU_B2_3_7.title({ translate: "cyd_mp.menu_B2.3.7_title" });
    MENU_B2_3_7.body({ translate: "cyd_mp.menu_B2.3.7_body", "with": ["\n"] });
    MENU_B2_3_7.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.4 Sky Reptiles
    MENU_B2_4.title({ translate: "cyd_mp.menu_B2.4_title" });
    MENU_B2_4.body({ translate: "cyd_mp.menu_B2.4_body", "with": ["\n"] });
    MENU_B2_4.button({ translate: "cyd_mp.menu_button_B2.4.1" }, "textures/cyd/dino/items/spawn_eggs/quetzalcoatlus");
    MENU_B2_4.button({ translate: "cyd_mp.menu_button_B2.4.2" }, "textures/cyd/dino/items/spawn_eggs/pteranodon");
    //MENU_B2_4.button({ translate: "cyd_mp.menu_button_B2.4.3" }, "textures/cyd/dino/items/spawn_eggs/archeopteryx");
    MENU_B2_4.button({ translate: "cyd_mp.menu_button_B2.4.4" }, "textures/cyd/dino/items/spawn_eggs/tupandactylus");
    MENU_B2_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.4.1 Quetzalcoatlus
    MENU_B2_4_1.title({ translate: "cyd_mp.menu_B2.4.1_title" });
    MENU_B2_4_1.body({ translate: "cyd_mp.menu_B2.4.1_body", "with": ["\n"] });
    MENU_B2_4_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.4.2 Pteranodon
    MENU_B2_4_2.title({ translate: "cyd_mp.menu_B2.4.2_title" });
    MENU_B2_4_2.body({ translate: "cyd_mp.menu_B2.4.2_body", "with": ["\n"] });
    MENU_B2_4_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.4.3 Archaeopteryx
    MENU_B2_4_3.title({ translate: "cyd_mp.menu_B2.4.3_title" });
    MENU_B2_4_3.body({ translate: "cyd_mp.menu_B2.4.3_body", "with": ["\n"] });
    MENU_B2_4_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.4.4 Tupandactylus
    MENU_B2_4_4.title({ translate: "cyd_mp.menu_B2.4.4_title" });
    MENU_B2_4_4.body({ translate: "cyd_mp.menu_B2.4.4_body", "with": ["\n"] });
    MENU_B2_4_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.5 Dino Bosses
    MENU_B2_5.title({ translate: "cyd_mp.menu_B2.5_title" });
    MENU_B2_5.body({ translate: "cyd_mp.menu_B2.5_body", "with": ["\n"] });
    MENU_B2_5.button({ translate: "cyd_mp.menu_button_B2.5.1" }, "textures/cyd/dino/items/spawn_eggs/carnankylos");
    MENU_B2_5.button({ translate: "cyd_mp.menu_button_B2.5.2" }, "textures/cyd/dino/items/spawn_eggs/stegospheryx");
    MENU_B2_5.button({ translate: "cyd_mp.menu_button_B2.5.3" }, "textures/cyd/dino/items/spawn_eggs/megastyracodon");
    MENU_B2_5.button({ translate: "cyd_mp.menu_button_B2.5.4" }, "textures/cyd/dino/items/spawn_eggs/empyrealisk");
    MENU_B2_5.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.5.1 Carnakylos
    MENU_B2_5_1.title({ translate: "cyd_mp.menu_B2.5.1_title" });
    MENU_B2_5_1.body({ translate: "cyd_mp.menu_B2.5.1_body", "with": ["\n"] });
    MENU_B2_5_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.5.2 Stegospheryx
    MENU_B2_5_2.title({ translate: "cyd_mp.menu_B2.5.2_title" });
    MENU_B2_5_2.body({ translate: "cyd_mp.menu_B2.5.2_body", "with": ["\n"] });
    MENU_B2_5_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.5.3 Megastyracodon
    MENU_B2_5_3.title({ translate: "cyd_mp.menu_B2.5.3_title" });
    MENU_B2_5_3.body({ translate: "cyd_mp.menu_B2.5.3_body", "with": ["\n"] });
    MENU_B2_5_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B2.5.4 Empyrealisk
    MENU_B2_5_4.title({ translate: "cyd_mp.menu_B2.5.4_title" });
    MENU_B2_5_4.body({ translate: "cyd_mp.menu_B2.5.4_body", "with": ["\n"] });
    MENU_B2_5_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3 New Items
    MENU_B3.title({ translate: "cyd_mp.menu_B3_title" });
    MENU_B3.body({ translate: "cyd_mp.menu_B3_body", "with": ["\n"] });
    MENU_B3.button({ translate: "cyd_mp.menu_button_B3.1" }, "textures/cyd/dino/items/misc/giant_bone");
    MENU_B3.button({ translate: "cyd_mp.menu_button_B3.2" }, "textures/cyd/dino/items/misc/upgrade_armor");
    MENU_B3.button({ translate: "cyd_mp.menu_button_B3.3" }, "textures/cyd/dino/items/weapons/dinosaur_tooth_dagger");
    MENU_B3.button({ translate: "cyd_mp.menu_button_B3.4" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    MENU_B3.button({ translate: "cyd_mp.menu_button_B3.5" }, "textures/cyd/dino/items/armor/dino_helmet");
    MENU_B3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.1 Giant Bone
    MENU_B3_1.title({ translate: "cyd_mp.menu_B3.1_title" });
    MENU_B3_1.body({ translate: "cyd_mp.menu_B3.1_body", "with": ["\n"] });
    MENU_B3_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.2 Dino Upgrades
    MENU_B3_2.title({ translate: "cyd_mp.menu_B3.2_title" });
    MENU_B3_2.body({ translate: "cyd_mp.menu_B3.2_body", "with": ["\n"] });
    MENU_B3_2.button({ translate: "cyd_mp.menu_button_B3.2.1" }, "textures/cyd/dino/items/misc/upgrade_armor");
    MENU_B3_2.button({ translate: "cyd_mp.menu_button_B3.2.2" }, "textures/cyd/dino/items/misc/upgrade_crossbow");
    MENU_B3_2.button({ translate: "cyd_mp.menu_button_B3.2.3" }, "textures/cyd/dino/items/misc/upgrade_chest");
    MENU_B3_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.2.1 Upgrade Armor
    MENU_B3_2_1.title({ translate: "cyd_mp.menu_B3.2.1_title" });
    MENU_B3_2_1.body({ translate: "cyd_mp.menu_B3.2.1_body", "with": ["\n"] });
    MENU_B3_2_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.2.2 Crossbow Upgrade
    MENU_B3_2_2.title({ translate: "cyd_mp.menu_B3.2.2_title" });
    MENU_B3_2_2.body({ translate: "cyd_mp.menu_B3.2.2_body", "with": ["\n"] });
    MENU_B3_2_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.2.3 Chest Upgrade
    MENU_B3_2_3.title({ translate: "cyd_mp.menu_B3.2.3_title" });
    MENU_B3_2_3.body({ translate: "cyd_mp.menu_B3.2.3_body", "with": ["\n"] });
    MENU_B3_2_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.3 Weapons
    MENU_B3_3.title({ translate: "cyd_mp.menu_B3.3_title" });
    MENU_B3_3.body({ translate: "cyd_mp.menu_B3.3_body", "with": ["\n"] });
    MENU_B3_3.button({ translate: "cyd_mp.menu_button_B3.3.1" }, "textures/cyd/dino/items/weapons/dinosaur_tooth_dagger");
    MENU_B3_3.button({ translate: "cyd_mp.menu_button_B3.3.2" }, "textures/cyd/dino/items/weapons/dinosaur_sword");
    MENU_B3_3.button({ translate: "cyd_mp.menu_button_B3.3.3" }, "textures/cyd/dino/items/weapons/tranquilizer_dart_gun");
    MENU_B3_3.button({ translate: "cyd_mp.menu_button_B3.3.4" }, "textures/cyd/dino/items/weapons/large_bone_club");
    MENU_B3_3.button({ translate: "cyd_mp.menu_button_B3.3.5" }, "textures/cyd/dino/items/dinosaur_tooth_dagger_dark");
    MENU_B3_3.button({ translate: "cyd_mp.menu_button_B3.3.6" }, "textures/cyd/dino/items/dinosaur_sword_dark");
    MENU_B3_3.button({ translate: "cyd_mp.menu_button_B3.3.7" }, "textures/cyd/dino/items/giant_bone_dark");
    MENU_B3_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.3.1 Dino Tooth Dagger
    MENU_B3_3_1.title({ translate: "cyd_mp.menu_B3.3.1_title" });
    MENU_B3_3_1.body({ translate: "cyd_mp.menu_B3.3.1_body", "with": ["\n"] });
    MENU_B3_3_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.3.2 Dino Sword
    MENU_B3_3_2.title({ translate: "cyd_mp.menu_B3.3.2_title" });
    MENU_B3_3_2.body({ translate: "cyd_mp.menu_B3.3.2_body", "with": ["\n"] });
    MENU_B3_3_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.3.3 Tranquilizer Dart Gun
    MENU_B3_3_3.title({ translate: "cyd_mp.menu_B3.3.3_title" });
    MENU_B3_3_3.body({ translate: "cyd_mp.menu_B3.3.3_body", "with": ["\n"] });
    MENU_B3_3_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.3.4 Large Bone Club
    MENU_B3_3_4.title({ translate: "cyd_mp.menu_B3.3.4_title" });
    MENU_B3_3_4.body({ translate: "cyd_mp.menu_B3.3.4_body", "with": ["\n"] });
    MENU_B3_3_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.3.5 Dark Dino Claw Dagger
    MENU_B3_3_5.title({ translate: "cyd_mp.menu_B3.3.5_title" });
    MENU_B3_3_5.body({ translate: "cyd_mp.menu_B3.3.5_body", "with": ["\n"] });
    MENU_B3_3_5.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.3.6 Dark Dino Sword
    MENU_B3_3_6.title({ translate: "cyd_mp.menu_B3.3.6_title" });
    MENU_B3_3_6.body({ translate: "cyd_mp.menu_B3.3.6_body", "with": ["\n"] });
    MENU_B3_3_6.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.3.7 Dark Large Bone Club
    MENU_B3_3_7.title({ translate: "cyd_mp.menu_B3.3.7_title" });
    MENU_B3_3_7.body({ translate: "cyd_mp.menu_B3.3.7_body", "with": ["\n"] });
    MENU_B3_3_7.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.4 Gadgets
    MENU_B3_4.title({ translate: "cyd_mp.menu_B3.4_title" });
    MENU_B3_4.body({ translate: "cyd_mp.menu_B3.4_body", "with": ["\n"] });
    MENU_B3_4.button({ translate: "cyd_mp.menu_button_B3.4.1" }, "textures/cyd/dino/items/weapons/dino_totem");
    MENU_B3_4.button({ translate: "cyd_mp.menu_button_B3.4.2" }, "textures/cyd/dino/items/spike_trap");
    MENU_B3_4.button({ translate: "cyd_mp.menu_button_B3.4.3" }, "textures/cyd/dino/items/slingshot");
    MENU_B3_4.button({ translate: "cyd_mp.menu_button_B3.4.4" }, "textures/cyd/dino/items/bolas");
    MENU_B3_4.button({ translate: "cyd_mp.menu_button_B3.4.5" }, "textures/cyd/dino/items/net_crossbow");
    MENU_B3_4.button({ translate: "cyd_mp.menu_button_B3.4.6" }, "textures/cyd/dino/items/drak_horn");
    MENU_B3_4.button({ translate: "cyd_mp.menu_button_B3.4.7" }, "textures/cyd/dino/items/spawn_eggs/banner");
    MENU_B3_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.4.1 Totem
    MENU_B3_4_1.title({ translate: "cyd_mp.menu_B3.4.1_title" });
    MENU_B3_4_1.body({ translate: "cyd_mp.menu_B3.4.1_body", "with": ["\n"] });
    MENU_B3_4_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.4.2 Spike Trap
    MENU_B3_4_2.title({ translate: "cyd_mp.menu_B3.4.2_title" });
    MENU_B3_4_2.body({ translate: "cyd_mp.menu_B3.4.2_body", "with": ["\n"] });
    MENU_B3_4_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.4.3 Slingshot
    MENU_B3_4_3.title({ translate: "cyd_mp.menu_B3.4.3_title" });
    MENU_B3_4_3.body({ translate: "cyd_mp.menu_B3.4.3_body", "with": ["\n"] });
    MENU_B3_4_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.4.4 Bolas
    MENU_B3_4_4.title({ translate: "cyd_mp.menu_B3.4.4_title" });
    MENU_B3_4_4.body({ translate: "cyd_mp.menu_B3.4.4_body", "with": ["\n"] });
    MENU_B3_4_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.4.5 Net Crossbow
    MENU_B3_4_5.title({ translate: "cyd_mp.menu_B3.4.5_title" });
    MENU_B3_4_5.body({ translate: "cyd_mp.menu_B3.4.5_body", "with": ["\n"] });
    MENU_B3_4_5.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.4.6 Drak Horn
    MENU_B3_4_6.title({ translate: "cyd_mp.menu_B3.4.6_title" });
    MENU_B3_4_6.body({ translate: "cyd_mp.menu_B3.4.6_body", "with": ["\n"] });
    MENU_B3_4_6.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.4.7 Banners & Flags
    MENU_B3_4_7.title({ translate: "cyd_mp.menu_B3.4.7_title" });
    MENU_B3_4_7.body({ translate: "cyd_mp.menu_B3.4.7_body", "with": ["\n"] });
    MENU_B3_4_7.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.5 Armor
    MENU_B3_5.title({ translate: "cyd_mp.menu_B3.5_title" });
    MENU_B3_5.body({ translate: "cyd_mp.menu_B3.5_body", "with": ["\n"] });
    MENU_B3_5.button({ translate: "cyd_mp.menu_button_B3.5.1" }, "textures/cyd/dino/items/armor/hunter_shirt");
    MENU_B3_5.button({ translate: "cyd_mp.menu_button_B3.5.2" }, "textures/cyd/dino/items/armor/dino_chestplate");
    MENU_B3_5.button({ translate: "cyd_mp.menu_button_B3.5.3" }, "textures/cyd/dino/items/armor/trex_chestplate");
    MENU_B3_5.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.5.1 Hunter Armor
    MENU_B3_5_1.title({ translate: "cyd_mp.menu_B3.5.1_title" });
    MENU_B3_5_1.body({ translate: "cyd_mp.menu_B3.5.1_body", "with": ["\n"] });
    MENU_B3_5_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.5.2 Dinosaur Armor
    MENU_B3_5_2.title({ translate: "cyd_mp.menu_B3.5.2_title" });
    MENU_B3_5_2.body({ translate: "cyd_mp.menu_B3.5.2_body", "with": ["\n"] });
    MENU_B3_5_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B3.5.3 Trex Armor
    MENU_B3_5_3.title({ translate: "cyd_mp.menu_B3.5.3_title" });
    MENU_B3_5_3.body({ translate: "cyd_mp.menu_B3.5.3_body", "with": ["\n"] });
    MENU_B3_5_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B4 Factions
    MENU_B4.title({ translate: "cyd_mp.menu_B4_title" });
    MENU_B4.body({ translate: "cyd_mp.menu_B4_body", "with": ["\n"] });
    MENU_B4.button({ translate: "cyd_mp.menu_button_B4.1" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    MENU_B4.button({ translate: "cyd_mp.menu_button_B4.2" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    MENU_B4.button({ translate: "cyd_mp.menu_button_B4.3" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    MENU_B4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B4.1 Draxar
    MENU_B4_1.title({ translate: "cyd_mp.menu_B4.1_title" });
    MENU_B4_1.body({ translate: "cyd_mp.menu_B4.1_body", "with": ["\n"] });
    MENU_B4_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B4.2 Gaiakin
    MENU_B4_2.title({ translate: "cyd_mp.menu_B4.2_title" });
    MENU_B4_2.body({ translate: "cyd_mp.menu_B4.2_body", "with": ["\n"] });
    MENU_B4_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B4.3 Trader
    MENU_B4_3.title({ translate: "cyd_mp.menu_B4.3_title" });
    MENU_B4_3.body({ translate: "cyd_mp.menu_B4.3_body", "with": ["\n"] });
    MENU_B4_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    
    //B5 Ash & Bones Update
    MENU_B5.title({ translate: "cyd_mp.menu_B5_title" });
    MENU_B5.body({ translate: "cyd_mp.menu_B5_body", "with": ["\n"] });
    MENU_B5.button({ translate: "cyd_mp.menu_button_B5.1" }, "textures/cyd/dino/items/icons/fumerolle_block_icon");
    MENU_B5.button({ translate: "cyd_mp.menu_button_B5.2" }, "textures/cyd/dino/items/misc/dark_draxar_banner");
    MENU_B5.button({ translate: "cyd_mp.menu_button_B5.3" }, "textures/items/egg");
    MENU_B5.button({ translate: "cyd_mp.menu_button_B5.4" }, "textures/cyd/dino/items/weapons/skull_hook");
    MENU_B5.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.1 The Ashlands
    MENU_B5_1.title({ translate: "cyd_mp.menu_B5.1_title" });
    MENU_B5_1.body({ translate: "cyd_mp.menu_B5.1_body", "with": ["\n"] });
    MENU_B5_1.button({ translate: "cyd_mp.menu_button_B5.1.1" }, "textures/cyd/dino/items/icons/ash_block_icon");
    MENU_B5_1.button({ translate: "cyd_mp.menu_button_B5.1.2" }, "textures/cyd/dino/items/icons/pahoehoe_block_icon");
    MENU_B5_1.button({ translate: "cyd_mp.menu_button_B5.1.3" }, "textures/cyd/dino/items/icons/fumerolle_block_icon");
    MENU_B5_1.button({ translate: "cyd_mp.menu_button_B5.1.4" }, "textures/cyd/dino/blocks/plants/burned_neuropteris");
    MENU_B5_1.button({ translate: "cyd_mp.menu_button_B5.1.5" }, "textures/cyd/dino/items/icons/bone_block_icon");
    MENU_B5_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.1.1 Ash Block
    MENU_B5_1_1.title({ translate: "cyd_mp.menu_B5.1.1_title" });
    MENU_B5_1_1.body({ translate: "cyd_mp.menu_B5.1.1_body", "with": ["\n"] });
    MENU_B5_1_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    
    //B5.1.2 Pahoehoe Block
    MENU_B5_1_2.title({ translate: "cyd_mp.menu_B5.1.2_title" });
    MENU_B5_1_2.body({ translate: "cyd_mp.menu_B5.1.2_body", "with": ["\n"] });
    MENU_B5_1_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    
    //B5.1.3 Fumerolle Block
    MENU_B5_1_3.title({ translate: "cyd_mp.menu_B5.1.3_title" });
    MENU_B5_1_3.body({ translate: "cyd_mp.menu_B5.1.3_body", "with": ["\n"] });
    MENU_B5_1_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.1.4 Burned Plants
    MENU_B5_1_4.title({ translate: "cyd_mp.menu_B5.1.4_title" });
    MENU_B5_1_4.body({ translate: "cyd_mp.menu_B5.1.4_body", "with": ["\n"] });
    MENU_B5_1_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.1.5 Bone Blocks
    MENU_B5_1_5.title({ translate: "cyd_mp.menu_B5.1.5_title" });
    MENU_B5_1_5.body({ translate: "cyd_mp.menu_B5.1.5_body", "with": ["\n"] });
    MENU_B5_1_5.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.2 The Dark Draxar
    MENU_B5_2.title({ translate: "cyd_mp.menu_B5.2_title" });
    MENU_B5_2.body({ translate: "cyd_mp.menu_B5.2_body", "with": ["\n"] });
    MENU_B5_2.button({ translate: "cyd_mp.menu_button_B5.2.1" });
    MENU_B5_2.button({ translate: "cyd_mp.menu_button_B5.2.2" });
    MENU_B5_2.button({ translate: "cyd_mp.menu_button_B5.2.3" });
    MENU_B5_2.button({ translate: "cyd_mp.menu_button_B5.2.4" });
    MENU_B5_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.2.1 The Dark Draxar
    MENU_B5_2_1.title({ translate: "cyd_mp.menu_B5.2.1_title" });
    MENU_B5_2_1.body({ translate: "cyd_mp.menu_B5.2.1_body", "with": ["\n"] });
    MENU_B5_2_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    
    //B5.2.2 The Dark Draxar Boss
    MENU_B5_2_2.title({ translate: "cyd_mp.menu_B5.2.2_title" });
    MENU_B5_2_2.body({ translate: "cyd_mp.menu_B5.2.2_body", "with": ["\n"] });
    MENU_B5_2_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    
    //B5.2.3 New Structures
    MENU_B5_2_3.title({ translate: "cyd_mp.menu_B5.2.3_title" });
    MENU_B5_2_3.body({ translate: "cyd_mp.menu_B5.2.3_body", "with": ["\n"] });
    MENU_B5_2_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.2.4 Draxar Merchant
    MENU_B5_2_4.title({ translate: "cyd_mp.menu_B5.2.4_title" });
    MENU_B5_2_4.body({ translate: "cyd_mp.menu_B5.2.4_body", "with": ["\n"] });
    MENU_B5_2_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.3 New Dinosaurs
    MENU_B5_3.title({ translate: "cyd_mp.menu_B5.3_title" });
    MENU_B5_3.body({ translate: "cyd_mp.menu_B5.3_body", "with": ["\n"] });
    MENU_B5_3.button({ translate: "cyd_mp.menu_button_B5.3.1" }, "textures/cyd/dino/items/spawn_eggs/spycomellus");
    MENU_B5_3.button({ translate: "cyd_mp.menu_button_B5.3.2" }, "textures/cyd/dino/items/spawn_eggs/skull_velociraptor");
    MENU_B5_3.button({ translate: "cyd_mp.menu_button_B5.3.3" }, "textures/cyd/dino/items/spawn_eggs/dark_stegospheryx");
    MENU_B5_3.button({ translate: "cyd_mp.menu_button_B5.3.4" }, "textures/cyd/dino/items/spawn_eggs/skull_tyranosaurus");
    MENU_B5_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.3.1 Spycomellus
    MENU_B5_3_1.title({ translate: "cyd_mp.menu_B5.3.1_title" });
    MENU_B5_3_1.body({ translate: "cyd_mp.menu_B5.3.1_body", "with": ["\n"] });
    MENU_B5_3_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    
    //B5.3.2 Skull Velociraptor
    MENU_B5_3_2.title({ translate: "cyd_mp.menu_B5.3.2_title" });
    MENU_B5_3_2.body({ translate: "cyd_mp.menu_B5.3.2_body", "with": ["\n"] });
    MENU_B5_3_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.3.3 Skull Stegospheryx
    MENU_B5_3_3.title({ translate: "cyd_mp.menu_B5.3.3_title" });
    MENU_B5_3_3.body({ translate: "cyd_mp.menu_B5.3.3_body", "with": ["\n"] });
    MENU_B5_3_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.3.4 Skull Trex
    MENU_B5_3_4.title({ translate: "cyd_mp.menu_B5.3.4_title" });
    MENU_B5_3_4.body({ translate: "cyd_mp.menu_B5.3.4_body", "with": ["\n"] });
    MENU_B5_3_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    
    //B5.4 New Items
    MENU_B5_4.title({ translate: "cyd_mp.menu_B5.4_title" });
    MENU_B5_4.body({ translate: "cyd_mp.menu_B5.4_body", "with": ["\n"] });
    MENU_B5_4.button({ translate: "cyd_mp.menu_button_B5.4.1" }, "textures/cyd/dino/items/misc/dark_scale");
    MENU_B5_4.button({ translate: "cyd_mp.menu_button_B5.4.2" }, "textures/cyd/dino/items/weapons/spiked_shield");
    MENU_B5_4.button({ translate: "cyd_mp.menu_button_B5.4.3" }, "textures/cyd/dino/items/weapons/skull_axe");
    MENU_B5_4.button({ translate: "cyd_mp.menu_button_B5.4.4" }, "textures/cyd/dino/items/weapons/skull_hook");
    MENU_B5_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.4.1 Dark Scales
    MENU_B5_4_1.title({ translate: "cyd_mp.menu_B5.4.1_title" });
    MENU_B5_4_1.body({ translate: "cyd_mp.menu_B5.4.1_body", "with": ["\n"] });
    MENU_B5_4_1.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    
    //B5.4.2 Spike Shield
    MENU_B5_4_2.title({ translate: "cyd_mp.menu_B5.4.2_title" });
    MENU_B5_4_2.body({ translate: "cyd_mp.menu_B5.4.2_body", "with": ["\n"] });
    MENU_B5_4_2.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");
    
    //B5.4.3 Skull Axe
    MENU_B5_4_3.title({ translate: "cyd_mp.menu_B5.4.3_title" });
    MENU_B5_4_3.body({ translate: "cyd_mp.menu_B5.4.3_body", "with": ["\n"] });
    MENU_B5_4_3.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //B5.4.4 Skull Hook
    MENU_B5_4_4.title({ translate: "cyd_mp.menu_B5.4.4_title" });
    MENU_B5_4_4.body({ translate: "cyd_mp.menu_B5.4.4_body", "with": ["\n"] });
    MENU_B5_4_4.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");

    //fog settings
    MENU_FOG_SETTINGS.title({ text: '(Primal Overworld) Settings' })
    MENU_FOG_SETTINGS.button({ text: `Toggle Fog` });
    MENU_FOG_SETTINGS.button({ text: `Toggle Ash` });
    MENU_FOG_SETTINGS.button({ translate: "cyd_mp.menu_button_goback" }, "textures/cyd/dino/items/misc/dino_taming_manual");
}

// PAGE FUNCTIONS
export function menuMain(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_MAIN.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B1PrimevalWorld(player);
                break;
            case 1:
                B2PrimevalFauna(player);
                break;
            case 2:
                B3NewItems(player);
                break;
            case 3:
                B4Factions(player);
                break;
            case 4:
                B5AshAndBones(player);
                break;
            case 5:
                showFogMenuSettings(player);
            default: break;
        }
    });
}

export function B1PrimevalWorld(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B1_1QuickStart(player);
                break;
            case 1:
                B1_2Taming(player);
                break;
            case 2:
                B1_3Breeding(player);
                break;
            case 3:
                B1_4Personalities(player);
                break;
            case 4:
                B1_5DinoAbilities(player);
                break;
            case 5:
                B1_6Plants(player);
                break;
            case 6:
                menuMain(player);
                break;
            default: break;
        }
    });
}

export function B1_1QuickStart(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B1_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B1_1_1GiantBone(player);
                break;
            case 1:
                B1PrimevalWorld(player);
                break;
            default: break;
        }
    });
}

export function B1_1_1GiantBone(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B1_1_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B1_1QuickStart(player);
                break;
            default: break;
        }
    });
}

export function B1_2Taming(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B1_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B1PrimevalWorld(player);
                break;
            default: break;
        }
    });
}

export function B1_3Breeding(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B1_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B1PrimevalWorld(player);
                break;
            default: break;
        }
    });
}

export function B1_4Personalities(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B1_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B1PrimevalWorld(player);
                break;
            default: break;
        }
    });
}

export function B1_5DinoAbilities(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B1_5.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B1_5_1DinoNotepad(player);
                break;
            case 1:
                B1PrimevalWorld(player);
                break;
            default: break;
        }
    });
}

export function B1_5_1DinoNotepad(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B1_5_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B1_5DinoAbilities(player);
                break;
            default: break;
        }
    });
}

export function B1_6Plants(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B1_6.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B1PrimevalWorld(player);
                break;
            default: break;
        }
    });
}

export function B2PrimevalFauna(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            case 1:
                B2_2LandHerbivores(player);
                break;
            case 2:
                B2_3WaterReptiles(player);
                break;
            case 3:
                B2_4SkyReptiles(player);
                break;
            case 4:
                B2_5DinoBosses(player);
                break;
            case 5:
                menuMain(player);
                break;
            default: break;
        }
    });
}

export function B2_1LandCarnivores(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1_1Tyrannosaurus(player);
                break;
            case 1:
                B2_1_2Spinosaurus(player);
                break;
            case 2:
                B2_1_3Carnotaurus(player);
                break;
            case 3:
                B2_1_4Utahraptor(player);
                break;
            case 4:
                B2_1_5Velociraptor(player);
                break;
            case 5:
                B2_1_6Baryonyx(player);
                break;
            case 6:
                B2_1_7Dimetrodon(player);
                break;
            case 7:
                B2_1_8Conchoraptor(player);
                break;
            case 8:
                B2_1_9Sinotyrannus(player);
                break;
            case 9:
                B2_1_10Suchomimus(player);
                break;
            case 10:
                B2_1_11Ceratosaurus(player);
                break;
            case 11:
                B2_1_12Allosaurus(player);
                break;
            case 12:
                B2_1_13Majungosaurus(player);
                break;
            case 13:
                B2_4_3Archaeopteryx(player);
                break;
            case 14:
                B2PrimevalFauna(player);
                break;
            default: break;
        }
    });
}

export function B2_1_1Tyrannosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_2Spinosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_3Carnotaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_4Utahraptor(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_5Velociraptor(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_5.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_6Baryonyx(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_6.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_7Dimetrodon(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_7.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_8Conchoraptor(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_8.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_9Sinotyrannus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_9.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_10Suchomimus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_10.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_11Ceratosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_11.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_12Allosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_12.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_1_13Majungosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_1_13.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_1LandCarnivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2LandHerbivores(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2_1Triceratops(player);
                break;
            case 1:
                B2_2_2Styracosaurus(player);
                break;
            case 2:
                B2_2_3Microceratus(player);
                break;
            case 3:
                B2_2_4Stegosaurus(player);
                break;
            case 4:
                B2_2_5Ankylosaurus(player);
                break;
            case 5:
                B2_2_6Brachiosaurus(player);
                break;
            case 6:
                B2_2_7Parasaurolophus(player);
                break;
            case 7:
                B2_2_8Pachycephalosaurus(player);
                break;
            case 8:
                B2_2_9Ohmdenosaurus(player);
                break;
            case 9:
                B2_2_10Psittacosaurus(player);
                break;
            case 10:
                B2_2_11Gigantspinosaurus(player);
                break;
            case 11:
                B2_2_12Stegouros(player);
                break;
            case 12:
                B2_2_13Zhanghenlong(player);
                break;
            case 13:
                B2_2_14Iguanodon(player);
                break;
            case 14:
                B2PrimevalFauna(player);
                break;
            default: break;
        }
    });
}

export function B2_2_1Triceratops(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_2Styracosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_3Microceratus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_4Stegosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_5Ankylosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_5.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_6Brachiosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_6.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_7Parasaurolophus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_7.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_8Pachycephalosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_8.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_9Ohmdenosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_9.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_10Psittacosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_10.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_11Gigantspinosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_11.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_12Stegouros(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_12.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_13Zhanghenlong(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_13.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_2_14Iguanodon(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_2_14.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_2LandHerbivores(player);
                break;
            default: break;
        }
    });
}

export function B2_3WaterReptiles(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_3_1Ichthyosaurus(player);
                break;
            case 1:
                B2_3_2Onchopristis(player);
                break;
            case 2:
                B2_3_3Simolestes(player);
                break;
            case 3:
                B2_3_4Cameroceras(player);
                break;
            case 4:
                B2_3_5Dunkleosteus(player);
                break;
            case 5:
                B2_3_6Xiphactinus(player);
                break;
            case 6:
                B2_3_7Prognathodon(player);
                break;
            case 7:
                B2PrimevalFauna(player);
                break;
            default: break;
        }
    });
}

export function B2_3_1Ichthyosaurus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_3_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_3WaterReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_3_2Onchopristis(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_3_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_3WaterReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_3_3Simolestes(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_3_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_3WaterReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_3_4Cameroceras(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_3_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_3WaterReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_3_5Dunkleosteus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_3_5.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_3WaterReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_3_6Xiphactinus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_3_6.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_3WaterReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_3_7Prognathodon(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_3_7.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_3WaterReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_4SkyReptiles(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_4_1Quetzalcoatlus(player);
                break;
            case 1:
                B2_4_2Pteranodon(player);
                break;
            case 2:
                B2_4_4Tupandactylus(player);
                break;
            case 3:
                B2PrimevalFauna(player);
                break;
            default: break;
        }
    });
}

export function B2_4_1Quetzalcoatlus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_4_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_4SkyReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_4_2Pteranodon(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_4_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_4SkyReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_4_3Archaeopteryx(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_4_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_4SkyReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_4_4Tupandactylus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_4_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_4SkyReptiles(player);
                break;
            default: break;
        }
    });
}

export function B2_5DinoBosses(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_5.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_5_1Carnakylos(player);
                break;
            case 1:
                B2_5_2Stegospheryx(player);
                break;
            case 2:
                B2_5_3Megastyracodon(player);
                break;
            case 3:
                B2_5_4Empyrealisk(player);
                break;
            case 4:
                B2PrimevalFauna(player);
                break;
            default: break;
        }
    });
}

export function B2_5_1Carnakylos(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_5_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_5DinoBosses(player);
                break;
            default: break;
        }
    });
}

export function B2_5_2Stegospheryx(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_5_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_5DinoBosses(player);
                break;
            default: break;
        }
    });
}

export function B2_5_3Megastyracodon(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_5_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_5DinoBosses(player);
                break;
            default: break;
        }
    });
}

export function B2_5_4Empyrealisk(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B2_5_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B2_5DinoBosses(player);
                break;
            default: break;
        }
    });
}

export function B3NewItems(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_1GiantBone(player);
                break;
            case 1:
                B3_2DinoUpgrades(player);
                break;
            case 2:
                B3_3Weapons(player);
                break;
            case 3:
                B3_4Gadgets(player);
                break;
            case 4:
                B3_5Armor(player);
                break;
            case 5:
                menuMain(player);
                break;
            default: break;
        }
    });
}

export function B3_1GiantBone(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3NewItems(player);
                break;
            default: break;
        }
    });
}

export function B3_2DinoUpgrades(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_2_1UpgradeArmor(player);
                break;
            case 1:
                B3_2_2CrossbowUpgrade(player);
                break;
            case 2:
                B3_2_3ChestUpgrade(player);
                break;
            case 3:
                B3NewItems(player);
                break;
            default: break;
        }
    });
}

export function B3_2_1UpgradeArmor(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_2_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_2DinoUpgrades(player);
                break;
            default: break;
        }
    });
}

export function B3_2_2CrossbowUpgrade(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_2_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_2DinoUpgrades(player);
                break;
            default: break;
        }
    });
}

export function B3_2_3ChestUpgrade(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_2_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_2DinoUpgrades(player);
                break;
            default: break;
        }
    });
}

export function B3_3Weapons(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_3_1DinoToothDagger(player);
                break;
            case 1:
                B3_3_2DinoSword(player);
                break;
            case 2:
                B3_3_3TranquilizerDartGun(player);
                break;
            case 3:
                B3_3_4LargeBoneClub(player);
                break;
            case 4:
                B3_3_5DarkDinoClawDagger(player);
                break;
            case 5:
                B3_3_6DarkDinoSword(player);
                break;
            case 6:
                B3_3_7DarkLargeBoneClub(player);
                break;
            case 7:
                B3NewItems(player);
                break;
            default: break;
        }
    });
}

export function B3_3_1DinoToothDagger(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_3_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_3Weapons(player);
                break;
            default: break;
        }
    });
}

export function B3_3_2DinoSword(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_3_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_3Weapons(player);
                break;
            default: break;
        }
    });
}

export function B3_3_3TranquilizerDartGun(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_3_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_3Weapons(player);
                break;
            default: break;
        }
    });
}

export function B3_3_4LargeBoneClub(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_3_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_3Weapons(player);
                break;
            default: break;
        }
    });
}

export function B3_3_5DarkDinoClawDagger(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_3_5.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_3Weapons(player);
                break;
            default: break;
        }
    });
}

export function B3_3_6DarkDinoSword(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_3_6.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_3Weapons(player);
                break;
            default: break;
        }
    });
}

export function B3_3_7DarkLargeBoneClub(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_3_7.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_3Weapons(player);
                break;
            default: break;
        }
    });
}

export function B3_4Gadgets(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_4_1Totem(player);
                break;
            case 1:
                B3_4_2SpikeTrap(player);
                break;
            case 2:
                B3_4_3Slingshot(player);
                break;
            case 3:
                B3_4_4Bolas(player);
                break;
            case 4:
                B3_4_5NetCrossbow(player);
                break;
            case 5:
                B3_4_6DrakHorn(player);
                break;
            case 6:
                B3_4_7BannersFlags(player);
                break;
            case 7:
                B3NewItems(player);
                break;
            default: break;
        }
    });
}

export function B3_4_1Totem(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_4_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_4Gadgets(player);
                break;
            default: break;
        }
    });
}

export function B3_4_2SpikeTrap(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_4_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_4Gadgets(player);
                break;
            default: break;
        }
    });
}

export function B3_4_3Slingshot(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_4_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_4Gadgets(player);
                break;
            default: break;
        }
    });
}

export function B3_4_4Bolas(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_4_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_4Gadgets(player);
                break;
            default: break;
        }
    });
}

export function B3_4_5NetCrossbow(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_4_5.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_4Gadgets(player);
                break;
            default: break;
        }
    });
}

export function B3_4_6DrakHorn(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_4_6.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_4Gadgets(player);
                break;
            default: break;
        }
    });
}

export function B3_4_7BannersFlags(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_4_7.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_4Gadgets(player);
                break;
            default: break;
        }
    });
}

export function B3_5Armor(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_5.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_5_1HunterArmor(player);
                break;
            case 1:
                B3_5_2DinosaurArmor(player);
                break;
            case 2:
                B3_5_3TrexArmor(player);
                break;
            case 3:
                B3NewItems(player);
                break;
            default: break;
        }
    });
}

export function B3_5_1HunterArmor(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_5_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_5Armor(player);
                break;
            default: break;
        }
    });
}

export function B3_5_2DinosaurArmor(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_5_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_5Armor(player);
                break;
            default: break;
        }
    });
}

export function B3_5_3TrexArmor(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B3_5_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B3_5Armor(player);
                break;
            default: break;
        }
    });
}

export function B4Factions(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B4_1Draxar(player);
                break;
            case 1:
                B4_2Gaiakin(player);
                break;
            case 2:
                B4_3Trader(player);
                break;
            case 3:
                menuMain(player);
                break;
            default: break;
        }
    });
}

export function B4_1Draxar(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B4_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B4Factions(player);
                break;
            default: break;
        }
    });
}

export function B4_2Gaiakin(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B4_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B4Factions(player);
                break;
            default: break;
        }
    });
}

export function B4_3Trader(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B4_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B4Factions(player);
                break;
            default: break;
        }
    });
}

export function B5AshAndBones(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_1TheAshlands(player);
                break;
            case 1:
                B5_2TheDarkDraxar(player);
                break;
            case 2:
                B5_3NewDinosaurs(player);
                break;
            case 3:
                B5_4NewItems(player);
                break;
            case 4:
                menuMain(player);
                break;
            default: break;
        }
    });
}

export function B5_1TheAshlands(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_1_1AshBlock(player);
                break;
            case 1:
                B5_1_2PahoehoeBlock(player);
                break;
            case 2:
                B5_1_3FumerolleBlock(player);
                break;
            case 3:
                B5_1_4BurnedPlants(player);
                break;
            case 4:
                B5_1_5BoneBlocks(player);
                break;
            case 5:
                B5AshAndBones(player);
                break;
            default: break;
        }
    });
}

export function B5_1_1AshBlock(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_1_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_1TheAshlands(player);
                break;
            default: break;
        }
    });
}

export function B5_1_2PahoehoeBlock(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_1_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_1TheAshlands(player);
                break;
            default: break;
        }
    });
}

export function B5_1_3FumerolleBlock(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_1_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_1TheAshlands(player);
                break;
            default: break;
        }
    });
}

export function B5_1_4BurnedPlants(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_1_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_1TheAshlands(player);
                break;
            default: break;
        }
    });
}

export function B5_1_5BoneBlocks(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_1_5.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_1TheAshlands(player);
                break;
            default: break;
        }
    });
}

export function B5_2TheDarkDraxar(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_2_1TheDarkDraxar(player);
                break;
            case 1:
                B5_2_2TheDarkDraxarBoss(player);
                break;
            case 2:
                B5_2_3NewStructures(player);
                break;
            case 3:
                B5_2_4DarkDraxarMerchant(player);
                break;
            case 4:
                B5AshAndBones(player);
                break;
            default: break;
        }
    });
}

export function B5_2_1TheDarkDraxar(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_2_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_2TheDarkDraxar(player);
                break;
            default: break;
        }
    });
}

export function B5_2_2TheDarkDraxarBoss(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_2_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_2TheDarkDraxar(player);
                break;
            default: break;
        }
    });
}

export function B5_2_3NewStructures(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_2_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_2TheDarkDraxar(player);
                break;
            default: break;
        }
    });
}

export function B5_2_4DarkDraxarMerchant(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_2_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_2TheDarkDraxar(player);
                break;
            default: break;
        }
    });
}

export function B5_3NewDinosaurs(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_3_1Spycomellus(player);
                break;
            case 1:
                B5_3_2SkullVelociraptor(player);
                break;
            case 2:
                B5_3_3SkullStegospheryx(player);
                break;
            case 3:
                B5_3_4SkullTrex(player);
                break;
            case 4:
                B5AshAndBones(player);
                break;
            default: break;
        }
    });
}

export function B5_3_1Spycomellus(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_3_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_3NewDinosaurs(player);
                break;
            default: break;
        }
    });
}

export function B5_3_2SkullVelociraptor(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_3_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_3NewDinosaurs(player);
                break;
            default: break;
        }
    });
}

export function B5_3_3SkullStegospheryx(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_3_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_3NewDinosaurs(player);
                break;
            default: break;
        }
    });
}

export function B5_3_4SkullTrex(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_3_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_3NewDinosaurs(player);
                break;
            default: break;
        }
    });
}

export function B5_4NewItems(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_4_1DarkScales(player);
                break;
            case 1:
                B5_4_2SpikeShield(player);
                break;
            case 2:
                B5_4_3SkullAxe(player);
                break;
            case 3:
                B5_4_4SkullHook(player);
                break;
            case 4:
                B5AshAndBones(player);
                break;
            default: break;
        }
    });
}

export function B5_4_1DarkScales(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_4_1.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_4NewItems(player);
                break;
            default: break;
        }
    });
}

export function B5_4_2SpikeShield(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_4_2.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_4NewItems(player);
                break;
            default: break;
        }
    });
}

export function B5_4_3SkullAxe(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_4_3.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_4NewItems(player);
                break;
            default: break;
        }
    });
}

export function B5_4_4SkullHook(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS);
    MENU_B5_4_4.show(player).then(result => {
        if (result.canceled) return;
        let response = result.selection;
        switch (response) {
            case 0:
                B5_4NewItems(player);
                break;
            default: break;
        }
    });
}

export function showFogMenuSettings(player) {
    player.playSound(SOUND_TURN_PAGE, SOUND_OPTIONS)
    MENU_FOG_SETTINGS
        .show(player).then(result => {
            if (result.canceled) return
            if (result.selection === 0) {
                const currStatus = world.getDynamicProperty('cyd_dino:enabled_fog') ?? false
                const newStatus = !currStatus
                world.setDynamicProperty('cyd_dino:enabled_fog', newStatus)
            }
            if (result.selection === 1) {
                const currStatus = world.getDynamicProperty('cyd_dino:enabled_ash') ?? false
                const newStatus = !currStatus
                world.setDynamicProperty('cyd_dino:enabled_ash', newStatus)
            }
            if (result.selection === 2) {
                menuMain(player);
            }
        })
}