RealBadAngel
2013-04-15 41af016603f2f6dc0e08bddcec727efe1121c5ca
technic/sonic_screwdriver.lua
@@ -14,8 +14,8 @@
               if node.param2==nil  then return end
               item=itemstack:to_table()
               local meta1=get_item_meta(item["metadata"])
               if meta1==nil then return false end --tool not charghed
               if meta1["charge"]==nil then return false end
               if meta1==nil then return end --tool not charghed
               if meta1["charge"]==nil then return end
               charge=meta1["charge"]
               if charge-100>0 then
                  minetest.sound_play("technic_sonic_screwdriver", {pos = pos, gain = 0.3, max_hear_distance = 10,})
@@ -52,7 +52,7 @@
minetest.register_craft({
   output = "technic:sonic_screwdriver",
   recipe = {
      {"technic:diamond"},
      {"default:diamond"},
      {"technic:battery"},
      {"technic:stainless_steel_ingot"}
      }