1
0
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:
Gael-de-Sailly 2016-06-15 17:35:13 +02:00
parent de433548dd
commit b1083a27b7
2 changed files with 67 additions and 61 deletions

View File

@ -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

1 #Open this file with a spreadsheet software
2 #Use a leading '#' to disable a line
3 #Blank cells are ignored
4
5 #Name Stone Fill Top Dust Sea River Elev_min Riverbed Elev_max Elev_min Heat Elev_max Humidity Heat Humidity
6
7 #Main biomes
8 glacier_1 default:stone default:ice 2 default:snowblock default:ice 2 default:ice -6 31000 -6 -11 31000 20 -11 20
9 glacier_2 default:stone default:ice 4 default:snowblock 3 default:snowblock default:ice 6 default:ice 1 31000 1 -19 31000 40 -19 40
10 glacier_3 default:stone default:ice 12 default:snowblock 5 default:snowblock default:ice 10 default:ice 1 31000 1 -27 31000 80 -27 80
11 taiga default:stone default:dirt 5 default:dirt_with_snow default:snow 4 default:gravel 31000 4 11 31000 67 11 67
12 tundra default:stone default:dirt 2 default:dirt_with_snow 3 31000 3 4 31000 32 4 32
13 coniferous_forest default:stone default:dirt 2 default:dirt_with_grass 5 default:gravel 31000 5 22 31000 71 22 71
14 cold_gravel_desert default:stone default:gravel default:gravel default:snow -6 default:gravel 31000 -6 -2 31000 2 -2 2
15 gravel_desert default:stone default:gravel 2 default:gravel 2 default:gravel 2 31000 2 20 31000 -2 20 -2
16 dry_tundra default:stone default:dirt 2 default:dirt_with_snow 2 31000 2 4 31000 12 4 12
17 cold_desert default:stone 3 default:gravel 31000 3 32 31000 -3 32 -3
18 swamp default:stone default:dirt 3 default:dirt_with_grass 1 biomes:mud 2 31000 1 30 31000 114 30 114
19 icy_swamp default:stone default:dirt 3 default:dirt_with_snow default:snow default:ice default:ice 1 biomes:mud 2 31000 1 -10 31000 107 -10 107
20 stone_grasslands default:stone default:dirt default:dirt_with_grass 4 default:sand 31000 4 29 31000 22 29 22
21 mixed_forest default:stone default:dirt 2 default:dirt_with_grass 5 default:dirt 2 31000 5 24 31000 56 24 56
22 cold_deciduous_forest default:stone default:dirt 2 default:dirt_with_grass 4 default:dirt 2 31000 4 31 31000 48 31 48
23 deciduous_forest default:stone default:dirt 3 default:dirt_with_grass 5 default:dirt 3 31000 5 45 31000 65 45 65
24 bushes default:stone default:dirt default:dirt_with_grass 7 default:sand 31000 7 43 31000 30 43 30
25 scrub default:stone default:dirt default:dirt_with_dry_grass 8 default:sand 31000 8 57 31000 25 57 25
26 hot_pine_forest default:stone default:dirt default:dirt_with_grass 6 default:gravel 31000 6 65 31000 35 65 35
27 desert default:desert_stone default:desert_sand 3 default:desert_sand 7 default:sand 3 31000 7 89 31000 9 89 9
28 sandstone_grasslands default:sandstone default:dirt 2 default:dirt_with_grass 3 default:dirt 2 31000 3 55 31000 15 55 15
29 savanna default:stone default:dirt default:dirt_with_dry_grass 6 default:sand 2 31000 6 80 31000 24 80 24
30 desert_stone_grasslands default:desert_stone default:dirt default:dirt_with_grass 4 default:sand 2 31000 4 90 31000 41 90 41
31 red_savanna default:desert_stone default:dirt default:dirt_with_dry_grass 5 default:sand 2 31000 5 90 31000 31 90 31
32 semi-tropical_forest default:stone default:dirt 3 default:dirt_with_grass 4 default:dirt 3 31000 4 72 31000 61 72 61
33 rainforest default:stone default:dirt 4 default:dirt_with_grass 1 default:dirt 3 31000 1 89 31000 76 89 76
34 sandstone_desert default:sandstone default:desert_sand default:desert_sand 6 default:sand 2 31000 6 60 31000 0 60 0
35 orchard default:stone default:dirt 2 default:dirt_with_grass 6 default:dirt 31000 6 40 31000 40 40
36 hot_deciduous_forest default:stone default:dirt 2 default:dirt_with_grass 5 default:dirt 3 31000 5 61 31000 58 61 58
37 hot_swamp default:stone default:dirt 4 default:dirt_with_grass 1 biomes:mud 3 31000 1 83 31000 116 83 116
38
39 #Beach biomes
40 gravel_beach default:stone default:gravel 3 default:gravel -7 default:gravel 3 6 -7 19 6 19 19
41 sand_dunes default:stone default:sand 3 default:sand -5 default:sand 4 5 -5 21 5 61 21 61
42 mangrove default:stone default:dirt 4 default:dirt -4 default:dirt 5 0 -4 96 0 106 96 106
43 desert_dunes default:stone default:sand 2 deault:sand -5 default:sand 3 6 -5 70 6 6 70 6
44 hot_sand_dunes default:stone default:sand 3 default:sand -5 default:sand 3 5 -5 106 5 49 106 49
45 tundra_dunes default:stone default:gravel default:sand 2 default:snow -5 default:gravel 2 -5 5 2 21 5 21
46
47 glacier_2_shore default:stone default:ice 4 default:snowblock default:ice 6 default:ice -4 0 -4 -19 0 40 -19 40
48 glacier_3_shore default:stone default:ice 12 default:snowblock default:ice 6 default:ice -4 0 -4 -27 0 80 -27 80
49 swamp_shore default:stone default:dirt 3 default:dirt -3 biomes:mud 3 0 -3 30 0 114 30 114
50 icy_swamp_shore default:stone default:dirt 4 default:dirt 3 default:snow default:ice default:ice -4 biomes:mud 3 0 -4 -10 0 107 -10 107
51 hot_swamp_shore default:stone default:dirt 4 default:dirt -3 biomes:mud 3 0 -3 83 0 116 83 116
52
53 #Sea biomes
54 pack_ice default:stone default:gravel default:snow default:ice 5 default:ice -112 -6 -112 -24 -6 41 -24 41
55 cold_sea default:stone default:gravel 2 -112 -6 -112 20 -6 47 20 47
56 tempered_sea default:stone default:sand 2 -112 -6 -112 41 -6 48 41 48
57 warm_sea default:stone default:sand 2 default:sand -112 -6 -112 89 -6 51 89 51
58
59 #Underground
60 underground default:stone -31000 -113 -31000 50 -113 50 50

View File

@ -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