local mod_mcl_mushrooms = minetest.get_modpath("mcl_mushrooms") -- Mushroom Island / Mushroom Island Shore (rare) aka Mushroom Fields -- Not neccessarily an island at all, only named after Minecraft's biome vl_biomes.register_biome({ name = "MushroomIsland", node_top = "mcl_core:mycelium", depth_top = 1, node_filler = "mcl_core:dirt", depth_filler = 3, node_riverbed = "mcl_core:sand", depth_riverbed = 2, y_min = 1, -- was 4, with Shore below y_max = 20, -- Note: Limited in height! vertical_blend = 1, humidity_point = 106, heat_point = 50, _mcl_biome_type = "medium", _mcl_water_temp = "ocean", _mcl_grass_palette_index = 29, _mcl_foliage_palette_index = 17, _mcl_water_palette_index = 0, _mcl_skycolor = "#77A8FF", -- _shore = { name = "MushroomIslandShore", y_min = 1, y_max = 3, }, _ocean = { node_top = "mcl_core:gravel", depth_top = 1, node_filler = "mcl_core:gravel", depth_filler = 3, }, }) local ratio_mushroom_mycelium = 0.002 local ratio_mushroom_mycelium_huge = ratio_mushroom_mycelium * (11 / 12) local ratio_mushroom_mycelium_giant = ratio_mushroom_mycelium * (1 / 12) mcl_mapgen_core.register_decoration({ deco_type = "schematic", place_on = {"mcl_core:mycelium"}, sidelen = 80, fill_ratio = ratio_mushroom_mycelium_huge, biomes = {"MushroomIsland"}, --"MushroomIslandShore"}, y_min = 1, y_max = vl_biomes.overworld_max, schematic = mod_mcl_mushrooms .. "/schematics/mcl_mushrooms_huge_brown.mts", flags = "place_center_x, place_center_z", rotation = "0", }) mcl_mapgen_core.register_decoration({ deco_type = "schematic", place_on = {"mcl_core:mycelium"}, sidelen = 80, fill_ratio = ratio_mushroom_mycelium_giant, biomes = {"MushroomIsland"}, --"MushroomIslandShore"}, y_min = 1, y_max = vl_biomes.overworld_max, schematic = mod_mcl_mushrooms .. "/schematics/mcl_mushrooms_giant_brown.mts", flags = "place_center_x, place_center_z", rotation = "0", }) mcl_mapgen_core.register_decoration({ deco_type = "schematic", place_on = {"mcl_core:mycelium"}, sidelen = 80, fill_ratio = ratio_mushroom_mycelium_huge, biomes = {"MushroomIsland"}, --"MushroomIslandShore"}, y_min = 1, y_max = vl_biomes.overworld_max, schematic = mod_mcl_mushrooms .. "/schematics/mcl_mushrooms_huge_red.mts", flags = "place_center_x, place_center_z", rotation = "0", }) mcl_mapgen_core.register_decoration({ deco_type = "schematic", place_on = {"mcl_core:mycelium"}, sidelen = 80, fill_ratio = ratio_mushroom_mycelium_giant, biomes = {"MushroomIsland"}, --"MushroomIslandShore"}, y_min = 1, y_max = vl_biomes.overworld_max, schematic = mod_mcl_mushrooms .. "/schematics/mcl_mushrooms_giant_red.mts", flags = "place_center_x, place_center_z", rotation = "0", }) -- Mushrooms in mushroom biome mcl_mapgen_core.register_decoration({ deco_type = "simple", place_on = {"mcl_core:mycelium"}, sidelen = 80, fill_ratio = 0.009, biomes = {"MushroomIsland", "MushroomIslandShore"}, noise_threshold = 2.0, y_min = vl_biomes.overworld_min, y_max = vl_biomes.overworld_max, decoration = "mcl_mushrooms:mushroom_red", }) mcl_mapgen_core.register_decoration({ deco_type = "simple", place_on = {"mcl_core:mycelium"}, sidelen = 80, fill_ratio = 0.009, biomes = {"MushroomIsland", "MushroomIslandShore"}, y_min = vl_biomes.overworld_min, y_max = vl_biomes.overworld_max, decoration = "mcl_mushrooms:mushroom_brown", })