summaryrefslogtreecommitdiff
path: root/crafts.lua
diff options
context:
space:
mode:
authorroot <root@linux-forks.de>2018-11-14 22:41:28 +0100
committerroot <root@linux-forks.de>2018-11-14 22:41:28 +0100
commitb8c0bfb43054554ffdba7e8ce1548ee50ae02c84 (patch)
treedd70300a22dc58c12dd3a90b67386c54e74e24c3 /crafts.lua
parent51e89c90bf50dfab3690cffc9ae4d6e1e58d9a0e (diff)
Revert "Merge branch 'master' of https://github.com/minetest-mods/pipeworks"HEADmaster
This reverts commit 51e89c90bf50dfab3690cffc9ae4d6e1e58d9a0e, reversing changes made to 62a1724635c4dde3bcfb83ae8ac968b102db5989.
Diffstat (limited to 'crafts.lua')
-rw-r--r--crafts.lua85
1 files changed, 85 insertions, 0 deletions
diff --git a/crafts.lua b/crafts.lua
index 9c02da8..2ee5710 100644
--- a/crafts.lua
+++ b/crafts.lua
@@ -85,3 +85,88 @@ minetest.register_craft( {
{ "pipeworks:pipe_1_empty" }
},
})
+
+
+-- Crafting recipes for pneumatic tubes
+
+-- If homedecor is not installed, we need to register its crafting chain for
+-- plastic sheeting so that pipeworks remains compatible with it.
+
+if minetest.get_modpath("homedecor") == nil then
+
+ minetest.register_craftitem(":homedecor:oil_extract", {
+ description = "Oil extract",
+ inventory_image = "homedecor_oil_extract.png",
+ })
+
+ minetest.register_craftitem(":homedecor:paraffin", {
+ description = "Unprocessed paraffin",
+ inventory_image = "homedecor_paraffin.png",
+ })
+
+ minetest.register_alias("homedecor:plastic_base", "homedecor:paraffin")
+
+ minetest.register_craftitem(":homedecor:plastic_sheeting", {
+ description = "Plastic sheet",
+ inventory_image = "homedecor_plastic_sheeting.png",
+ })
+
+ minetest.register_craft({
+ type = "shapeless",
+ output = "homedecor:oil_extract 4",
+ recipe = {
+ "group:leaves",
+ "group:leaves",
+ "group:leaves",
+ "group:leaves",
+ "group:leaves",
+ "group:leaves"
+ }
+ })
+
+ minetest.register_craft({
+ type = "cooking",
+ output = "homedecor:paraffin",
+ recipe = "homedecor:oil_extract",
+ })
+
+ minetest.register_craft({
+ type = "cooking",
+ output = "homedecor:plastic_sheeting",
+ recipe = "homedecor:paraffin",
+ })
+
+ minetest.register_craft({
+ type = "fuel",
+ recipe = "homedecor:oil_extract",
+ burntime = 30,
+ })
+
+ minetest.register_craft({
+ type = "fuel",
+ recipe = "homedecor:paraffin",
+ burntime = 30,
+ })
+
+ minetest.register_craft({
+ type = "fuel",
+ recipe = "homedecor:plastic_sheeting",
+ burntime = 30,
+ })
+end
+
+-- crafting items for creating node breakers
+minetest.register_craftitem("pipeworks:gear", {
+ description = "Gear",
+ inventory_image = "pipeworks_gear.png",
+})
+
+minetest.register_craft( {
+ output = "pipeworks:gear 6",
+ recipe = {
+ { "", "default:steel_ingot", "" },
+ { "default:steel_ingot","default:stone", "default:steel_ingot" },
+ { "", "default:steel_ingot", "" }
+ },
+})
+