Add basic screwdriver support
This commit is contained in:
parent
2b9f37b3e8
commit
320567e1f2
33 changed files with 144 additions and 5 deletions
|
@ -371,6 +371,10 @@ minetest.register_node("mcl_signs:wall_sign", {
|
|||
_mcl_blast_resistance = 5,
|
||||
})
|
||||
|
||||
local on_rotate
|
||||
if minetest.get_modpath("screwdriver") then
|
||||
on_rotate = screwdriver.disallow
|
||||
end
|
||||
|
||||
-- Standing sign nodes.
|
||||
-- 4 rotations at 0°, 22.5°, 45° and 67.5°.
|
||||
|
@ -400,6 +404,8 @@ local ssign = {
|
|||
on_punch = function(pos, node, puncher)
|
||||
update_sign(pos)
|
||||
end,
|
||||
|
||||
on_rotate = on_rotate,
|
||||
_mcl_hardness = 1,
|
||||
_mcl_blast_resistance = 5,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue