diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-03-27 18:10:53 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-03-27 18:10:53 +0300 |
commit | f7451e374f07cfee714422344f0e9b3354758713 (patch) | |
tree | ff2a0266c26c768fd9ccffa86cae7172018e984e | |
parent | 83de6917ba097a22410982bb60d9ca16cd40c11e (diff) |
added rubber leaves → charcoal compression
-rw-r--r-- | technic/machines/register/compressor_recipes.lua | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/technic/machines/register/compressor_recipes.lua b/technic/machines/register/compressor_recipes.lua index c40530f..8f8358f 100644 --- a/technic/machines/register/compressor_recipes.lua +++ b/technic/machines/register/compressor_recipes.lua @@ -22,14 +22,15 @@ local recipes = { } --- compressing most copious leaves into more compact fuel --- this conversion is based on the burn time (1 vs. 10) + some overhead -table.insert(recipes, {"default:acacia_leaves 15", "ethereal:charcoal_lump 1"}) -table.insert(recipes, {"default:aspen_leaves 15", "ethereal:charcoal_lump 1"}) -table.insert(recipes, {"default:leaves 15", "ethereal:charcoal_lump 1"}) -table.insert(recipes, {"default:jungleleaves 15", "ethereal:charcoal_lump 1"}) - if minetest.get_modpath("ethereal") then + + -- compressing most copious leaves into more compact fuel + -- this conversion is based on the burn time (1 vs. 10) + some overhead + table.insert(recipes, {"default:acacia_leaves 15", "ethereal:charcoal_lump 1"}) + table.insert(recipes, {"default:aspen_leaves 15", "ethereal:charcoal_lump 1"}) + table.insert(recipes, {"default:leaves 15", "ethereal:charcoal_lump 1"}) + table.insert(recipes, {"default:jungleleaves 15", "ethereal:charcoal_lump 1"}) + -- the density of charcoal is ~1/10 of coal, otherwise it's pure carbon table.insert(recipes, {"ethereal:charcoal_lump 10", "default:coal_lump 1"}) -- + some leaves which are most often left over in large amounts @@ -40,6 +41,11 @@ if minetest.get_modpath("ethereal") then table.insert(recipes, {"ethereal:birch_leaves 15", "ethereal:charcoal_lump 1"}) table.insert(recipes, {"ethereal:bamboo_leaves 15", "ethereal:charcoal_lump 1"}) table.insert(recipes, {"ethereal:orange_leaves 15", "ethereal:charcoal_lump 1"}) + + if minetest.get_modpath("technic_worldgen") or minetest.get_modpath("moretrees") then + table.insert(recipes, {"moretrees:rubber_tree_leaves 15", "ethereal:charcoal_lump 1"}) + end + end @@ -52,6 +58,7 @@ minetest.clear_craft({ }, }) + for _, data in pairs(recipes) do technic.register_compressor_recipe({input = {data[1]}, output = data[2]}) end |