update
authorMaciej Kasatkin <mk@realbadangel.pl>
Mon, 29 Oct 2012 03:58:14 +0000 (04:58 +0100)
committerMaciej Kasatkin <mk@realbadangel.pl>
Mon, 29 Oct 2012 03:58:14 +0000 (04:58 +0100)
items.lua
textures/technic_copper_coil.png [new file with mode: 0644]
textures/technic_fine_copper_wire.png [new file with mode: 0644]
textures/technic_motor.png [new file with mode: 0644]

index fe479a73b0b5188339c928b6169f55207077f057..5f460f5705267b658fc3fbba512f191e84eee0a6 100644 (file)
--- a/items.lua
+++ b/items.lua
@@ -95,5 +95,48 @@ inventory_image = minetest.inventorycube("technic_diamond_block_red.png", "techn
 tool_capabilities = {load=0,max_drop_level=0, groupcaps={fleshy={times={}, uses=10000, maxlevel=0}}}}) 
 
 
+minetest.register_craftitem( "technic:fine_copper_wire", {
+       description = "Fine Copper Wire",
+       inventory_image = "technic_fine_copper_wire.png",
+       on_place_on_ground = minetest.craftitem_place_item,
+})
+
+minetest.register_craft({
+       output = 'technic:fine_copper_wire 2',
+       recipe = {
+               {'', 'moreores:copper_ingot', ''},
+               {'', 'moreores:copper_ingot', ''},
+               {'', 'moreores:copper_ingot', ''},
+       }
+})
+
+minetest.register_craftitem( "technic:copper_coil", {
+       description = "Copper Coil",
+       inventory_image = "technic_copper_coil.png",
+       on_place_on_ground = minetest.craftitem_place_item,
+})
+
+minetest.register_craft({
+       output = 'technic:copper_coil 1',
+       recipe = {
+               {'technic:fine_copper_wire', 'default:steel_ingot', 'technic:fine_copper_wire'},
+               {'default:steel_ingot', '', 'default:steel_ingot'},
+               {'technic:fine_copper_wire', 'default:steel_ingot', 'technic:fine_copper_wire'},
+       }
+})
 
+minetest.register_craftitem( "technic:motor", {
+       description = "Electric Motor",
+       inventory_image = "technic_motor.png",
+       on_place_on_ground = minetest.craftitem_place_item,
+})
+
+minetest.register_craft({
+       output = 'technic:motor',
+       recipe = {
+               {'default:steel_ingot', 'technic:copper_coil', 'default:steel_ingot'},
+               {'default:steel_ingot', 'technic:copper_coil', 'default:steel_ingot'},
+               {'default:steel_ingot', 'moreores:copper_ingot', 'default:steel_ingot'},
+       }
+})
 
diff --git a/textures/technic_copper_coil.png b/textures/technic_copper_coil.png
new file mode 100644 (file)
index 0000000..db6db1a
Binary files /dev/null and b/textures/technic_copper_coil.png differ
diff --git a/textures/technic_fine_copper_wire.png b/textures/technic_fine_copper_wire.png
new file mode 100644 (file)
index 0000000..36e2ed6
Binary files /dev/null and b/textures/technic_fine_copper_wire.png differ
diff --git a/textures/technic_motor.png b/textures/technic_motor.png
new file mode 100644 (file)
index 0000000..77d4b91
Binary files /dev/null and b/textures/technic_motor.png differ