| | |
| | | minetest.register_craft({ |
| | | output = "technic:switching_station", |
| | | recipe = { |
| | | {"default:steel_ingot", "technic:lv_transformer", "default:steel_ingot"}, |
| | | {"default:copper_ingot", "technic:lv_cable0", "default:copper_ingot"}, |
| | | {"default:steel_ingot", "technic:lv_cable0", "default:steel_ingot"} |
| | | {"technic:cast_iron_ingot", "technic:lv_transformer", "technic:cast_iron_ingot"}, |
| | | {"default:copper_ingot", "technic:lv_cable0", "default:copper_ingot"}, |
| | | {"technic:cast_iron_ingot", "technic:lv_cable0", "technic:cast_iron_ingot"} |
| | | } |
| | | }) |
| | | |
| | |
| | | -- A node must be touched by the station continuously in order to function |
| | | function technic.switching_station_timeout_count(pos, tier) |
| | | local meta = minetest.get_meta(pos) |
| | | timeout = meta:get_int(tier.."_EU_timeout") |
| | | local timeout = meta:get_int(tier.."_EU_timeout") |
| | | if timeout == 0 then |
| | | meta:set_int(tier.."_EU_input", 0) |
| | | else |
| | |
| | | add_new_cable_node(PR_nodes, pos) |
| | | elseif machines[name] == technic.receiver then |
| | | add_new_cable_node(RE_nodes, pos) |
| | | elseif machines[name] == technic.producer_receiver then |
| | | add_new_cable_node(PR_nodes, pos) |
| | | add_new_cable_node(RE_nodes, pos) |
| | | elseif machines[name] == technic.battery then |
| | | add_new_cable_node(BA_nodes, pos) |
| | | end |