local lib = starlit.mod.lib
local E = starlit.mod.electronics
local B = starlit.mod.building

B.part.link('starlit_building:battery_box', {
	name = 'Battery Box';
	desc = 'A receptacle for a battery.';
	img = 'starlit-item-battery-box.png';
	fab = starlit.type.fab {
		element = {
			copper = 5;
			aluminum = 10;
		};
		cost = {power = 300};
		flag = {print=true};
		time = {print=10};
	};
	mass = 15;
	rarity = 1;
})

B.part.link('starlit_building:electrode', {
	name = 'Electrode';
	desc = 'An electrical conductor used to make contact with a nonmetallic circuit component.';
	img = 'starlit-item-electrode.png';
	fab = starlit.type.fab {
		element = {
			copper = 1;
			aluminum = 1;
		};
		cost = {power = 150};
		flag = {print=true};
		time = {print=5};
	};
	mass = 2;
	rarity = 1;
})

B.part.link('starlit_building:heating_element', {
	name = 'Heating Element';
	desc = 'An extremely inefficient conductor of electricity.';
	img = 'starlit-item-heating-element.png';
	fab = starlit.type.fab {
		element = {
			copper = 2;
			nickel = 2;
		};
		cost = {power = 300};
		flag = {print=true};
		time = {print=10};
	};
	mass = 4;
	rarity = 1;
})

B.part.link('starlit_building:cable_electric', {
	name = 'Electric Cable';
	desc = 'A length of conductive metal in a protective graphene sheathe.';
	img = 'starlit-item-cable-electric.png';
	fab = starlit.type.fab {
		element = {
			copper = 16;
			carbon = 16;
		};
		cost = {power = 700};
		flag = {print=true};
		time = {print=20};
	};
	mass = 32;
	rarity = 1;
})

B.part.link('starlit_building:transformer', {
	name = 'Transformer';
	desc = 'An electrical component used to step-up or step-down voltage levels.';
	img = 'starlit-item-transformer.png';
	fab = starlit.type.fab {
		element = {
			copper = 8;
			iron = 16;
		};
		cost = {power = 500};
		flag = {print=true};
		time = {print=20};
	};
	mass = 24;
	rarity = 1;
})

B.part.link('starlit_building:concrete', {
	name = 'Concrete';
	desc = 'A sturdy base for modular construction units.';
	img = 'starlit-item-concrete.png';
	fab = starlit.type.fab {
		element = {
			calcium = 1;
			carbon = 4;
		};
		cost = {power = 200};
		flag = {print=true};
		time = {print=5};
	};
	mass = 5;
	rarity = 1;
})

B.part.link('starlit_building:insulation', {
	name = 'Insulation';
	desc = 'An aerogel that traps heat very effectively.';
	img = 'starlit-item-insulation.png';
	fab = starlit.type.fab {
		element = {
			silicon = 4;
		};
		cost = {power = 100};
		flag = {print=true};
		time = {print=5};
	};
	mass = 4;
	rarity = 1;
})

B.part.link('starlit_building:panel', {
	name = 'Panel';
	desc = 'A sheet of aluminum suitable for use as a wall or floor panel.';
	img = 'starlit-item-panel.png';
	fab = starlit.type.fab {
		element = {
			aluminum = 8;
		};
		cost = {power = 300};
		flag = {print=true};
		time = {print=15};
	};
	mass = 8;
	rarity = 1;
})

B.part.link('starlit_building:pipe', {
	name = 'Pipe';
	desc = 'A pipe suitable for conveying liquids or gasses.';
	img = 'starlit-item-pipe.png';
	fab = starlit.type.fab {
		element = {
			aluminum = 4;
		};
		cost = {power = 300};
		flag = {print=true};
		time = {print=15};
	};
	mass = 4;
	rarity = 1;
})