mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-08 16:33:58 +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:
parent
7cf5e3cfb9
commit
39b56074ad
44
crafts.lua
44
crafts.lua
@ -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( {
|
||||||
|
BIN
textures/homedecor_oil_extract.png
Normal file
BIN
textures/homedecor_oil_extract.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 383 B |
BIN
textures/homedecor_paraffin.png
Normal file
BIN
textures/homedecor_paraffin.png
Normal file
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 |
Loading…
Reference in New Issue
Block a user