summaryrefslogtreecommitdiff
path: root/nodes.lua
blob: a96ed8bd726e2aa5d0219f8bc3df3fceb84d00b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87

-- material properties table

-- h = probability of degradation (hardness) into lower quality material
-- r = probability of displacement (resistance) to a lower elevation
-- t = list of target materials, first one is default, others will be picked based on surroundings

return {
	-- default game materials
	["default:dirt"]
		= { h = 1.0, r = 1.0, t = { "default:sand", "default:desert_sand" }},
	["default:dirt_with_grass"]
		= { h = 1.0, r = 1.0, t = { "default:dirt" }},
	["default:dirt_with_grass_footsteps"]
		= { h = 1.0, r = 1.0, t = { "default:dirt" }},
	["default:dirt_with_snow"]
		= { h = 1.0, r = 1.0, t = { "default:dirt" }},
	["default:sand"]
		= { h = 0.01, r = 1.0, t = { "default:clay" }},
	["default:desert_sand"]
		= { h = 0.01, r = 1.0, t = { "default:clay" }},
	["default:gravel"]
		= { h = 0.15, r = 0.7, t = { "default:dirt" }},
	["default:clay"]
		= { h = 0.0, r = 0.3, t = { "default:clay" }},
	["default:sandstone"]
		= { h = 0.05, r = 0.05, t = { "default:gravel" }},
	["default:cobble"]
		= { h = 0.05, r = 0.05, t = { "default:gravel" }},
	["default:mossycobble"]
		= { h = 0.05, r = 0.05, t = { "default:gravel" }},
	["default:desert_cobble"]
		= { h = 0.05, r = 0.05, t = { "default:gravel" }},
	["default:desert_stone"]
		= { h = 0.01, r = 0.01, t = { "default:desert_cobble" }},
	["default:stone"]
		= { h = 0.01, r = 0.01, t = { "default:cobblestone", "default:desert_cobble" }},
	["default:stone_with_coal"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
	["default:stone_with_iron"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
	["default:stone_with_copper"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
	["default:stone_with_gold"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
	["default:stone_with_mese"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
	["default:stone_with_diamond"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},

	-- mg
	["mg:dirt_with_dry_grass"]
		= { h = 1.0, r = 1.0, t = { "default:dirt" }},

	-- woodsoils
	["woodsoils:dirt_with_leaves_1"]
		= { h = 1.0, r = 1.0, t = { "default:dirt" }},
	["woodsoils:dirt_with_leaves_2"]
		= { h = 1.0, r = 1.0, t = { "woodsoils:dirt_with_leaves_1" }},
	["woodsoils:grass_with_leaves_1"]
		= { h = 1.0, r = 1.0, t = { "woodsoils:dirt_with_leaves_2" }},
	["woodsoils:grass_with_leaves_2"]
		= { h = 1.0, r = 1.0, t = { "woodsoils:grass_with_leaves_1" }},

	-- dryplants
	["dryplants:grass_short"]
		= { h = 1.0, r = 1.0, t = { "default:dirt" }},

	-- moreores
	["moreores:mineral_mithril"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
	["moreores:mineral_silver"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
	["moreores:mineral_tin"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
	["moreores:mineral_tin"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},

	-- technic
	["technic:mineral_chromium"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
	["technic:mineral_uranium"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
	["technic:mineral_zinc"]
		= { h = 0.0001, r = 0.01, t = { "default:stone", "default:desert_stone" }},
}