Add basic screwdriver support
This commit is contained in:
parent
2b9f37b3e8
commit
320567e1f2
33 changed files with 144 additions and 5 deletions
|
@ -8,3 +8,4 @@ mcl_nether
|
|||
3d_armor_stand
|
||||
3d_armor
|
||||
doc?
|
||||
screwdriver?
|
||||
|
|
|
@ -26,6 +26,11 @@ local setup_dispenser = 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 dispenserdef = {
|
||||
is_ground_content = false,
|
||||
|
@ -363,7 +368,8 @@ local dispenserdef = {
|
|||
end
|
||||
end,
|
||||
rules = mesecon.rules.alldirs,
|
||||
}}
|
||||
}},
|
||||
on_rotate = on_rotate,
|
||||
}
|
||||
|
||||
-- Horizontal dispenser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue