summaryrefslogtreecommitdiff
path: root/items.lua
diff options
context:
space:
mode:
authorMaciej Kasatkin <mk@realbadangel.pl>2012-10-28 20:03:36 +0100
committerMaciej Kasatkin <mk@realbadangel.pl>2012-10-28 20:03:36 +0100
commit01b21d49af04f9b3251c5edfb759995dc45d5110 (patch)
treeb40c70f82f929b8b1eb0cbb8d79dab4332542291 /items.lua
parent9d2979f365aad6963e814fa78b6f37d51d00043c (diff)
update
Diffstat (limited to 'items.lua')
-rw-r--r--items.lua48
1 files changed, 23 insertions, 25 deletions
diff --git a/items.lua b/items.lua
index 0773d1f..fe479a7 100644
--- a/items.lua
+++ b/items.lua
@@ -53,21 +53,6 @@ minetest.register_node( "technic:diamond_block", {
})
minetest.register_craft({
- output = 'technic:red_energy_crystal',
- recipe = {
- {'moreores:gold_ingot', 'technic:battery', 'group:dye,basecolor_red'},
- {'technic:battery', 'technic:diamond_block', 'technic:battery'},
- {'group:dye,basecolor_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', 'group:dye,basecolor_green'},
@@ -76,12 +61,6 @@ minetest.register_craft({
}
})
-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 = {
@@ -91,11 +70,30 @@ minetest.register_craft({
}
})
-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,
+minetest.register_craft({
+ output = 'technic:red_energy_crystal',
+ recipe = {
+ {'moreores:gold_ingot', 'technic:battery', 'group:dye,basecolor_red'},
+ {'technic:battery', 'technic:diamond_block', 'technic:battery'},
+ {'group:dye,basecolor_red', 'technic:battery', 'moreores:gold_ingot'},
+ }
})
+minetest.register_tool("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"),
+tool_capabilities = {load=0,max_drop_level=0, groupcaps={fleshy={times={}, uses=10000, maxlevel=0}}}})
+
+minetest.register_tool("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"),
+tool_capabilities = {load=0,max_drop_level=0, groupcaps={fleshy={times={}, uses=10000, maxlevel=0}}}})
+
+minetest.register_tool("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"),
+tool_capabilities = {load=0,max_drop_level=0, groupcaps={fleshy={times={}, uses=10000, maxlevel=0}}}})
+
+