Add basic screwdriver support
This commit is contained in:
parent
2b9f37b3e8
commit
320567e1f2
33 changed files with 144 additions and 5 deletions
|
@ -3,3 +3,4 @@ mcl_core
|
|||
mcl_sounds
|
||||
mcl_stairs
|
||||
doc_identifier?
|
||||
screwdriver?
|
||||
|
|
|
@ -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", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue