New nodebox for ATM

This commit is contained in:
Vitalie Ciubotaru 2016-05-15 23:01:00 +09:00
parent 3804a61c74
commit 798072dde9
No known key found for this signature in database
GPG Key ID: 6B60758D4DF9A7EE
1 changed files with 12 additions and 1 deletions

13
atm.lua
View File

@ -219,7 +219,18 @@ minetest.register_node("global_exchange:atm_bottom", {
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5},
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
{-0.5, 0.5, -0.5, -0.375, 1.125, -0.25},
{0.375, 0.5, -0.5, 0.5, 1.125, -0.25},
{-0.5, 0.5, -0.25, 0.5, 1.5, 0.5},
{-0.5, 1.125, -0.4375, -0.375, 1.25, -0.25},
{0.375, 1.125, -0.4375, 0.5, 1.25, -0.25},
{-0.5, 1.25, -0.375, -0.375, 1.375, -0.25},
{0.375, 1.25, -0.375, 0.5, 1.375, -0.25},
{-0.5, 1.375, -0.3125, -0.375, 1.5, -0.25},
{0.375, 1.375, -0.3125, 0.5, 1.5, -0.25},
},
},
after_place_node = function(pos, placer, itemstack)
local n = minetest.get_node_or_nil(pos)