kpoppel
2013-06-03 4f1a44a80b5522db60125f3018c0ce80fbb9e3b4
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'},
   }