From 7f5eaac5c35d4c26d566b39a45e93c4582712b90 Mon Sep 17 00:00:00 2001 From: cheapie Date: Thu, 30 Apr 2020 00:44:04 -0500 Subject: Add channel copier --- piston.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'piston.lua') diff --git a/piston.lua b/piston.lua index 070da43..bd8860b 100644 --- a/piston.lua +++ b/piston.lua @@ -66,6 +66,7 @@ minetest.register_node("digistuff:piston", { local meta = minetest.get_meta(pos) if fields.channel then meta:set_string("channel",fields.channel) end end, + _digistuff_channelcopier_fieldname = "channel", digiline = { wire = { rules = { @@ -124,6 +125,7 @@ minetest.register_node("digistuff:piston_ext", { {-0.5,-0.5,-1.5,0.5,0.5,0.5}, } }, + _digistuff_channelcopier_fieldname = "channel", on_rotate = function() return false end, on_receive_fields = function(pos, formname, fields, sender) local name = sender:get_player_name() -- cgit v1.2.3