Zefram
2014-07-07 5e4a87b92599aa0fc9a56081209c930d08a2c3bd
technic/machines/LV/water_mill.lua
@@ -9,14 +9,14 @@
minetest.register_craft({
   output = 'technic:water_mill',
   recipe = {
      {'default:stone', 'default:stone',        'default:stone'},
      {'group:wood',    'default:diamond',      'group:wood'},
      {'default:stone', 'default:copper_ingot', 'default:stone'},
      {'technic:marble', 'default:diamond',        'technic:marble'},
      {'group:wood',     'technic:machine_casing', 'group:wood'},
      {'technic:marble', 'technic:lv_cable0',      'technic:marble'},
   }
})
minetest.register_node("technic:water_mill", {
   description = S("Water Mill"),
   description = S("Hydro %s Generator"):format("LV"),
   tiles = {"technic_water_mill_top.png",  "technic_machine_bottom.png",
            "technic_water_mill_side.png", "technic_water_mill_side.png",
            "technic_water_mill_side.png", "technic_water_mill_side.png"},
@@ -26,13 +26,13 @@
   sounds = default.node_sound_wood_defaults(),
   on_construct = function(pos)
      local meta = minetest.get_meta(pos)
      meta:set_string("infotext", S("Water Mill"))
      meta:set_string("infotext", S("Hydro %s Generator"):format("LV"))
      meta:set_int("LV_EU_supply", 0)
   end,   
})
minetest.register_node("technic:water_mill_active", {
   description = S("Water Mill"),
   description = S("Hydro %s Generator"):format("LV"),
   tiles = {"technic_water_mill_top_active.png", "technic_machine_bottom.png",
            "technic_water_mill_side.png",       "technic_water_mill_side.png",
            "technic_water_mill_side.png",       "technic_water_mill_side.png"},
@@ -85,7 +85,7 @@
      end
      meta:set_string("infotext",
         S("Water Mill").." ("..production_level.."%)")
         S("Hydro %s Generator"):format("LV").." ("..production_level.."%)")
      if production_level > 0 and
         minetest.get_node(pos).name == "technic:water_mill" then