elepower/elepower_dynamics/compat/plastic.lua

62 lines
1.5 KiB
Lua
Raw Normal View History

2018-12-12 13:20:22 +00:00
if minetest.get_modpath("basic_materials") == nil then
minetest.register_craftitem(":basic_materials:oil_extract", {
2018-06-21 08:09:01 +00:00
description = "Oil Extract",
inventory_image = "elepower_oil_extract.png",
})
2018-12-12 13:20:22 +00:00
minetest.register_craftitem(":basic_materials:paraffin", {
2018-06-21 08:09:01 +00:00
description = "Unprocessed Paraffin",
inventory_image = "elepower_paraffin.png",
})
2018-12-12 13:20:22 +00:00
minetest.register_alias("basic_materials:plastic_base", "basic_materials:paraffin")
2018-06-21 08:09:01 +00:00
2018-12-12 13:20:22 +00:00
minetest.register_craftitem(":basic_materials:plastic_sheet", {
2018-06-21 08:09:01 +00:00
description = "Plastic Sheet",
2018-12-12 13:20:22 +00:00
inventory_image = "elepower_plastic_sheet.png",
2018-06-21 08:09:01 +00:00
})
minetest.register_craft({
type = "shapeless",
2018-12-12 13:20:22 +00:00
output = "basic_materials:oil_extract 4",
2018-06-21 08:09:01 +00:00
recipe = {
"group:leaves",
"group:leaves",
"group:leaves",
"group:leaves",
"group:leaves",
"group:leaves"
}
})
minetest.register_craft({
type = "cooking",
2018-12-12 13:20:22 +00:00
output = "basic_materials:paraffin",
recipe = "basic_materials:oil_extract",
2018-06-21 08:09:01 +00:00
})
minetest.register_craft({
type = "cooking",
2018-12-12 13:20:22 +00:00
output = "basic_materials:plastic_sheet",
recipe = "basic_materials:paraffin",
2018-06-21 08:09:01 +00:00
})
minetest.register_craft({
type = "fuel",
2018-12-12 13:20:22 +00:00
recipe = "basic_materials:oil_extract",
2018-06-21 08:09:01 +00:00
burntime = 30,
})
minetest.register_craft({
type = "fuel",
2018-12-12 13:20:22 +00:00
recipe = "basic_materials:paraffin",
2018-06-21 08:09:01 +00:00
burntime = 30,
})
minetest.register_craft({
type = "fuel",
2018-12-12 13:20:22 +00:00
recipe = "basic_materials:plastic_sheet",
2018-06-21 08:09:01 +00:00
burntime = 30,
})
end