RealBadAngel
2013-04-15 cdb368913b471ef2d8a3c8dc681f848548803e13
technic/mining_laser_mk1.lua
@@ -57,8 +57,8 @@
   on_use = function(itemstack, user, pointed_thing)
      item=itemstack:to_table()
      local meta=get_item_meta(item["metadata"])
      if meta==nil then return false end --tool not charghed
      if meta["charge"]==nil then return false end
      if meta==nil then return end --tool not charghed
      if meta["charge"]==nil then return end
      charge=meta["charge"]
      if charge-400>0 then
       laser_shoot(item, user, pointed_thing)
@@ -75,7 +75,7 @@
minetest.register_craft({
   output = 'technic:laser_mk1',
   recipe = {
      {'technic:diamond', 'default:steel_ingot', 'technic:battery'},
      {'default:diamond', 'default:steel_ingot', 'technic:battery'},
      {'', 'default:steel_ingot', 'technic:battery'},
      {'', '', 'moreores:copper_ingot'},
   }