diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2015-01-25 22:19:46 -0800 |
---|---|---|
committer | Auke Kok <auke-jan.h.kok@intel.com> | 2015-01-25 22:19:46 -0800 |
commit | abdb71452fae4d8251b0d1c8768c5ae2b7756d3f (patch) | |
tree | d98925ef8454deff321ff6991d31e736419620c2 /nodes.lua | |
parent | 8ef590bad26cdb3fb8dd0c4b45fa0619976965a8 (diff) |
Convert material props to table. Add some non-default nodes as well.
Diffstat (limited to 'nodes.lua')
-rw-r--r-- | nodes.lua | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/nodes.lua b/nodes.lua new file mode 100644 index 0000000..a96ed8b --- /dev/null +++ b/nodes.lua @@ -0,0 +1,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" }}, +} + |