~fgaz/minetest-falling_nodes

ea498cd84f3c38763a9cb402322a704952d1593f — Francesco Gazzetta 2 months ago 55b8087
Make powered metal conductive
1 files changed, 5 insertions(+), 0 deletions(-)

M mods/falling_nodes/materials.lua
M mods/falling_nodes/materials.lua => mods/falling_nodes/materials.lua +5 -0
@@ 205,6 205,7 @@ falling_nodes.register_material("falling_nodes:metal_powered", {
  tiles = {"[fill:1x1:#FFFF80"},
  groups = {
    ["falling_nodes:solid"] = 1,
    ["falling_nodes:conductive"] = 1,
    ["falling_nodes:igniter"] = 1,
    not_in_creative_inventory = 1,
  },


@@ 221,6 222,10 @@ falling_nodes.register_material("falling_nodes:metal_powered", {
    end
    minetest.get_node_timer(pos):start(METAL_SEMI_POWERED_DECAY_TIME)
  end,
  -- In case it gets stuck in powered state, an electric pulse will fix it
  electricity_action = function(pos)
    minetest.get_node_timer(pos):start(METAL_POWERED_DECAY_TIME)
  end,
})

falling_nodes.register_material("falling_nodes:metal_semi_powered", {