mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-26 10:20:19 +01:00
Merge pull request #70 from khonkhortisan/eghoststone
Make ghoststone conductive
This commit is contained in:
commit
ccb3430540
@ -31,10 +31,17 @@ minetest.register_node("mesecons_random:ghoststone", {
|
|||||||
inventory_image = minetest.inventorycube("jeija_ghoststone_inv.png"),
|
inventory_image = minetest.inventorycube("jeija_ghoststone_inv.png"),
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
mesecons = {effector = {
|
mesecons = {conductor = {
|
||||||
action_on = function (pos, node)
|
state = mesecon.state.off,
|
||||||
minetest.env:add_node(pos, {name="mesecons_random:ghoststone_active"})
|
rules = { --axes
|
||||||
end
|
{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},
|
||||||
|
},
|
||||||
|
onstate = "mesecons_random:ghoststone_active"
|
||||||
}}
|
}}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -44,10 +51,17 @@ minetest.register_node("mesecons_random:ghoststone_active", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
diggable = false,
|
diggable = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
mesecons = {effector = {
|
mesecons = {conductor = {
|
||||||
action_off = function (pos, node)
|
state = mesecon.state.on,
|
||||||
minetest.env:add_node(pos, {name="mesecons_random:ghoststone"})
|
rules = {
|
||||||
end
|
{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},
|
||||||
|
},
|
||||||
|
offstate = "mesecons_random:ghoststone"
|
||||||
}}
|
}}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user