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.
This commit is contained in:
Vanessa Ezekowitz 2014-07-28 21:08:49 -04:00
parent 7cf5e3cfb9
commit 39b56074ad
5 changed files with 41 additions and 23 deletions

@ -87,47 +87,65 @@ minetest.register_craft( {
if minetest.get_modpath("homedecor") == nil then if minetest.get_modpath("homedecor") == nil then
minetest.register_craftitem(":homedecor:plastic_sheeting", { minetest.register_craftitem(":homedecor:oil_extract", {
description = "Plastic sheet", description = "Oil extract",
inventory_image = "homedecor_plastic_sheeting.png", inventory_image = "homedecor_oil_extract.png",
}) })
minetest.register_craftitem(":homedecor:plastic_base", { minetest.register_craftitem(":homedecor:paraffin", {
description = "Unprocessed Plastic base", description = "Unprocessed paraffin",
wield_image = "homedecor_plastic_base.png", inventory_image = "homedecor_paraffin.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({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = 'homedecor:plastic_base 4', output = "homedecor:oil_extract 4",
recipe = { "group:leaves", recipe = {
"group:leaves", "group:leaves",
"group:leaves", "group:leaves",
"group:leaves", "group:leaves",
"group:leaves", "group:leaves",
"group:leaves" "group:leaves",
"group:leaves"
} }
}) })
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "homedecor:plastic_sheeting", output = "homedecor:paraffin",
recipe = "homedecor:plastic_base", recipe = "homedecor:oil_extract",
}) })
minetest.register_craft({ minetest.register_craft({
type = 'fuel', type = "cooking",
recipe = 'homedecor:plastic_base', output = "homedecor:plastic_sheeting",
burntime = 30, recipe = "homedecor:paraffin",
}) })
minetest.register_craft({ minetest.register_craft({
type = 'fuel', type = "fuel",
recipe = 'homedecor:plastic_sheeting', recipe = "homedecor:oil_extract",
burntime = 30, burntime = 30,
}) })
minetest.register_craft({
type = "fuel",
recipe = "homedecor:paraffin",
burntime = 30,
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:plastic_sheeting",
burntime = 30,
})
end end
minetest.register_craft( { minetest.register_craft( {

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 569 B