diff options
author | cheapie <no-email-for-you@example.com> | 2020-04-30 00:54:36 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2020-04-30 00:54:36 -0500 |
commit | 7677c49dbfeb446e5daa6fab2b22dcab435fd2e2 (patch) | |
tree | 97040c437ccd6f26b2b5ae576a90522bf05d08db | |
parent | 847588d8726c0e6ba4da1091fbaa9864bda0147b (diff) | |
download | elevatorparts-7677c49dbfeb446e5daa6fab2b22dcab435fd2e2.tar elevatorparts-7677c49dbfeb446e5daa6fab2b22dcab435fd2e2.tar.gz elevatorparts-7677c49dbfeb446e5daa6fab2b22dcab435fd2e2.tar.bz2 elevatorparts-7677c49dbfeb446e5daa6fab2b22dcab435fd2e2.tar.xz elevatorparts-7677c49dbfeb446e5daa6fab2b22dcab435fd2e2.zip |
Add compatibility with digistuff's channel copier
-rw-r--r-- | init.lua | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -42,6 +42,12 @@ minetest.register_node("elevatorparts:callbutton_up",{ minetest.swap_node(pos,node) end end, + _digistuff_channelcopier_fieldname = "channel", + _digistuff_channelcopier_onset = function(pos,node) + node.name = "elevatorparts:callbutton_up_off" + minetest.swap_node(pos,node) + minetest.get_meta(pos):set_string("formspec","") + end, }) minetest.register_node("elevatorparts:callbutton_up_off",{ @@ -91,6 +97,7 @@ minetest.register_node("elevatorparts:callbutton_up_off",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:callbutton_up_on",{ @@ -140,6 +147,7 @@ minetest.register_node("elevatorparts:callbutton_up_on",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:callbutton_down",{ @@ -186,6 +194,12 @@ minetest.register_node("elevatorparts:callbutton_down",{ minetest.swap_node(pos,node) end end, + _digistuff_channelcopier_fieldname = "channel", + _digistuff_channelcopier_onset = function(pos,node) + node.name = "elevatorparts:callbutton_down_off" + minetest.swap_node(pos,node) + minetest.get_meta(pos):set_string("formspec","") + end, }) minetest.register_node("elevatorparts:callbutton_down_off",{ @@ -235,6 +249,7 @@ minetest.register_node("elevatorparts:callbutton_down_off",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:callbutton_down_on",{ @@ -284,6 +299,7 @@ minetest.register_node("elevatorparts:callbutton_down_on",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:callbutton_both",{ @@ -331,6 +347,12 @@ minetest.register_node("elevatorparts:callbutton_both",{ minetest.swap_node(pos,node) end end, + _digistuff_channelcopier_fieldname = "channel", + _digistuff_channelcopier_onset = function(pos,node) + node.name = "elevatorparts:callbutton_both_off" + minetest.swap_node(pos,node) + minetest.get_meta(pos):set_string("formspec","") + end, }) minetest.register_node("elevatorparts:callbutton_both_off",{ @@ -383,6 +405,7 @@ minetest.register_node("elevatorparts:callbutton_both_off",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:callbutton_both_upon",{ @@ -435,6 +458,7 @@ minetest.register_node("elevatorparts:callbutton_both_upon",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:callbutton_both_downon",{ @@ -487,6 +511,7 @@ minetest.register_node("elevatorparts:callbutton_both_downon",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:callbutton_both_on",{ @@ -539,6 +564,7 @@ minetest.register_node("elevatorparts:callbutton_both_on",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) local chars = { @@ -724,6 +750,7 @@ minetest.register_node("elevatorparts:pilantern_up_off",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:pilantern_up_on",{ @@ -804,6 +831,7 @@ minetest.register_node("elevatorparts:pilantern_up_on",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:pilantern_down_off",{ @@ -882,6 +910,7 @@ minetest.register_node("elevatorparts:pilantern_down_off",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:pilantern_down_on",{ @@ -962,6 +991,7 @@ minetest.register_node("elevatorparts:pilantern_down_on",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:pilantern_updown_off",{ @@ -1043,6 +1073,7 @@ minetest.register_node("elevatorparts:pilantern_updown_off",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:pilantern_updown_upon",{ @@ -1126,6 +1157,7 @@ minetest.register_node("elevatorparts:pilantern_updown_upon",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:pilantern_updown_downon",{ @@ -1209,6 +1241,7 @@ minetest.register_node("elevatorparts:pilantern_updown_downon",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_node("elevatorparts:pilantern_updown_bothon",{ @@ -1292,6 +1325,7 @@ minetest.register_node("elevatorparts:pilantern_updown_bothon",{ end }, }, + _digistuff_channelcopier_fieldname = "channel", }) minetest.register_abm({ |