
local S = technic.getter
local mat = technic.materials

minetest.register_alias("compressor", "technic:lv_compressor")

minetest.register_craft({
	output = 'technic:lv_compressor',
	recipe = {
		{mat.stone,            'basic_materials:motor',          mat.stone},
		{'mesecons:piston',          'technic:machine_casing', 'mesecons:piston'},
		{'basic_materials:silver_wire', 'technic:lv_cable',       'basic_materials:silver_wire'},
	},
	replacements = {
		{"basic_materials:silver_wire", "basic_materials:empty_spool"},
		{"basic_materials:silver_wire", "basic_materials:empty_spool"}
	},
})

technic.register_base_machine("technic:lv_compressor", {
	typename = "compressing",
	description = S("@1 Compressor", S("LV")),
	tier = "LV",
	demand = {300},
	speed = 1
})
