elepower/elepower_dynamics/compat/basic_materials.lua

127 lines
3.1 KiB
Lua
Raw Normal View History

2018-12-12 14:20:22 +01:00
if minetest.get_modpath("basic_materials") == nil then
2018-12-12 14:46:19 +01:00
--------------
-- PLASTICS --
--------------
2018-12-12 14:20:22 +01:00
minetest.register_craftitem(":basic_materials:oil_extract", {
2018-06-21 10:09:01 +02:00
description = "Oil Extract",
inventory_image = "elepower_oil_extract.png",
})
2018-12-12 14:20:22 +01:00
minetest.register_craftitem(":basic_materials:paraffin", {
2018-06-21 10:09:01 +02:00
description = "Unprocessed Paraffin",
inventory_image = "elepower_paraffin.png",
})
2018-12-12 14:20:22 +01:00
minetest.register_alias("basic_materials:plastic_base", "basic_materials:paraffin")
2018-06-21 10:09:01 +02:00
2018-12-12 14:20:22 +01:00
minetest.register_craftitem(":basic_materials:plastic_sheet", {
2018-06-21 10:09:01 +02:00
description = "Plastic Sheet",
2018-12-12 14:20:22 +01:00
inventory_image = "elepower_plastic_sheet.png",
2018-06-21 10:09:01 +02:00
})
minetest.register_craft({
type = "shapeless",
2018-12-12 14:20:22 +01:00
output = "basic_materials:oil_extract 4",
2018-06-21 10:09:01 +02:00
recipe = {
"group:leaves",
"group:leaves",
"group:leaves",
"group:leaves",
"group:leaves",
"group:leaves"
}
})
minetest.register_craft({
type = "cooking",
2018-12-12 14:20:22 +01:00
output = "basic_materials:paraffin",
recipe = "basic_materials:oil_extract",
2018-06-21 10:09:01 +02:00
})
minetest.register_craft({
type = "cooking",
2018-12-12 14:20:22 +01:00
output = "basic_materials:plastic_sheet",
recipe = "basic_materials:paraffin",
2018-06-21 10:09:01 +02:00
})
minetest.register_craft({
type = "fuel",
2018-12-12 14:20:22 +01:00
recipe = "basic_materials:oil_extract",
2018-06-21 10:09:01 +02:00
burntime = 30,
})
minetest.register_craft({
type = "fuel",
2018-12-12 14:20:22 +01:00
recipe = "basic_materials:paraffin",
2018-06-21 10:09:01 +02:00
burntime = 30,
})
minetest.register_craft({
type = "fuel",
2018-12-12 14:20:22 +01:00
recipe = "basic_materials:plastic_sheet",
2018-06-21 10:09:01 +02:00
burntime = 30,
})
2018-12-12 14:46:19 +01:00
-----------------
-- COPPER WIRE --
-----------------
minetest.register_craftitem(":basic_materials:copper_wire", {
description = "Copper Wire",
inventory_image = "elepower_copper_wire.png",
groups = {copper = 1, wire = 1, component = 1}
})
minetest.register_craft({
output = "basic_materials:copper_wire 8",
recipe = {
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
{"default:copper_ingot", "", "default:copper_ingot"},
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"}
}
})
-----------
-- MOTOR --
-----------
minetest.register_craftitem(":basic_materials:motor", {
description = "Motor",
inventory_image = "elepower_motor.png",
groups = {motor = 1, component = 1}
})
minetest.register_craft({
output = "basic_materials:motor 3",
recipe = {
{"default:steel_ingot", "elepower_dynamics:wound_copper_coil", "default:steel_ingot"},
{"basic_materials:copper_wire", "elepower_dynamics:wound_copper_coil", "basic_materials:copper_wire"},
{"default:steel_ingot", "elepower_dynamics:capacitor", "default:steel_ingot"},
}
})
-------------
-- SILICON --
-------------
minetest.register_craftitem(":basic_materials:silicon", {
description = "Silicon",
inventory_image = "elepower_silicon.png",
groups = {silicon = 1, lump = 1}
})
2018-12-15 23:26:56 +01:00
-----------
-- BRASS --
-----------
minetest.register_craftitem(":basic_materials:brass_ingot", {
description = "Brass Ingot",
inventory_image = "elepower_brass_ingot.png",
groups = {brass = 1, ingot = 1}
})
else
minetest.clear_craft({output = "basic_materials:brass_ingot"})
2018-06-21 10:09:01 +02:00
end