Allow pistons to conduct digilines signals

This commit is contained in:
cheapie 2018-11-29 19:09:44 -06:00
parent bd4684e000
commit 0ffc118f4c

@ -66,8 +66,17 @@ minetest.register_node("digistuff:piston", {
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
if fields.channel then meta:set_string("channel",fields.channel) end if fields.channel then meta:set_string("channel",fields.channel) end
end, end,
digiline = digiline = {
{ wire = {
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},
},
},
receptor = {}, receptor = {},
effector = { effector = {
action = function(pos,node,channel,msg) action = function(pos,node,channel,msg)
@ -132,8 +141,17 @@ minetest.register_node("digistuff:piston_ext", {
minetest.remove_node(ppos) minetest.remove_node(ppos)
end end
end, end,
digiline = digiline = {
{ wire = {
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},
},
},
receptor = {}, receptor = {},
effector = { effector = {
action = function(pos,node,channel,msg) action = function(pos,node,channel,msg)
@ -161,6 +179,8 @@ minetest.register_node("digistuff:piston_ext", {
minetest.register_node("digistuff:piston_pusher", { minetest.register_node("digistuff:piston_pusher", {
description = "Digilines Piston Pusher (you hacker you!)", description = "Digilines Piston Pusher (you hacker you!)",
groups = {not_in_creative_inventory=1}, groups = {not_in_creative_inventory=1},
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = { tiles = {
"digistuff_piston_sides.png^[transformR180", "digistuff_piston_sides.png^[transformR180",
@ -184,6 +204,18 @@ minetest.register_node("digistuff:piston_pusher", {
{0,0,0,0,0,0}, {0,0,0,0,0,0},
} }
}, },
digiline = {
wire = {
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},
},
},
},
}) })
mesecon.register_mvps_stopper("digistuff:piston_ext") mesecon.register_mvps_stopper("digistuff:piston_ext")