Add basic screwdriver support

This commit is contained in:
Wuzzy 2017-12-05 14:09:39 +01:00
parent 2b9f37b3e8
commit 320567e1f2
33 changed files with 144 additions and 5 deletions

View file

@ -8,3 +8,4 @@ mcl_nether
3d_armor_stand
3d_armor
doc?
screwdriver?

View file

@ -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