mod-atm/nodes.lua
Git-Forked ef5753e553
Add ability to process 50 and 100 minegeld notes.
Process 50 and 100 notes.
Reduce ATM machines from 3 down to 1 that does everything.
Remove unneeded code.
2021-04-20 06:10:32 -04:00

43 lines
921 B
Lua

-- 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 = 3},
legacy_facedir_simple = true,
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_rightclick = function(_, _, player)
atm.showform(player)
end,
})
-- Wire transfer terminal node
minetest.register_node("atm:wtt", {
description = "Wire Transfer Terminal",
tiles = {
"atm_top.png", "atm_top.png",
"atm_side.png", "atm_side.png",
"atm_side.png", "mwt_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_wt(player)
end,
})