| | |
| | | |
| | | local S = technic.getter |
| | | |
| | | local cable_entry = "^technic_cable_connection_overlay.png" |
| | | |
| | | minetest.register_craft({ |
| | | output = "technic:power_monitor", |
| | | recipe = { |
| | |
| | | description = S("Power Monitor"), |
| | | tiles = { |
| | | "technic_power_monitor_sides.png", |
| | | "technic_power_monitor_bottom_back.png", |
| | | "technic_power_monitor_sides.png"..cable_entry, |
| | | "technic_power_monitor_sides.png", |
| | | "technic_power_monitor_sides.png", |
| | | "technic_power_monitor_bottom_back.png", |
| | | "technic_power_monitor_sides.png"..cable_entry, |
| | | "technic_power_monitor_front.png" |
| | | }, |
| | | paramtype2 = "facedir", |
| | |
| | | local demand = sw_meta:get_int("demand") |
| | | meta:set_string("infotext", |
| | | S("Power Monitor. Supply: @1 Demand: @2", |
| | | technic.pretty_num(supply), technic.pretty_num(demand))) |
| | | technic.EU_string(supply), technic.EU_string(demand))) |
| | | else |
| | | meta:set_string("infotext",S("Power Monitor Has No Network")) |
| | | end |