2021-05-16 18:01:50 +02:00
|
|
|
-- Translation support
|
|
|
|
local S = minetest.get_translator("basic_materials")
|
|
|
|
|
2019-12-14 17:47:31 +01:00
|
|
|
-- items
|
|
|
|
|
|
|
|
minetest.register_craftitem("basic_materials:plastic_sheet", {
|
2021-05-16 18:01:50 +02:00
|
|
|
description = S("Plastic sheet"),
|
2019-12-14 17:47:31 +01:00
|
|
|
inventory_image = "basic_materials_plastic_sheet.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("basic_materials:plastic_strip", {
|
2021-05-16 18:01:50 +02:00
|
|
|
description = S("Plastic strips"),
|
|
|
|
groups = { strip = 1 },
|
2019-12-14 17:47:31 +01:00
|
|
|
inventory_image = "basic_materials_plastic_strip.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("basic_materials:empty_spool", {
|
2021-05-16 18:01:50 +02:00
|
|
|
description = S("Empty wire spool"),
|
2019-12-14 17:47:31 +01:00
|
|
|
inventory_image = "basic_materials_empty_spool.png"
|
|
|
|
})
|
|
|
|
|
|
|
|
-- crafts
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "basic_materials:plastic_sheet",
|
|
|
|
recipe = "basic_materials:paraffin",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "basic_materials:plastic_sheet",
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "basic_materials:plastic_strip 9",
|
|
|
|
recipe = {
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "basic_materials:empty_spool 3",
|
|
|
|
recipe = {
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
|
|
|
|
{ "", "basic_materials:plastic_sheet", "" },
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- aliases
|
|
|
|
|
|
|
|
minetest.register_alias("homedecor:plastic_sheeting", "basic_materials:plastic_sheet")
|
|
|
|
minetest.register_alias("homedecor:plastic_strips", "basic_materials:plastic_strip")
|
|
|
|
minetest.register_alias("homedecor:empty_spool", "basic_materials:empty_spool")
|