]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/redstone/ore.lua
Reinit redstone ore
[Crafter.git] / mods / redstone / ore.lua
index ec6398b4af381e8857d26d58322686d572e968b5..1195aa95221adfeb8a698303bdaea1c6b7f9e951 100644 (file)
@@ -7,18 +7,18 @@ for i = 0,1 do
        local on_timer
        if i == 0 then
                groups = {stone = 1, hard = 1, pickaxe = 1, hand = 4,pathable = 1}
-               on_punch = function(pos, node, puncher, pointed_thing)
-                       minetest.set_node(pos, {name="redstone:ore_1"})
-                       redstone.collect_info(pos)
-                       local timer = minetest.get_node_timer(pos)
-                       timer:start(math.random(10,50))
-               end
+               --on_punch = function(pos, node, puncher, pointed_thing)
+               --      minetest.set_node(pos, {name="redstone:ore_1"})
+               --      redstone.collect_info(pos)
+               --      local timer = minetest.get_node_timer(pos)
+               --      timer:start(math.random(10,50))
+               --end
        else
                groups = {stone = 2, hard = 1, pickaxe = 1, hand = 4,pathable = 1,redstone=1,redstone_torch=1,redstone_power=9,experience=8}
-               on_timer = function(pos, elapsed)
-                       minetest.set_node(pos, {name="redstone:ore_0"})
-                       redstone.collect_info(pos)
-               end
+               --on_timer = function(pos, elapsed)
+               --      minetest.set_node(pos, {name="redstone:ore_0"})
+               --      redstone.collect_info(pos)
+               --end
        end
        minetest.register_node("redstone:ore_"..i, {
                description = "Redstone Ore",
@@ -58,9 +58,9 @@ for i = 0,1 do
                },
                on_punch = on_punch,
                on_timer = on_timer,
-               after_dig_node = function(pos, oldnode, oldmetadata, digger)
-                       redstone.collect_info(pos)
-               end,
+               --after_dig_node = function(pos, oldnode, oldmetadata, digger)
+               --      redstone.collect_info(pos)
+               --end,
        })
        if i == 0 then
                minetest.register_node(":nether:redstone_ore", {