diff options
author | root <root@linuxworks.belug.de> | 2018-04-08 11:48:26 +0200 |
---|---|---|
committer | root <root@linuxworks.belug.de> | 2018-04-08 11:48:26 +0200 |
commit | 5b6703ac70e4b2d41669a2ee5185c8e9382b44c9 (patch) | |
tree | 883c1daf0c3d6fc9bb5cce091d243c87bd2964fe /extranodes/init.lua | |
parent | af8767dd8631a3774988305b01315a772e72fce4 (diff) | |
parent | b857aed8ad03e8fec3ccfbcc65935a8bde660392 (diff) |
Merge https://github.com/h-v-smacker/technic
Diffstat (limited to 'extranodes/init.lua')
-rw-r--r-- | extranodes/init.lua | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/extranodes/init.lua b/extranodes/init.lua index 0ae99c8..8ef074d 100644 --- a/extranodes/init.lua +++ b/extranodes/init.lua @@ -206,5 +206,55 @@ minetest.register_craft({ recipe = "technic:graphite" }) +-- Cotton seed oil: fuel and fertilizer + +if minetest.get_modpath("farming") then + if minetest.get_modpath("bonemeal") then + minetest.register_craftitem(":technic:cottonseed_oil", { + description = S("Cottonseed Oil"), + inventory_image = "technic_cottonseed_oil.png", + on_use = function(itemstack, user, pointed_thing) + if pointed_thing.type ~= "node" then + return + end + if minetest.is_protected(pointed_thing.under, user:get_player_name()) then + return + end + if not is_creative(user:get_player_name()) then + itemstack:take_item() + end + bonemeal:on_use(pointed_thing.under, 4) + return itemstack + end, + }) + else + minetest.register_craftitem(":technic:cottonseed_oil", { + description = S("Cottonseed Oil"), + inventory_image = "technic_cottonseed_oil.png", + }) + end + + minetest.register_craft({ + type = "fuel", + recipe = "technic:cottonseed_oil", + burntime = 20, + }) + +end + + +-- -- Additional recipe for straw blocks out of straw mat from cottages (if present) +-- -- not to let the centifuge output go to waste, since farming:straw can be used with a saw... +-- +-- if minetest.get_modpath("cottages") and minetest.get_modpath("farming") then +-- minetest.register_craft({ +-- output = "farming:straw 2", +-- recipe = { +-- { "cottages:straw_mat", "cottages:straw_mat", "cottages:straw_mat" }, +-- { "cottages:straw_mat", "cottages:straw_mat", "cottages:straw_mat" }, +-- { "cottages:straw_mat", "cottages:straw_mat", "cottages:straw_mat" }, +-- } +-- }) +-- end |