Add basic screwdriver support
This commit is contained in:
parent
2b9f37b3e8
commit
320567e1f2
33 changed files with 144 additions and 5 deletions
|
@ -1 +1,2 @@
|
|||
mcl_sounds
|
||||
screwdriver?
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
-- Heads system
|
||||
|
||||
local function addhead(name, texture, desc, longdesc)
|
||||
local on_rotate
|
||||
if minetest.get_modpath("screwdriver") then
|
||||
on_rotate = screwdriver.rotate_simple
|
||||
end
|
||||
|
||||
minetest.register_node("mcl_heads:"..name, {
|
||||
description = desc,
|
||||
_doc_items_longdesc = longdesc,
|
||||
|
@ -37,6 +42,7 @@ local function addhead(name, texture, desc, longdesc)
|
|||
sounds = mcl_sounds.node_sound_defaults({
|
||||
footstep = {name="default_hard_footstep", gain=0.3}
|
||||
}),
|
||||
on_rotate = on_rotate,
|
||||
_mcl_blast_resistance = 5,
|
||||
_mcl_hardness = 1,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue