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

@ -3,3 +3,4 @@ mcl_core
mcl_sounds
mcl_stairs
doc_identifier?
screwdriver?

View file

@ -81,6 +81,11 @@ local drop_armor = function(pos)
end
end
local on_rotate
if minetest.get_modpath("screwdriver") then
on_rotate = screwdriver.disallow
end
-- FIXME: The armor stand should be an entity
minetest.register_node("3d_armor_stand:armor_stand", {
description = "Armor Stand",
@ -201,6 +206,7 @@ minetest.register_node("3d_armor_stand:armor_stand", {
update_entity(pos)
end, pos)
end,
on_rotate = on_rotate,
})
minetest.register_entity("3d_armor_stand:armor_entity", {