forked from VoxeLibre/VoxeLibre
Add main nether biomes
Add nether forests Add soulsand valley decorations Add Basalt Delta basics
This commit is contained in:
parent
06fdfd2e63
commit
3c79685c48
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -139,7 +139,7 @@ minetest.register_node("mcl_crimson:warped_wart_block", {
|
|||
minetest.register_node("mcl_crimson:shroomlight", {
|
||||
description = S("Shroomlight"),
|
||||
tiles = {"shroomlight.png"},
|
||||
groups = {handy = 1, hoe = 7, swordy = 1, leafdecay = 1, leafdecay_distance = 1, leaves = 1, deco_block = 1},
|
||||
groups = {handy = 1, hoe = 7, swordy = 1, leafdecay = 5, leaves = 1, deco_block = 1},
|
||||
-- this is 15 in Minecraft
|
||||
light_source = 14,
|
||||
_mcl_hardness = 2,
|
||||
|
@ -300,28 +300,6 @@ minetest.register_abm({
|
|||
end
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "mcl_crimson:warped_checknode",
|
||||
nodenames = {"mcl_crimson:warped_checknode"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos)
|
||||
local pos1 = vector.offset(pos, 0, 1, 0)
|
||||
local nodepos = minetest.get_node(pos1)
|
||||
if nodepos.name == "air" then
|
||||
minetest.swap_node(pos, { name = "mcl_crimson:warped_nylium" })
|
||||
local randomg = math.random(1, 40)
|
||||
if randomg == 2 then
|
||||
minetest.set_node(pos1, { name = "mcl_crimson:warped_fungus" })
|
||||
elseif randomg == 7 then
|
||||
generate_warped_tree(pos1)
|
||||
end
|
||||
else
|
||||
minetest.swap_node(pos, { name = "mcl_nether:netherrack" })
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_crimson:crimson_fungus", {
|
||||
description = S("Crimson Fungus Mushroom"),
|
||||
drawtype = "plantlike",
|
||||
|
@ -525,138 +503,3 @@ minetest.register_abm({
|
|||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "mcl_crimson:crimson_checknode",
|
||||
nodenames = {"mcl_crimson:crimson_checknode"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos)
|
||||
local pos1 = vector.offset(pos, 0, 1, 0)
|
||||
local nodepos = minetest.get_node(pos1)
|
||||
if nodepos.name == "air" then
|
||||
minetest.swap_node(pos, { name = "mcl_crimson:crimson_nylium" })
|
||||
|
||||
local randomg = math.random(1, 400)
|
||||
|
||||
if randomg <= 10 then
|
||||
minetest.set_node(pos1, { name = "mcl_crimson:crimson_fungus" })
|
||||
elseif randomg > 10 and randomg <= 25 then
|
||||
generate_crimson_tree(pos1)
|
||||
elseif randomg > 25 and randomg <= 30 then
|
||||
minetest.set_node(pos1, { name = "mcl_crimson:warped_fungus" })
|
||||
elseif randomg > 30 and randomg <= 130 then
|
||||
minetest.set_node(pos1, { name = "mcl_crimson:crimson_roots" })
|
||||
end
|
||||
else
|
||||
minetest.swap_node(pos, { name = "mcl_nether:netherrack" })
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
|
||||
--[[
|
||||
FIXME: Biomes are to rare
|
||||
FIXME: Decoration don't do generate
|
||||
WARNING: Outdatet, the biomes gernerate now different, with Ores
|
||||
-- biomes in test!
|
||||
minetest.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",
|
||||
y_min = -29065,
|
||||
y_max = -28940,
|
||||
heat_point = 100,
|
||||
humidity_point = 0,
|
||||
_mcl_biome_type = "hot",
|
||||
_mcl_palette_index = 19,
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_crimson:warped_nylium"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0.01,
|
||||
scale = 0.0022,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 2,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
biomes = {"WarpedForest"},
|
||||
y_min = -29065,
|
||||
y_max = -28940 + 80,
|
||||
decoration = "mcl_crimson:warped_fungus",
|
||||
})
|
||||
]]
|
||||
--[[ No Ore gen for now
|
||||
minetest.register_ore({
|
||||
ore_type = "sheet",
|
||||
ore = "mcl_crimson:warped_checknode",
|
||||
-- Note: Stone is included only for v6 mapgen support. Netherrack is not generated naturally
|
||||
-- in v6, but instead set with the on_generated function in mcl_mapgen_core.
|
||||
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
||||
clust_scarcity = 14 * 14 * 14,
|
||||
clust_size = 10,
|
||||
y_min = -29065,
|
||||
y_max = -28940,
|
||||
noise_threshold = 0.0,
|
||||
noise_params = {
|
||||
offset = 0.5,
|
||||
scale = 0.1,
|
||||
spread = {x = 8, y = 8, z = 8},
|
||||
seed = 4996,
|
||||
octaves = 1,
|
||||
persist = 0.0
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "sheet",
|
||||
ore = "mcl_crimson:crimson_checknode",
|
||||
-- Note: Stone is included only for v6 mapgen support. Netherrack is not generated naturally
|
||||
-- in v6, but instead set with the on_generated function in mcl_mapgen_core.
|
||||
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
||||
clust_scarcity = 10 * 10 * 10,
|
||||
clust_size = 10,
|
||||
y_min = -29065,
|
||||
y_max = -28940,
|
||||
noise_threshold = 0.0,
|
||||
noise_params = {
|
||||
offset = 1,
|
||||
scale = 0.5,
|
||||
spread = {x = 12, y = 12, z = 12},
|
||||
seed = 12948,
|
||||
octaves = 1,
|
||||
persist = 0.0
|
||||
},
|
||||
})
|
||||
--]]
|
||||
|
||||
--[[
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_crimson:warped_nylium"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.1,
|
||||
biomes = {"Nether"},
|
||||
y_max = -28940,
|
||||
y_min = -29065,
|
||||
decoration = "mcl_crimson:warped_fungus",
|
||||
})
|
||||
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_crimson:crimson_nylium"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.1,
|
||||
biomes = {"Nether"},
|
||||
y_max = -28940,
|
||||
y_min = -29065,
|
||||
decoration = "mcl_crimson:crimson_fungus",
|
||||
})
|
||||
]]
|
|
@ -9,6 +9,8 @@ local generate_fallen_logs = minetest.settings:get_bool("mcl_generate_fallen_log
|
|||
local mod_mcl_structures = minetest.get_modpath("mcl_structures")
|
||||
local mod_mcl_core = minetest.get_modpath("mcl_core")
|
||||
local mod_mcl_mushrooms = minetest.get_modpath("mcl_mushrooms")
|
||||
local mod_mcl_crimson = minetest.get_modpath("mcl_crimson")
|
||||
local mod_mcl_blackstone = minetest.get_modpath("mcl_blackstone")
|
||||
|
||||
-- Jungle bush schematic. In PC/Java Edition it's Jungle Wood + Oak Leaves
|
||||
local jungle_bush_schematic = mod_mcl_core.."/schematics/mcl_core_jungle_bush_oak_leaves.mts"
|
||||
|
@ -1490,14 +1492,147 @@ local function register_dimension_biomes()
|
|||
node_river_water = "air",
|
||||
node_cave_liquid = "air",
|
||||
y_min = mcl_vars.mg_nether_min,
|
||||
-- FIXME: For some reason the Nether stops generating early if this constant is not added.
|
||||
-- Figure out why.
|
||||
|
||||
y_max = mcl_vars.mg_nether_max + 80,
|
||||
heat_point = 100,
|
||||
humidity_point = 0,
|
||||
_mcl_biome_type = "hot",
|
||||
_mcl_palette_index = 17,
|
||||
})
|
||||
minetest.register_biome({
|
||||
name = "SoulsandValley",
|
||||
node_filler = "mcl_nether:netherrack",
|
||||
node_stone = "mcl_nether:netherrack",
|
||||
node_top = "mcl_blackstone:soul_soil",
|
||||
node_water = "air",
|
||||
node_river_water = "air",
|
||||
node_cave_liquid = "air",
|
||||
y_min = mcl_vars.mg_nether_min,
|
||||
|
||||
y_max = mcl_vars.mg_nether_max + 80,
|
||||
heat_point = 80,
|
||||
humidity_point = 20,
|
||||
_mcl_biome_type = "hot",
|
||||
_mcl_palette_index = 17,
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_nether:netherrack","mcl_nether:glowstone"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 10,
|
||||
biomes = { "SoulsandValley" },
|
||||
y_min = -31000,
|
||||
y_max = mcl_vars.mg_nether_max,
|
||||
decoration = "mcl_blackstone:soul_soil",
|
||||
flags = "all_floors, all_ceilings",
|
||||
param2 = 0,
|
||||
})
|
||||
minetest.register_biome({
|
||||
name = "CrimsonForest",
|
||||
node_filler = "mcl_nether:netherrack",
|
||||
node_stone = "mcl_nether:netherrack",
|
||||
node_top = "mcl_crimson:crimson_nylium",
|
||||
node_water = "air",
|
||||
node_river_water = "air",
|
||||
node_cave_liquid = "air",
|
||||
y_min = mcl_vars.mg_nether_min,
|
||||
|
||||
y_max = mcl_vars.mg_nether_max + 80,
|
||||
heat_point = 60,
|
||||
humidity_point = 40,
|
||||
_mcl_biome_type = "hot",
|
||||
_mcl_palette_index = 17,
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_nether:netherrack","mcl_nether:glowstone"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 10,
|
||||
biomes = { "CrimsonForest" },
|
||||
y_min = -31000,
|
||||
y_max = mcl_vars.mg_nether_max,
|
||||
decoration = "mcl_crimson:crimson_nylium",
|
||||
flags = "all_floors, all_ceilings",
|
||||
param2 = 0,
|
||||
})
|
||||
minetest.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 = mcl_vars.mg_nether_min,
|
||||
y_max = mcl_vars.mg_nether_max + 80,
|
||||
heat_point = 40,
|
||||
humidity_point = 60,
|
||||
_mcl_biome_type = "hot",
|
||||
_mcl_palette_index = 17,
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_nether:netherrack","mcl_nether:glowstone"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 10,
|
||||
biomes = { "WarpedForest" },
|
||||
y_min = -31000,
|
||||
y_max = mcl_vars.mg_nether_max,
|
||||
decoration = "mcl_crimson:warped_nylium",
|
||||
flags = "all_floors, all_ceilings",
|
||||
param2 = 0,
|
||||
})
|
||||
minetest.register_biome({
|
||||
name = "BasaltDelta",
|
||||
node_filler = "mcl_nether:netherrack",
|
||||
node_stone = "mcl_nether:netherrack",
|
||||
node_top = "mcl_blackstone:basalt",
|
||||
node_water = "air",
|
||||
node_river_water = "air",
|
||||
node_cave_liquid = "air",
|
||||
y_min = mcl_vars.mg_nether_min,
|
||||
y_max = mcl_vars.mg_nether_max + 80,
|
||||
heat_point = 20,
|
||||
humidity_point = 80,
|
||||
_mcl_biome_type = "hot",
|
||||
_mcl_palette_index = 17,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "blob",
|
||||
ore = "mcl_blackstone:blackstone",
|
||||
wherein = { "mcl_nether:netherrack" },
|
||||
clust_scarcity = 100,
|
||||
clust_num_ores = 100,
|
||||
clust_size = 10,
|
||||
biomes = { "BasaltDelta" },
|
||||
y_min = mcl_vars.mg_nether_min,
|
||||
y_max = mcl_vars.mg_nether_max + 80,
|
||||
noise_params = {
|
||||
offset = 0,
|
||||
scale = 1,
|
||||
spread = { x = 250, y = 250, z = 250 },
|
||||
seed = 12345,
|
||||
octaves = 3,
|
||||
persist = 0.6,
|
||||
lacunarity = 2,
|
||||
flags = "defaults",
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_nether:netherrack","mcl_nether:glowstone","mcl_blackstone:blackstone"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 10,
|
||||
biomes = { "BasaltDelta" },
|
||||
y_min = -31000,
|
||||
y_max = mcl_vars.mg_nether_max,
|
||||
decoration = "mcl_blackstone:basalt",
|
||||
flags = "all_floors, all_ceilings",
|
||||
param2 = 0,
|
||||
})
|
||||
|
||||
--[[ THE END ]]
|
||||
minetest.register_biome({
|
||||
|
@ -3913,6 +4048,136 @@ local function register_dimension_decorations()
|
|||
--[[ NETHER ]]
|
||||
-- TODO: Nether
|
||||
|
||||
-- WARPED FOREST
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_crimson:warped_nylium"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.02,
|
||||
biomes = {"WarpedForest"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors",
|
||||
decoration = "mcl_crimson:warped_fungus",
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"mcl_crimson:warped_nylium"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.022,
|
||||
biomes = {"WarpedForest"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors, place_center_x, place_center_z",
|
||||
schematic = mod_mcl_crimson.."/schematics/warped_mushroom.mts",
|
||||
size = {x = 5, y = 8, z = 5},
|
||||
rotation = "random",
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_crimson:warped_nylium","mcl_crimson:twisting_vines"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.012,
|
||||
biomes = {"WarpedForest"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors",
|
||||
height = 3,
|
||||
max_height = 5,
|
||||
decoration = "mcl_crimson:twisting_vines",
|
||||
})
|
||||
-- CRIMSON FOREST
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_crimson:crimson_nylium"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.02,
|
||||
biomes = {"CrimsonForest"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors",
|
||||
decoration = "mcl_crimson:crimson_fungus",
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"mcl_crimson:crimson_nylium"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.022,
|
||||
biomes = {"CrimsonForest"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors, place_center_x, place_center_z",
|
||||
schematic = mod_mcl_crimson.."/schematics/crimson_mushroom.mts",
|
||||
size = {x = 5, y = 8, z = 5},
|
||||
rotation = "random",
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_crimson:crimson_nylium"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.012,
|
||||
biomes = {"CrimsonForest"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors",
|
||||
max_height = 5,
|
||||
decoration = "mcl_crimson:crimson_roots",
|
||||
})
|
||||
--SOULSAND VALLEY
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"mcl_blackstone:soul_soil","mcl_nether:soulsand"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.012,
|
||||
biomes = {"SoulsandValley"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors",
|
||||
max_height = 5,
|
||||
decoration = "mcl_blackstone:soul_fire",
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"mcl_blackstone:soul_soil","mcl_nether:soulsand"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.000212,
|
||||
biomes = {"SoulsandValley"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors, place_center_x, place_center_z",
|
||||
schematic = mod_mcl_blackstone.."/schematics/mcl_blackstone_nether_fossil_1.mts",
|
||||
size = {x = 5, y = 8, z = 5},
|
||||
rotation = "random",
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"mcl_blackstone:soul_soil","mcl_nether:soulsand"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.0002233,
|
||||
biomes = {"SoulsandValley"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors, place_center_x, place_center_z",
|
||||
schematic = mod_mcl_blackstone.."/schematics/mcl_blackstone_nether_fossil_2.mts",
|
||||
size = {x = 5, y = 8, z = 5},
|
||||
rotation = "random",
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"mcl_blackstone:soul_soil","mcl_nether:soulsand"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.000225,
|
||||
biomes = {"SoulsandValley"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors, place_center_x, place_center_z",
|
||||
schematic = mod_mcl_blackstone.."/schematics/mcl_blackstone_nether_fossil_3.mts",
|
||||
size = {x = 5, y = 8, z = 5},
|
||||
rotation = "random",
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"mcl_blackstone:soul_soil","mcl_nether:soulsand"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.00022323,
|
||||
biomes = {"SoulsandValley"},
|
||||
y_min = mcl_vars.mg_lava_nether_max + 1,
|
||||
flags = "all_floors, place_center_x, place_center_z",
|
||||
schematic = mod_mcl_blackstone.."/schematics/mcl_blackstone_nether_fossil_4.mts",
|
||||
size = {x = 5, y = 8, z = 5},
|
||||
rotation = "random",
|
||||
})
|
||||
|
||||
--[[ THE END ]]
|
||||
|
||||
-- Chorus plant
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = mcl_biomes
|
||||
author = maikerumine
|
||||
description = Adds the various biomes and biome-related things for non-v6 map generators.
|
||||
depends = mcl_init, mcl_mapgen_core, mcl_core, mcl_worlds, mcl_farming, mcl_flowers, mcl_end, mcl_ocean
|
||||
depends = mcl_init, mcl_mapgen_core, mcl_core, mcl_worlds, mcl_farming, mcl_flowers, mcl_end, mcl_ocean, mcl_crimson, mcl_blackstone
|
||||
|
|
Loading…
Reference in New Issue