diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-10-10 23:28:42 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-10-10 23:28:42 +0200 |
commit | e96cc188665384df96b89af35308716bbdc5ca37 (patch) | |
tree | 6c1c053c7df5d3903b81962eb55e1b250ad43da4 /advtrains/advtrains_luaautomation/operation_panel.lua | |
parent | d1b1d6ab29afdb116dd7d3c6869bfec097bcb453 (diff) | |
parent | 5aad0930d1ddd63d9021d833a9379b4a01bd8414 (diff) | |
download | forks-modpack-e96cc188665384df96b89af35308716bbdc5ca37.tar.gz forks-modpack-e96cc188665384df96b89af35308716bbdc5ca37.tar.bz2 forks-modpack-e96cc188665384df96b89af35308716bbdc5ca37.zip |
Merge commit '5aad0930d1ddd63d9021d833a9379b4a01bd8414' as 'advtrains'
Diffstat (limited to 'advtrains/advtrains_luaautomation/operation_panel.lua')
-rw-r--r-- | advtrains/advtrains_luaautomation/operation_panel.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/advtrains/advtrains_luaautomation/operation_panel.lua b/advtrains/advtrains_luaautomation/operation_panel.lua new file mode 100644 index 0000000..f8b93b5 --- /dev/null +++ b/advtrains/advtrains_luaautomation/operation_panel.lua @@ -0,0 +1,28 @@ + +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"}, + description = "LuaAutomation operation panel", + groups = { + cracky = 1, + save_in_at_nodedb=1, + }, + 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 + }, + digiline = { + receptor = {}, + effector = { + action = atlatc.active.on_digiline_receive + }, + }, +}) |