update pipeworks to use modern homedecor-style crafting chain
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Tue, 29 Jul 2014 01:08:49 +0000 (21:08 -0400)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Tue, 29 Jul 2014 01:14:38 +0000 (21:14 -0400)
craft 6 any leaves -> oil extract, cook oil -> paraffin,
cook paraffin -> plastic

old "plastic base" is aliased to paraffin.

crafts.lua
textures/homedecor_oil_extract.png [new file with mode: 0644]
textures/homedecor_paraffin.png [new file with mode: 0644]
textures/homedecor_plastic_base.png [deleted file]
textures/homedecor_plastic_base_inv.png [deleted file]

index 25bf3452135efc451aa5cf6ab0d82e1621020c4d..ff875a36260e4e80ff29911eecf007d6ffe1008f 100644 (file)
@@ -87,47 +87,65 @@ minetest.register_craft( {
 
 if minetest.get_modpath("homedecor") == nil then
 
-       minetest.register_craftitem(":homedecor:plastic_sheeting", {
-               description = "Plastic sheet",
-               inventory_image = "homedecor_plastic_sheeting.png",
+       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_craftitem(":homedecor:plastic_base", {
-               description = "Unprocessed Plastic base",
-               wield_image = "homedecor_plastic_base.png",
-               inventory_image = "homedecor_plastic_base_inv.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:plastic_base 4',
-               recipe = { "group:leaves",
-                          "group:leaves",
-                          "group:leaves",
-                          "group:leaves",
-                          "group:leaves",
-                          "group:leaves"
+               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:plastic_sheeting",
-               recipe = "homedecor:plastic_base",
+                   type = "cooking",
+                   output = "homedecor:paraffin",
+                   recipe = "homedecor:oil_extract",
        })
 
        minetest.register_craft({
-               type = 'fuel',
-               recipe = 'homedecor:plastic_base',
-               burntime = 30,
+                   type = "cooking",
+                   output = "homedecor:plastic_sheeting",
+                   recipe = "homedecor:paraffin",
        })
 
        minetest.register_craft({
-               type = 'fuel',
-               recipe = 'homedecor:plastic_sheeting',
-               burntime = 30,
+                   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
 
 minetest.register_craft( {
diff --git a/textures/homedecor_oil_extract.png b/textures/homedecor_oil_extract.png
new file mode 100644 (file)
index 0000000..ef0f896
Binary files /dev/null and b/textures/homedecor_oil_extract.png differ
diff --git a/textures/homedecor_paraffin.png b/textures/homedecor_paraffin.png
new file mode 100644 (file)
index 0000000..5f98300
Binary files /dev/null and b/textures/homedecor_paraffin.png differ
diff --git a/textures/homedecor_plastic_base.png b/textures/homedecor_plastic_base.png
deleted file mode 100644 (file)
index 0175da3..0000000
Binary files a/textures/homedecor_plastic_base.png and /dev/null differ
diff --git a/textures/homedecor_plastic_base_inv.png b/textures/homedecor_plastic_base_inv.png
deleted file mode 100644 (file)
index 1a01709..0000000
Binary files a/textures/homedecor_plastic_base_inv.png and /dev/null differ