import BIOMES from "./biomes";

export const biomeBlockMappingsAbove = {
    [BIOMES.desert]: {
        "minecraft:sand": [
            { block: "squaredreams_realism:flowering_cactus", weight: 0.5 },
            { block: "squaredreams_realism:saguaro_cactus_large", weight: 0.5 }
        ]
    },
    [BIOMES.jungle]: {
        "minecraft:grass": [
            { block: "squaredreams_realism:rafflesia_arnolda", weight: 0.3 },
            { block: "squaredreams_realism:nepenthes", weight: 0.1 },
            { block: "squaredreams_realism:plant_red", weight: 0.1 },
            { block: "squaredreams_realism:fern_1", weight: 0.25 },
            { block: "squaredreams_realism:fern_2", weight: 0.8 },
            { block: "squaredreams_realism:leaf_plant_1", weight: 1 },
            { block: "squaredreams_realism:leaf_plant_2", weight: 1 }
        ],
        "minecraft:jungle_log": [
            { block: "squaredreams_realism:tree_moss", weight: 1.0 }
        ]
    },
    [BIOMES.forest]: {
        "minecraft:grass": [
            { block: "squaredreams_realism:pebbles_1", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_2", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_3", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_4", weight: 0.1 },
            { block: "squaredreams_realism:mushroom_brown", weight: 0.2 },
            { block: "squaredreams_realism:branch_oak", weight: 0.3 }
        ],
        "minecraft:birch_log": [
            { block: "squaredreams_realism:tree_moss", weight: 0.8 },
            { block: "squaredreams_realism:mushroom_brown", weight: 0.3 }
        ],
        "minecraft:oak_log": [
            { block: "squaredreams_realism:tree_moss", weight: 1.0 }
        ]
    },
    [BIOMES.birch]: {
        "minecraft:grass": [
            { block: "squaredreams_realism:pebbles_1", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_2", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_3", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_4", weight: 0.1 },
            { block: "squaredreams_realism:mushroom_brown", weight: 0.2 },
            { block: "squaredreams_realism:branch_birch", weight: 0.3 }
        ],
        "minecraft:birch_log": [
            { block: "squaredreams_realism:tree_moss", weight: 0.7 },
            { block: "squaredreams_realism:mushroom_brown", weight: 0.3 }
        ]
    },
    [BIOMES.taiga]: {
        "minecraft:grass": [
            { block: "squaredreams_realism:pebbles_1", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_2", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_3", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_4", weight: 0.1 },
            { block: "squaredreams_realism:mushroom_brown", weight: 0.2 }
        ]
    },
    [BIOMES.plains]: {
        "minecraft:grass": [
            { block: "squaredreams_realism:pebbles_1", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_2", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_3", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_4", weight: 0.1 },
            { block: "squaredreams_realism:branch_oak", weight: 0.3 }
        ]
    },
    [BIOMES.savanna]: {
        "minecraft:grass": [
            { block: "squaredreams_realism:pebbles_1", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_2", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_3", weight: 0.1 },
            { block: "squaredreams_realism:pebbles_4", weight: 0.1 },
            { block: "squaredreams_realism:dried_bush", weight: 0.3 },
            { block: "squaredreams_realism:dried_grass", weight: 1 }
        ]
    },
    [BIOMES.beach]: {
        "minecraft:sand": [
            { block: "squaredreams_realism:starfish_1", weight: 0.25 },
            { block: "squaredreams_realism:starfish_2", weight: 0.25 },
            { block: "squaredreams_realism:starfish_3", weight: 0.25 },
            { block: "squaredreams_realism:starfish_4", weight: 0.25 }
        ]
    },
    [BIOMES.mesa]: {
        "minecraft:sand": [
            { block: "squaredreams_realism:flowering_cactus", weight: 0.3 },
            { block: "squaredreams_realism:saguaro_cactus_large", weight: 0.2 },
            { block: "squaredreams_realism:dried_bush", weight: 0.5 }
        ],
        "minecraft:hardened_clay": [
            { block: "squaredreams_realism:dried_bush", weight: 1.0 }
        ]
    },
    [BIOMES.swamp]: {
        "minecraft:water": [
            { block: "squaredreams_realism:lily_pad_pink", weight: 0.2 },
            { block: "squaredreams_realism:lily_pad_group", weight: 0.2 },
            { block: "squaredreams_realism:cattail", weight: 0.2 },
            { block: "squaredreams_realism:water_reeds", weight: 0.2 },
            { block: "squaredreams_realism:duckweed", weight: 0.2 }
        ],
        "minecraft:grass": [
            { block: "squaredreams_realism:mushroom_brown", weight: 0.2 },
            { block: "squaredreams_realism:mushroom_red", weight: 0.2 },
            { block: "squaredreams_realism:branch_oak", weight: 0.6 }
        ]
    },
    [BIOMES.mangrove]: {
        "minecraft:water": [
            { block: "squaredreams_realism:lily_pad_pink", weight: 0.2 },
            { block: "squaredreams_realism:lily_pad_group", weight: 0.2 },
            { block: "squaredreams_realism:cattail", weight: 0.2 },
            { block: "squaredreams_realism:water_reeds", weight: 0.2 },
            { block: "squaredreams_realism:duckweed", weight: 0.2 }
        ]
    }
};

export const biomeBlockMappingsSide = {
    [BIOMES.forest]: {
        "minecraft:birch_log": [{
            block: "squaredreams_realism:mushroom_birch_1",
            directions: [
                { direction: "north", weight: 0.25 },
                { direction: "east", weight: 0.25 },
                { direction: "south", weight: 0.25 },
                { direction: "west", weight: 0.25 }
            ],
            weight: 1.0
        }],
        "minecraft:oak_log": [{
            block: "squaredreams_realism:mushroom_oak_1",
            directions: [
                { direction: "north", weight: 0.25 },
                { direction: "east", weight: 0.25 },
                { direction: "south", weight: 0.25 },
                { direction: "west", weight: 0.25 }
            ],
            weight: 0.2
        }]
    },
    [BIOMES.birch]: {
        "minecraft:birch_log": [{
            block: "squaredreams_realism:mushroom_birch_1",
            directions: [
                { direction: "north", weight: 0.25 },
                { direction: "east", weight: 0.25 },
                { direction: "south", weight: 0.25 },
                { direction: "west", weight: 0.25 }
            ],
            weight: 1.0
        }]
    }
};