Add basic screwdriver support
This commit is contained in:
parent
2b9f37b3e8
commit
320567e1f2
33 changed files with 144 additions and 5 deletions
|
@ -2,3 +2,4 @@ mcl_init
|
|||
mesecons
|
||||
mcl_util
|
||||
doc?
|
||||
screwdriver?
|
||||
|
|
|
@ -26,6 +26,11 @@ local setup_dropper = function(pos)
|
|||
inv:set_size("main", 9)
|
||||
end
|
||||
|
||||
local on_rotate
|
||||
if minetest.get_modpath("screwdriver") then
|
||||
on_rotate = screwdriver.rotate_simple
|
||||
end
|
||||
|
||||
-- Shared core definition table
|
||||
local dropperdef = {
|
||||
is_ground_content = false,
|
||||
|
@ -91,7 +96,8 @@ local dropperdef = {
|
|||
end
|
||||
end,
|
||||
rules = mesecon.rules.alldirs,
|
||||
}}
|
||||
}},
|
||||
on_rotate = on_rotate,
|
||||
}
|
||||
|
||||
-- Horizontal dropper
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue