2017-02-02 16:40:51 +01:00
|
|
|
|
|
|
|
local function on_punch(pos, player)
|
|
|
|
atlatc.interrupt.add(0, pos, {type="punch", punch=true})
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("advtrains_luaautomation:oppanel", {
|
|
|
|
drawtype = "normal",
|
|
|
|
tiles={"atlatc_oppanel.png"},
|
2021-11-02 23:22:30 +01:00
|
|
|
description = "LuaATC operation panel",
|
2017-02-02 16:40:51 +01:00
|
|
|
groups = {
|
2018-10-17 17:52:22 +02:00
|
|
|
cracky = 1,
|
2019-11-06 21:20:26 +01:00
|
|
|
save_in_at_nodedb=1,
|
2017-02-02 16:40:51 +01:00
|
|
|
},
|
|
|
|
after_place_node = atlatc.active.after_place_node,
|
|
|
|
after_dig_node = atlatc.active.after_dig_node,
|
|
|
|
on_receive_fields = atlatc.active.on_receive_fields,
|
|
|
|
on_punch = on_punch,
|
|
|
|
luaautomation = {
|
|
|
|
fire_event=atlatc.active.run_in_env
|
2018-04-25 17:14:03 +02:00
|
|
|
},
|
|
|
|
digiline = {
|
|
|
|
receptor = {},
|
|
|
|
effector = {
|
|
|
|
action = atlatc.active.on_digiline_receive
|
|
|
|
},
|
|
|
|
},
|
2017-02-02 16:40:51 +01:00
|
|
|
})
|