Better biomes
This commit is contained in:
parent
7b969e0009
commit
f4e6c52f2f
5 changed files with 149 additions and 35 deletions
138
deco.lua
138
deco.lua
|
@ -13,17 +13,6 @@ minetest.register_node("fun_caves:sand_with_rocks", {
|
|||
drop = {max_items=2, items={{items={"fun_caves:small_rocks"}, rarity=1}, {items={"default:sand"}, rarity=1}}},
|
||||
})
|
||||
|
||||
--minetest.register_decoration({
|
||||
-- deco_type = "simple",
|
||||
-- place_on = {"default:dirt_with_grass"},
|
||||
-- sidelen = 80,
|
||||
-- fill_ratio = 0.1,
|
||||
-- biomes = {"rainforest", "desertstone_grassland"},
|
||||
-- y_min = 1,
|
||||
-- y_max = 31000,
|
||||
-- decoration = "default:junglegrass",
|
||||
--})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:stick 2",
|
||||
recipe = {
|
||||
|
@ -33,6 +22,133 @@ minetest.register_craft({
|
|||
|
||||
minetest.add_group("default:cactus", {oddly_breakable_by_hand=1})
|
||||
|
||||
|
||||
local biome_mod = {
|
||||
coniferous_forest_dunes = { heat_point = 35, humidity_point = 60, },
|
||||
coniferous_forest = { heat_point = 35, humidity_point = 60, },
|
||||
coniferous_forest_ocean = { heat_point = 35, humidity_point = 60, },
|
||||
deciduous_forest = { heat_point = 60, humidity_point = 60, },
|
||||
deciduous_forest_ocean = { heat_point = 60, humidity_point = 60, },
|
||||
deciduous_forest_swamp = { heat_point = 60, humidity_point = 60, },
|
||||
desert = { heat_point = 80, humidity_point = 10, },
|
||||
desert_ocean = { heat_point = 80, humidity_point = 10, },
|
||||
glacier = {},
|
||||
glacier_ocean = {},
|
||||
rainforest = { heat_point = 85, humidity_point = 70, },
|
||||
rainforest_ocean = { heat_point = 85, humidity_point = 70, },
|
||||
rainforest_swamp = { heat_point = 85, humidity_point = 70, },
|
||||
sandstone_grassland_dunes = { heat_point = 55, humidity_point = 40, },
|
||||
sandstone_grassland = { heat_point = 55, humidity_point = 40, },
|
||||
sandstone_grassland_ocean = { heat_point = 55, humidity_point = 40, },
|
||||
savanna = { heat_point = 80, humidity_point = 25, },
|
||||
savanna_ocean = { heat_point = 80, humidity_point = 25, },
|
||||
savanna_swamp = { heat_point = 80, humidity_point = 25, },
|
||||
stone_grassland_dunes = { heat_point = 35, humidity_point = 40, },
|
||||
stone_grassland = { heat_point = 35, humidity_point = 40, },
|
||||
stone_grassland_ocean = { heat_point = 35, humidity_point = 40, },
|
||||
taiga = {},
|
||||
taiga_ocean = {},
|
||||
tundra = {},
|
||||
tundra_beach = {},
|
||||
tundra_ocean = {},
|
||||
}
|
||||
local rereg = {}
|
||||
|
||||
for n, bi in pairs(biome_mod) do
|
||||
for i, rbi in pairs(minetest.registered_biomes) do
|
||||
if rbi.name == n then
|
||||
rereg[#rereg+1] = table.copy(rbi)
|
||||
for j, prop in pairs(bi) do
|
||||
rereg[#rereg][j] = prop
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
minetest.clear_registered_biomes()
|
||||
|
||||
for _, bi in pairs(rereg) do
|
||||
minetest.register_biome(bi)
|
||||
end
|
||||
|
||||
rereg = {}
|
||||
for _, dec in pairs(minetest.registered_decorations) do
|
||||
rereg[#rereg+1] = dec
|
||||
end
|
||||
minetest.clear_registered_decorations()
|
||||
for _, dec in pairs(rereg) do
|
||||
minetest.register_decoration(dec)
|
||||
end
|
||||
rereg = nil
|
||||
|
||||
|
||||
minetest.register_biome({
|
||||
name = "cold_desert",
|
||||
--node_dust = "",
|
||||
node_top = "default:desert_sand",
|
||||
depth_top = 1,
|
||||
node_filler = "default:desert_sand",
|
||||
depth_filler = 1,
|
||||
node_stone = "default:desert_stone",
|
||||
--node_water_top = "",
|
||||
--depth_water_top = ,
|
||||
--node_water = "",
|
||||
--node_river_water = "",
|
||||
y_min = 5,
|
||||
y_max = 31000,
|
||||
heat_point = 25,
|
||||
humidity_point = 0,
|
||||
})
|
||||
|
||||
minetest.register_biome({
|
||||
name = "cold_desert_ocean",
|
||||
--node_dust = "",
|
||||
node_top = "default:sand",
|
||||
depth_top = 1,
|
||||
node_filler = "default:sand",
|
||||
depth_filler = 3,
|
||||
node_stone = "default:desert_stone",
|
||||
--node_water_top = "",
|
||||
--depth_water_top = ,
|
||||
--node_water = "",
|
||||
--node_river_water = "",
|
||||
y_min = -112,
|
||||
y_max = 4,
|
||||
heat_point = 25,
|
||||
humidity_point = 10,
|
||||
})
|
||||
|
||||
minetest.register_biome({
|
||||
name = "desertstone_grassland",
|
||||
--node_dust = "",
|
||||
node_top = "default:dirt_with_grass",
|
||||
depth_top = 1,
|
||||
node_filler = "default:dirt",
|
||||
depth_filler = 1,
|
||||
node_stone = "default:desert_stone",
|
||||
--node_water_top = "",
|
||||
--depth_water_top = ,
|
||||
--node_water = "",
|
||||
--node_river_water = "",
|
||||
y_min = 6,
|
||||
y_max = 31000,
|
||||
heat_point = 80,
|
||||
humidity_point = 55,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 80,
|
||||
fill_ratio = 0.1,
|
||||
biomes = {"desertstone_grassland", },
|
||||
y_min = 1,
|
||||
y_max = 31000,
|
||||
decoration = "default:junglegrass",
|
||||
})
|
||||
|
||||
|
||||
dofile(fun_caves.path.."/deco_caves.lua")
|
||||
--dofile(fun_caves.path.."/deco_dirt.lua")
|
||||
dofile(fun_caves.path.."/deco_plants.lua")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue