diff options
author | cheapie <no-email-for-you@example.com> | 2020-04-30 00:44:04 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2020-04-30 00:44:04 -0500 |
commit | 7f5eaac5c35d4c26d566b39a45e93c4582712b90 (patch) | |
tree | 9171eab3d223ed1dd321f789eaad84c02583b518 /piston.lua | |
parent | 69a9304751cfdf784696212fcf4834eba584c584 (diff) | |
download | digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar.gz digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar.bz2 digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar.xz digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.zip |
Add channel copier
Diffstat (limited to 'piston.lua')
-rw-r--r-- | piston.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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() |