| | |
| | | |
| | | local power_radius = 12 |
| | | |
| | | |
| | | minetest.register_craft({ |
| | | output = 'technic:power_radiator 1', |
| | | recipe = { |
| | | {'technic:stainless_steel_ingot', 'technic:mv_transformer', 'technic:stainless_steel_ingot'}, |
| | | {'technic:copper_coil', 'technic:machine_casing', 'technic:copper_coil'}, |
| | | {'technic:rubber', 'technic:mv_cable', 'technic:rubber'}, |
| | | } |
| | | }) |
| | | |
| | | ------------------------------------------------------------------ |
| | | -- API for inductive powered nodes: |
| | | -- Use the functions below to set the corresponding callbacks |
| | |
| | | end |
| | | }) |
| | | |
| | | minetest.register_craft({ |
| | | output = 'technic:power_radiator 1', |
| | | recipe = { |
| | | {'technic:stainless_steel_ingot', 'technic:mv_transformer', 'technic:stainless_steel_ingot'}, |
| | | {'technic:copper_coil', 'technic:machine_casing', 'technic:copper_coil'}, |
| | | {'technic:rubber', 'technic:mv_cable0', 'technic:rubber'}, |
| | | } |
| | | }) |
| | | |
| | | minetest.register_abm({ |
| | | label = "Machines: run power radiator", |
| | | nodenames = {"technic:power_radiator"}, |
| | | interval = 1, |
| | | chance = 1, |
| | |
| | | -- The supply radius |
| | | local rad = power_radius |
| | | |
| | | local meta1 = nil |
| | | local pos1 = {} |
| | | local used_charge = 0 |
| | | |
| | | -- Index all nodes within supply range |