2013-02-11 11:01:13 +01:00
|
|
|
local mesewire_rules =
|
|
|
|
{
|
|
|
|
{x = 1, y = 0, z = 0},
|
|
|
|
{x =-1, y = 0, z = 0},
|
|
|
|
{x = 0, y = 1, z = 0},
|
|
|
|
{x = 0, y =-1, z = 0},
|
|
|
|
{x = 0, y = 0, z = 1},
|
|
|
|
{x = 0, y = 0, z =-1},
|
|
|
|
}
|
|
|
|
|
2014-04-21 13:27:12 +02:00
|
|
|
minetest.override_item("default:mese", {
|
2013-02-11 11:01:13 +01:00
|
|
|
mesecons = {conductor = {
|
|
|
|
state = mesecon.state.off,
|
|
|
|
onstate = "mesecons_extrawires:mese_powered",
|
|
|
|
rules = mesewire_rules
|
|
|
|
}}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("mesecons_extrawires:mese_powered", {
|
2013-03-04 19:56:43 +01:00
|
|
|
tiles = {minetest.registered_nodes["default:mese"].tiles[1].."^[brighten"},
|
2013-02-11 11:01:13 +01:00
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=1, not_in_creative_inventory = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
mesecons = {conductor = {
|
|
|
|
state = mesecon.state.on,
|
|
|
|
offstate = "default:mese",
|
|
|
|
rules = mesewire_rules
|
|
|
|
}},
|
|
|
|
drop = "default:mese"
|
|
|
|
})
|