i don't like the fact that upper and lower part of the door have their own selection box. this can easily be changed:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
function doors:register_door(name, def)
def.groups.not_in_creative_inventory = 1
local box = {{-0.5, -0.5, -0.5, 0.5, 0.5, -0.5+1.5/16}}
local topbox = {{-0.5, -1.5, -0.5, 0.5, 0.5, -0.5+1.5/16}}
local bottombox = {{-0.5, -0.5, -0.5, 0.5, 1.5, -0.5+1.5/16}}
if not def.node_box_bottom then
def.node_box_bottom = box
end
if not def.node_box_top then
def.node_box_top = box
end
if not def.selection_box_bottom then
def.selection_box_bottom = bottombox
end
if not def.selection_box_top then
def.selection_box_top = topbox
end
...
this way both upper and lower part have the same, two node high selectionbox. i prefer this look and hope this can be changed.
edit: fix boxes...