Added diamond drilling head, energy crystals
authorMaciej Kasatkin <mk@realbadangel.pl>
Tue, 11 Sep 2012 15:05:34 +0000 (17:05 +0200)
committerMaciej Kasatkin <mk@realbadangel.pl>
Tue, 11 Sep 2012 15:05:34 +0000 (17:05 +0200)
items.lua
ores.lua

index a93e8946c835a7953badfa2a40922be6a7a0d07f..e026ae9a55c9eeba7853cb83c74415e6ac448bcc 100644 (file)
--- a/items.lua
+++ b/items.lua
@@ -17,4 +17,85 @@ minetest.register_craft({
                {'technic:stainless_steel_ingot', 'default:glass', 'technic:stainless_steel_ingot'},
                {'technic:stainless_steel_ingot', 'default:glass', 'technic:stainless_steel_ingot'},
        }
-})
\ No newline at end of file
+})
+
+minetest.register_craftitem( "technic:diamond_drill_head", {
+       description = "Diamond Drill Head",
+       inventory_image = "technic_diamond_drill_head.png",
+       on_place_on_ground = minetest.craftitem_place_item,
+})
+
+minetest.register_craft({
+       output = 'technic:diamond_drill_head',
+       recipe = {
+               {'technic:stainless_steel_ingot', 'technic:diamond', 'technic:stainless_steel_ingot'},
+               {'technic:diamond', '', 'technic:diamond'},
+               {'technic:stainless_steel_ingot', 'technic:diamond', 'technic:stainless_steel_ingot'},
+       }
+})
+
+minetest.register_craft({
+       output = 'technic:diamond_block',
+       recipe = {
+               {'technic:diamond', 'technic:diamond', 'technic:diamond'},
+               {'technic:diamond', 'technic:diamond', 'technic:diamond'},
+               {'technic:diamond', 'technic:diamond', 'technic:diamond'},
+       }
+})
+
+minetest.register_node( "technic:diamond_block", {
+       description = "Diamond Block",
+       tiles = { "technic_diamond_block.png" },
+       is_ground_content = true,
+       groups = {cracky=3},
+       sounds = default.node_sound_stone_defaults(),
+       drop = 'craft "technic:diamond_block" 1',
+}) 
+
+minetest.register_craft({
+       output = 'technic:red_energy_crystal',
+       recipe = {
+               {'moreores:gold_ingot', 'technic:battery', 'dye:red'},
+               {'technic:battery', 'technic:diamond_block', 'technic:battery'},
+               {'dye:red', 'technic:battery', 'moreores:gold_ingot'},
+       }
+})
+
+minetest.register_craftitem( "technic:red_energy_crystal", {
+       description = "Red Energy Crystal",
+       inventory_image = minetest.inventorycube("technic_diamond_block_red.png", "technic_diamond_block_red.png", "technic_diamond_block_red.png"),
+       on_place_on_ground = minetest.craftitem_place_item,
+})
+
+minetest.register_craft({
+       output = 'technic:green_energy_crystal',
+       recipe = {
+               {'moreores:gold_ingot', 'technic:battery', 'dye:green'},
+               {'technic:battery', 'technic:red_energy_crystal', 'technic:battery'},
+               {'dye:green', 'technic:battery', 'moreores:gold_ingot'},
+       }
+})
+
+minetest.register_craftitem( "technic:green_energy_crystal", {
+       description = "Green Energy Crystal",
+       inventory_image = minetest.inventorycube("technic_diamond_block_green.png", "technic_diamond_block_green.png", "technic_diamond_block_green.png"),
+       on_place_on_ground = minetest.craftitem_place_item,
+})
+
+minetest.register_craft({
+       output = 'technic:blue_energy_crystal',
+       recipe = {
+               {'moreores:gold_ingot', 'technic:battery', 'dye:blue'},
+               {'technic:battery', 'technic:green_energy_crystal', 'technic:battery'},
+               {'dye:blue', 'technic:battery', 'moreores:gold_ingot'},
+       }
+})
+
+minetest.register_craftitem( "technic:blue_energy_crystal", {
+       description = "Blue Energy Crystal",
+       inventory_image = minetest.inventorycube("technic_diamond_block_blue.png", "technic_diamond_block_blue.png", "technic_diamond_block_blue.png"),
+       on_place_on_ground = minetest.craftitem_place_item,
+})
+
+
+
index 66255b782af341530d52646d0358d7ec5d7e5c2f..8557ea42bf0515f3cbb478bd8d5be12c5c088b9a 100644 (file)
--- a/ores.lua
+++ b/ores.lua
@@ -37,41 +37,6 @@ minetest.register_node( "technic:mineral_chromium", {
        drop = 'craft "technic:chromium_lump" 1',
 }) 
 
-minetest.register_node( "technic:diamond_block", {
-       description = "Diamond Block",
-       tiles = { "technic_diamond_block.png" },
-       is_ground_content = true,
-       groups = {cracky=3},
-       sounds = default.node_sound_stone_defaults(),
-       drop = 'craft "technic:diamond_block" 1',
-}) 
-
-minetest.register_node( "technic:diamond_block_red", {
-       description = "Red Diamond Block",
-       tiles = { "technic_diamond_block_red.png" },
-       is_ground_content = true,
-       groups = {cracky=3},
-       sounds = default.node_sound_stone_defaults(),
-       drop = 'craft "technic:diamond_block_red" 1',
-}) 
-minetest.register_node( "technic:diamond_block_green", {
-       description = "Green Diamond Block",
-       tiles = { "technic_diamond_block_green.png" },
-       is_ground_content = true,
-       groups = {cracky=3},
-       sounds = default.node_sound_stone_defaults(),
-       drop = 'craft "technic:diamond_block_green" 1',
-}) 
-minetest.register_node( "technic:diamond_block_blue", {
-       description = "Red Diamond Block",
-       tiles = { "technic_diamond_block_blue.png" },
-       is_ground_content = true,
-       groups = {cracky=3},
-       sounds = default.node_sound_stone_defaults(),
-       drop = 'craft "technic:diamond_block_blue" 1',
-}) 
-
-
 minetest.register_craftitem( "technic:chromium_lump", {
        description = "Chromium Lump",
        inventory_image = "technic_chromium_lump.png",