mirror of
https://github.com/Gael-de-Sailly/30-biomes.git
synced 2024-12-22 17:00:34 +01:00
Added 'riverbed' field to biomes.csv to use the riverbed nodes
This commit is contained in:
parent
de433548dd
commit
b1083a27b7
120
biomes.csv
120
biomes.csv
@ -1,60 +1,60 @@
|
|||||||
#Open this file with a spreadsheet software,,,,,,,,,,
|
#Open this file with a spreadsheet software,,,,,,,,,,,
|
||||||
#Use a leading '#' to disable a line,,,,,,,,,,
|
#Use a leading '#' to disable a line,,,,,,,,,,,
|
||||||
#Blank cells are ignored,,,,,,,,,,
|
#Blank cells are ignored,,,,,,,,,,,
|
||||||
,,,,,,,,,,
|
,,,,,,,,,,,
|
||||||
#Name,Stone,Fill,Top,Dust,Sea,River,Elev_min,Elev_max,Heat,Humidity
|
#Name,Stone,Fill,Top,Dust,Sea,River,Riverbed,Elev_min,Elev_max,Heat,Humidity
|
||||||
,,,,,,,,,,
|
,,,,,,,,,,,
|
||||||
#Main biomes,,,,,,,,,,
|
#Main biomes,,,,,,,,,,,
|
||||||
glacier_1,default:stone,,default:ice 2,default:snowblock,default:ice 2,default:ice,-6,31000,-11,20
|
glacier_1,default:stone,,default:ice 2,default:snowblock,default:ice 2,default:ice,,-6,31000,-11,20
|
||||||
glacier_2,default:stone,default:ice 4,default:snowblock 3,default:snowblock,default:ice 6,default:ice,1,31000,-19,40
|
glacier_2,default:stone,default:ice 4,default:snowblock 3,default:snowblock,default:ice 6,default:ice,,1,31000,-19,40
|
||||||
glacier_3,default:stone,default:ice 12,default:snowblock 5,default:snowblock,default:ice 10,default:ice,1,31000,-27,80
|
glacier_3,default:stone,default:ice 12,default:snowblock 5,default:snowblock,default:ice 10,default:ice,,1,31000,-27,80
|
||||||
taiga,default:stone,default:dirt 5,default:dirt_with_snow,default:snow,,,4,31000,11,67
|
taiga,default:stone,default:dirt 5,default:dirt_with_snow,default:snow,,,default:gravel,4,31000,11,67
|
||||||
tundra,default:stone,default:dirt 2,default:dirt_with_snow,,,,3,31000,4,32
|
tundra,default:stone,default:dirt 2,default:dirt_with_snow,,,,,3,31000,4,32
|
||||||
coniferous_forest,default:stone,default:dirt 2,default:dirt_with_grass,,,,5,31000,22,71
|
coniferous_forest,default:stone,default:dirt 2,default:dirt_with_grass,,,,default:gravel,5,31000,22,71
|
||||||
cold_gravel_desert,default:stone,default:gravel,default:gravel,default:snow,,,-6,31000,-2,2
|
cold_gravel_desert,default:stone,default:gravel,default:gravel,default:snow,,,default:gravel,-6,31000,-2,2
|
||||||
gravel_desert,default:stone,default:gravel 2,default:gravel,,,,2,31000,20,-2
|
gravel_desert,default:stone,default:gravel 2,default:gravel,,,,default:gravel 2,2,31000,20,-2
|
||||||
dry_tundra,default:stone,default:dirt 2,default:dirt_with_snow,,,,2,31000,4,12
|
dry_tundra,default:stone,default:dirt 2,default:dirt_with_snow,,,,,2,31000,4,12
|
||||||
cold_desert,default:stone,,,,,,3,31000,32,-3
|
cold_desert,default:stone,,,,,,default:gravel,3,31000,32,-3
|
||||||
swamp,default:stone,default:dirt 3,default:dirt_with_grass,,,,1,31000,30,114
|
swamp,default:stone,default:dirt 3,default:dirt_with_grass,,,,biomes:mud 2,1,31000,30,114
|
||||||
icy_swamp,default:stone,default:dirt 3,default:dirt_with_snow,default:snow,default:ice,default:ice,1,31000,-10,107
|
icy_swamp,default:stone,default:dirt 3,default:dirt_with_snow,default:snow,default:ice,default:ice,biomes:mud 2,1,31000,-10,107
|
||||||
stone_grasslands,default:stone,default:dirt,default:dirt_with_grass,,,,4,31000,29,22
|
stone_grasslands,default:stone,default:dirt,default:dirt_with_grass,,,,default:sand,4,31000,29,22
|
||||||
mixed_forest,default:stone,default:dirt 2,default:dirt_with_grass,,,,5,31000,24,56
|
mixed_forest,default:stone,default:dirt 2,default:dirt_with_grass,,,,default:dirt 2,5,31000,24,56
|
||||||
cold_deciduous_forest,default:stone,default:dirt 2,default:dirt_with_grass,,,,4,31000,31,48
|
cold_deciduous_forest,default:stone,default:dirt 2,default:dirt_with_grass,,,,default:dirt 2,4,31000,31,48
|
||||||
deciduous_forest,default:stone,default:dirt 3,default:dirt_with_grass,,,,5,31000,45,65
|
deciduous_forest,default:stone,default:dirt 3,default:dirt_with_grass,,,,default:dirt 3,5,31000,45,65
|
||||||
bushes,default:stone,default:dirt,default:dirt_with_grass,,,,7,31000,43,30
|
bushes,default:stone,default:dirt,default:dirt_with_grass,,,,default:sand,7,31000,43,30
|
||||||
scrub,default:stone,default:dirt,default:dirt_with_dry_grass,,,,8,31000,57,25
|
scrub,default:stone,default:dirt,default:dirt_with_dry_grass,,,,default:sand,8,31000,57,25
|
||||||
hot_pine_forest,default:stone,default:dirt,default:dirt_with_grass,,,,6,31000,65,35
|
hot_pine_forest,default:stone,default:dirt,default:dirt_with_grass,,,,default:gravel,6,31000,65,35
|
||||||
desert,default:desert_stone,default:desert_sand 3,default:desert_sand,,,,7,31000,89,9
|
desert,default:desert_stone,default:desert_sand 3,default:desert_sand,,,,default:sand 3,7,31000,89,9
|
||||||
sandstone_grasslands,default:sandstone,default:dirt 2,default:dirt_with_grass,,,,3,31000,55,15
|
sandstone_grasslands,default:sandstone,default:dirt 2,default:dirt_with_grass,,,,default:dirt 2,3,31000,55,15
|
||||||
savanna,default:stone,default:dirt,default:dirt_with_dry_grass,,,,6,31000,80,24
|
savanna,default:stone,default:dirt,default:dirt_with_dry_grass,,,,default:sand 2,6,31000,80,24
|
||||||
desert_stone_grasslands,default:desert_stone,default:dirt,default:dirt_with_grass,,,,4,31000,90,41
|
desert_stone_grasslands,default:desert_stone,default:dirt,default:dirt_with_grass,,,,default:sand 2,4,31000,90,41
|
||||||
red_savanna,default:desert_stone,default:dirt,default:dirt_with_dry_grass,,,,5,31000,90,31
|
red_savanna,default:desert_stone,default:dirt,default:dirt_with_dry_grass,,,,default:sand 2,5,31000,90,31
|
||||||
semi-tropical_forest,default:stone,default:dirt 3,default:dirt_with_grass,,,,4,31000,72,61
|
semi-tropical_forest,default:stone,default:dirt 3,default:dirt_with_grass,,,,default:dirt 3,4,31000,72,61
|
||||||
rainforest,default:stone,default:dirt 4,default:dirt_with_grass,,,,1,31000,89,76
|
rainforest,default:stone,default:dirt 4,default:dirt_with_grass,,,,default:dirt 3,1,31000,89,76
|
||||||
sandstone_desert,default:sandstone,default:desert_sand,default:desert_sand,,,,6,31000,60,0
|
sandstone_desert,default:sandstone,default:desert_sand,default:desert_sand,,,,default:sand 2,6,31000,60,0
|
||||||
orchard,default:stone,default:dirt 2,default:dirt_with_grass,,,,6,31000,40,40
|
orchard,default:stone,default:dirt 2,default:dirt_with_grass,,,,default:dirt,6,31000,40,40
|
||||||
hot_deciduous_forest,default:stone,default:dirt 2,default:dirt_with_grass,,,,5,31000,61,58
|
hot_deciduous_forest,default:stone,default:dirt 2,default:dirt_with_grass,,,,default:dirt 3,5,31000,61,58
|
||||||
hot_swamp,default:stone,default:dirt 4,default:dirt_with_grass,,,,1,31000,83,116
|
hot_swamp,default:stone,default:dirt 4,default:dirt_with_grass,,,,biomes:mud 3,1,31000,83,116
|
||||||
,,,,,,,,,,
|
,,,,,,,,,,,
|
||||||
#Beach biomes,,,,,,,,,,
|
#Beach biomes,,,,,,,,,,,
|
||||||
gravel_beach,default:stone,default:gravel 3,default:gravel,,,,-7,6,19,19
|
gravel_beach,default:stone,default:gravel 3,default:gravel,,,,default:gravel 3,-7,6,19,19
|
||||||
sand_dunes,default:stone,default:sand 3,default:sand,,,,-5,5,21,61
|
sand_dunes,default:stone,default:sand 3,default:sand,,,,default:sand 4,-5,5,21,61
|
||||||
mangrove,default:stone,default:dirt 4,default:dirt,,,,-4,0,96,106
|
mangrove,default:stone,default:dirt 4,default:dirt,,,,default:dirt 5,-4,0,96,106
|
||||||
desert_dunes,default:stone,default:sand 2,deault:sand,,,,-5,6,70,6
|
desert_dunes,default:stone,default:sand 2,deault:sand,,,,default:sand 3,-5,6,70,6
|
||||||
hot_sand_dunes,default:stone,default:sand 3,default:sand,,,,-5,5,106,49
|
hot_sand_dunes,default:stone,default:sand 3,default:sand,,,,default:sand 3,-5,5,106,49
|
||||||
tundra_dunes,default:stone,default:gravel,default:sand 2,default:snow,,,-5,2,5,21
|
tundra_dunes,default:stone,default:gravel,default:sand 2,default:snow,,,default:gravel,-5,2,5,21
|
||||||
,,,,,,,,,,
|
,,,,,,,,,,,
|
||||||
glacier_2_shore,default:stone,,default:ice 4,default:snowblock,default:ice 6,default:ice,-4,0,-19,40
|
glacier_2_shore,default:stone,,default:ice 4,default:snowblock,default:ice 6,default:ice,,-4,0,-19,40
|
||||||
glacier_3_shore,default:stone,,default:ice 12,default:snowblock,default:ice 6,default:ice,-4,0,-27,80
|
glacier_3_shore,default:stone,,default:ice 12,default:snowblock,default:ice 6,default:ice,,-4,0,-27,80
|
||||||
swamp_shore,default:stone,default:dirt 3,default:dirt,,,,-3,0,30,114
|
swamp_shore,default:stone,default:dirt 3,default:dirt,,,,biomes:mud 3,-3,0,30,114
|
||||||
icy_swamp_shore,default:stone,default:dirt 4,default:dirt 3,default:snow,default:ice,default:ice,-4,0,-10,107
|
icy_swamp_shore,default:stone,default:dirt 4,default:dirt 3,default:snow,default:ice,default:ice,biomes:mud 3,-4,0,-10,107
|
||||||
hot_swamp_shore,default:stone,default:dirt 4,default:dirt,,,,-3,0,83,116
|
hot_swamp_shore,default:stone,default:dirt 4,default:dirt,,,,biomes:mud 3,-3,0,83,116
|
||||||
,,,,,,,,,,
|
,,,,,,,,,,,
|
||||||
#Sea biomes,,,,,,,,,,
|
#Sea biomes,,,,,,,,,,,
|
||||||
pack_ice,default:stone,,default:gravel,default:snow,default:ice 5,default:ice,-112,-6,-24,41
|
pack_ice,default:stone,,default:gravel,default:snow,default:ice 5,default:ice,,-112,-6,-24,41
|
||||||
cold_sea,default:stone,,default:gravel 2,,,,-112,-6,20,47
|
cold_sea,default:stone,,default:gravel 2,,,,,-112,-6,20,47
|
||||||
tempered_sea,default:stone,,default:sand 2,,,,-112,-6,41,48
|
tempered_sea,default:stone,,default:sand 2,,,,,-112,-6,41,48
|
||||||
warm_sea,default:stone,default:sand 2,default:sand,,,,-112,-6,89,51
|
warm_sea,default:stone,default:sand 2,default:sand,,,,,-112,-6,89,51
|
||||||
,,,,,,,,,,
|
,,,,,,,,,,,
|
||||||
#Underground,,,,,,,,,,
|
#Underground,,,,,,,,,,,
|
||||||
underground,default:stone,,,,,,-31000,-113,50,50
|
underground,default:stone,,,,,,,-31000,-113,50,50
|
||||||
|
|
8
init.lua
8
init.lua
@ -22,7 +22,7 @@ minetest.register_node("biomes:mud", {
|
|||||||
local file = io.open(path .. "/biomes.csv", "r")
|
local file = io.open(path .. "/biomes.csv", "r")
|
||||||
for line in file:lines() do
|
for line in file:lines() do
|
||||||
local attribs = line:split(",", true)
|
local attribs = line:split(",", true)
|
||||||
local name, stone, fill, top, dust, sea, river, ymin, ymax, heat, humidity = unpack(attribs)
|
local name, stone, fill, top, dust, sea, river, riverbed, ymin, ymax, heat, humidity = unpack(attribs)
|
||||||
|
|
||||||
if #name > 0 and name:sub(1,1) ~= "#" then
|
if #name > 0 and name:sub(1,1) ~= "#" then
|
||||||
-- Register biome
|
-- Register biome
|
||||||
@ -58,6 +58,12 @@ for line in file:lines() do
|
|||||||
biome.node_river_water = river
|
biome.node_river_water = river
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if riverbed and #riverbed > 0 then
|
||||||
|
riverbed = riverbed:split("%s", false, 1, true)
|
||||||
|
biome.node_riverbed = riverbed[1]
|
||||||
|
biome.depth_riverbed = tonumber(riverbed[2] or 1)
|
||||||
|
end
|
||||||
|
|
||||||
biome.y_min = tonumber(ymin) or -31000
|
biome.y_min = tonumber(ymin) or -31000
|
||||||
biome.y_max = tonumber(ymax) or 31000
|
biome.y_max = tonumber(ymax) or 31000
|
||||||
biome.heat_point = tonumber(heat) or 50
|
biome.heat_point = tonumber(heat) or 50
|
||||||
|
Loading…
Reference in New Issue
Block a user