Zefram
2014-07-03 636b0f20df4fef3eef821c23ccc2f606828f5c6f
technic/tools/cans.lua
@@ -7,8 +7,8 @@
   output = 'technic:water_can 1',
   recipe = {
      {'technic:zinc_ingot', 'technic:rubber','technic:zinc_ingot'},
      {'default:steel_ingot', '', 'default:steel_ingot'},
      {'technic:zinc_ingot', 'default:steel_ingot', 'technic:zinc_ingot'},
      {'technic:carbon_steel_ingot', '', 'technic:carbon_steel_ingot'},
      {'technic:zinc_ingot', 'technic:carbon_steel_ingot', 'technic:zinc_ingot'},
   }
})
@@ -81,6 +81,11 @@
         return itemstack
      end      
   end,
   on_refill = function(stack)
      stack:set_metadata(tostring(water_can_max_load))
      set_can_wear(stack, water_can_max_load, water_can_max_load)
      return stack
   end,
})
minetest.register_tool("technic:lava_can", {
@@ -131,5 +136,10 @@
         return itemstack
      end
   end,
   on_refill = function(stack)
      stack:set_metadata(tostring(lava_can_max_load))
      set_can_wear(stack, lava_can_max_load, lava_can_max_load)
      return stack
   end,
})