local mod_mcl_crimson = minetest.get_modpath("mcl_crimson") vl_biomes.register_biome({ name = "WarpedForest", node_filler = "mcl_nether:netherrack", node_stone = "mcl_nether:netherrack", node_top = "mcl_crimson:warped_nylium", node_water = "air", node_river_water = "air", node_cave_liquid = "air", y_min = vl_biomes.nether_min, y_max = vl_biomes.nether_max + 80, heat_point = 37, humidity_point = 70, _mcl_biome_type = "hot", _mcl_grass_palette_index = 17, _mcl_foliage_palette_index = 3, _mcl_water_palette_index = 0, _mcl_waterfogcolor = vl_biomes.default_waterfogcolor, _mcl_skycolor = vl_biomes.nether_skycolor, _mcl_fogcolor = "#1A051A" }) mcl_mapgen_core.register_decoration({ deco_type = "simple", place_on = {"mcl_nether:netherrack", "mcl_nether:glowstone", "mcl_blackstone:nether_gold", "mcl_nether:quartz_ore", "mcl_core:gravel", "mcl_nether:soul_sand", "mcl_nether:magma", "mcl_blackstone:blackstone"}, sidelen = 16, fill_ratio = 10, biomes = {"WarpedForest"}, y_min = vl_biomes.lava_nether_max, y_max = vl_biomes.nether_deco_max, decoration = "mcl_crimson:warped_nylium", flags = "all_floors", param2 = 0, }) mcl_mapgen_core.register_decoration({ deco_type = "simple", place_on = {"mcl_crimson:warped_nylium"}, sidelen = 16, fill_ratio = 0.02, biomes = {"WarpedForest"}, y_min = vl_biomes.lava_nether_max + 1, y_max = vl_biomes.nether_max - 10, flags = "all_floors", decoration = "mcl_crimson:warped_fungus", }) --- Fix light for mushroom lights after generation local function fix_light_8_gennotify(t, minp, maxp, blockseed) for _, pos in ipairs(t) do minetest.fix_light(vector.offset(pos, -8, -8, -8), vector.offset(pos, 8, 8, 8)) end end mcl_mapgen_core.register_decoration({ deco_type = "schematic", name = "mcl_biomes:warped_tree1", place_on = {"mcl_crimson:warped_nylium"}, sidelen = 16, fill_ratio = 0.007, biomes = {"WarpedForest"}, y_min = vl_biomes.lava_nether_max + 1, y_max = vl_biomes.nether_max - 15, flags = "all_floors, place_center_x, place_center_z", schematic = mod_mcl_crimson .. "/schematics/warped_fungus_1.mts", size = vector.new(5, 11, 5), rotation = "random", gen_callback = fix_light_8_gennotify, }) mcl_mapgen_core.register_decoration({ deco_type = "schematic", name = "mcl_biomes:warped_tree2", place_on = {"mcl_crimson:warped_nylium"}, sidelen = 16, fill_ratio = 0.005, biomes = {"WarpedForest"}, y_min = vl_biomes.lava_nether_max + 1, y_max = vl_biomes.nether_max - 10, flags = "all_floors, place_center_x, place_center_z", schematic = mod_mcl_crimson .. "/schematics/warped_fungus_2.mts", size = vector.new(5, 6, 5), rotation = "random", gen_callback = fix_light_8_gennotify, }) mcl_mapgen_core.register_decoration({ deco_type = "schematic", name = "mcl_biomes:warped_tree3", place_on = {"mcl_crimson:warped_nylium"}, sidelen = 16, fill_ratio = 0.003, biomes = {"WarpedForest"}, y_min = vl_biomes.lava_nether_max + 1, y_max = vl_biomes.nether_max - 14, flags = "all_floors, place_center_x, place_center_z", schematic = mod_mcl_crimson .. "/schematics/warped_fungus_3.mts", size = vector.new(5, 12, 5), rotation = "random", gen_callback = fix_light_8_gennotify, }) mcl_mapgen_core.register_decoration({ deco_type = "simple", place_on = {"mcl_crimson:warped_nylium", "mcl_crimson:twisting_vines"}, sidelen = 16, fill_ratio = 0.032, biomes = {"WarpedForest"}, y_min = vl_biomes.lava_nether_max + 1, flags = "all_floors", height = 2, height_max = 8, decoration = "mcl_crimson:twisting_vines", }) mcl_mapgen_core.register_decoration({ deco_type = "simple", place_on = {"mcl_crimson:warped_nylium"}, sidelen = 16, fill_ratio = 0.0812, biomes = {"WarpedForest"}, y_min = vl_biomes.lava_nether_max + 1, flags = "all_floors", max_height = 5, decoration = "mcl_crimson:warped_roots", }) mcl_mapgen_core.register_decoration({ deco_type = "simple", place_on = {"mcl_crimson:crimson_nylium"}, sidelen = 16, fill_ratio = 0.052, biomes = {"WarpedForest"}, y_min = vl_biomes.lava_nether_max + 1, flags = "all_floors", decoration = "mcl_crimson:nether_sprouts", })