1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-12-26 02:40:23 +01:00

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

View File

@ -87,21 +87,28 @@ minetest.register_craft( {
if minetest.get_modpath("homedecor") == nil then 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", { minetest.register_craftitem(":homedecor:plastic_sheeting", {
description = "Plastic sheet", description = "Plastic sheet",
inventory_image = "homedecor_plastic_sheeting.png", inventory_image = "homedecor_plastic_sheeting.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_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",
@ -110,24 +117,35 @@ if minetest.get_modpath("homedecor") == nil then
} }
}) })
minetest.register_craft({
type = "cooking",
output = "homedecor:paraffin",
recipe = "homedecor:oil_extract",
})
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "homedecor:plastic_sheeting", output = "homedecor:plastic_sheeting",
recipe = "homedecor:plastic_base", recipe = "homedecor:paraffin",
}) })
minetest.register_craft({ minetest.register_craft({
type = 'fuel', type = "fuel",
recipe = 'homedecor:plastic_base', recipe = "homedecor:oil_extract",
burntime = 30, burntime = 30,
}) })
minetest.register_craft({ minetest.register_craft({
type = 'fuel', type = "fuel",
recipe = 'homedecor:plastic_sheeting', recipe = "homedecor:paraffin",
burntime = 30, 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