diff options
author | root <root@linuxworks.belug.de> | 2018-03-27 17:14:59 +0200 |
---|---|---|
committer | root <root@linuxworks.belug.de> | 2018-03-27 17:14:59 +0200 |
commit | 2aa100cf593def557e993858d4e5cae62cf66442 (patch) | |
tree | 588cb5c83052d585bbf1cf9e2a92e6c9dc466d6d | |
parent | 455cc2f93c8ec4654dae8ad1b01e5f5abf230e23 (diff) | |
parent | f7451e374f07cfee714422344f0e9b3354758713 (diff) |
Merge https://github.com/h-v-smacker/technic
-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 |