summaryrefslogtreecommitdiff
path: root/crafts.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-07-28 21:08:49 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-07-28 21:14:38 -0400
commit39b56074ad450397331511158f47d976a28c14d4 (patch)
tree128809c51bc05cdc518818f27714eb858e49c8f3 /crafts.lua
parent7cf5e3cfb90f75e2ededf280f6ea58b122e8292b (diff)
downloadpipeworks-39b56074ad450397331511158f47d976a28c14d4.tar
pipeworks-39b56074ad450397331511158f47d976a28c14d4.tar.gz
pipeworks-39b56074ad450397331511158f47d976a28c14d4.tar.bz2
pipeworks-39b56074ad450397331511158f47d976a28c14d4.tar.xz
pipeworks-39b56074ad450397331511158f47d976a28c14d4.zip
update pipeworks to use modern homedecor-style crafting chain
craft 6 any leaves -> oil extract, cook oil -> paraffin, cook paraffin -> plastic old "plastic base" is aliased to paraffin.
Diffstat (limited to 'crafts.lua')
-rw-r--r--crafts.lua64
1 files changed, 41 insertions, 23 deletions
diff --git a/crafts.lua b/crafts.lua
index 25bf345..ff875a3 100644
--- a/crafts.lua
+++ b/crafts.lua
@@ -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( {