-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathnodes.lua
77 lines (66 loc) · 1.76 KB
/
nodes.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
-- ATM node definitions
minetest.register_node("atm:atm", {
description = "ATM",
tiles = {
"atm_top.png", "atm_top.png",
"atm_side.png", "atm_side.png",
"atm_side.png", "atm_front.png"
},
paramtype2 = "facedir",
groups = {cracky=2, bank_equipment = 1},
legacy_facedir_simple = true,
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_rightclick = function(_, _, player)
atm.showform(player)
end,
})
minetest.register_node("atm:atm2", {
description = "ATM model 2",
tiles = {
"atm2_top.png", "atm2_top.png",
"atm2_side.png", "atm2_side.png",
"atm2_side.png", "atm2_front.png"
},
paramtype2 = "facedir",
groups = {cracky=2, bank_equipment = 2},
legacy_facedir_simple = true,
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_rightclick = function(_, _, player)
atm.showform2(player)
end,
})
minetest.register_node("atm:atm3", {
description = "ATM model 3",
tiles = {
"atm3_top.png", "atm3_top.png",
"atm3_side.png", "atm3_side.png",
"atm3_side.png", "atm3_front.png"
},
paramtype2 = "facedir",
groups = {cracky=2, bank_equipment = 3},
legacy_facedir_simple = true,
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_rightclick = function(_, _, player)
atm.showform3(player)
end,
})
-- Wire transfer terminal node
minetest.register_node("atm:wtt", {
description = "Wire Transfer Terminal",
tiles = {
"atm_top.png", "atm_top.png",
"atm_side_wt.png", "atm_side_wt.png",
"atm_side_wt.png", "atm_front_wt.png"
},
paramtype2 = "facedir",
groups = {cracky=2, bank_equipment = 1},
legacy_facedir_simple = true,
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_rightclick = function(_, _, player)
atm.showform_wt(player)
end,
})