index
:
minetest.git
gpcf
lifo-fixes
release
modified minetest for gpcfs purposes
gpcf
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
src
/
sky.h
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
paramat <paramat@users.noreply.github.com>
2018-03-16 02:47:35 +0000
committer
paramat <mat.gregory@virginmedia.com>
2018-03-16 02:59:48 +0000
commit
0d8cb843
local function
on_punch
(
pos
,
node
,
player
)
atlatc
.
interrupt
.
add
(
0
,
pos
, {
type
=
"punch"
,
punch
=
true
,
name
=
player
:
get_player_name
()})
end
minetest
.
register_node
(
"advtrains_luaautomation:oppanel"
, {
drawtype
=
"normal"
,
tiles
={
"atlatc_oppanel.png"
},
description
=
"LuaATC 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
},
},
})