Add basic screwdriver support
This commit is contained in:
parent
2b9f37b3e8
commit
320567e1f2
33 changed files with 144 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
mcl_core
|
||||
mcl_sounds
|
||||
mcl_dye
|
||||
screwdriver?
|
||||
|
|
|
@ -44,6 +44,10 @@ minetest.register_craft({
|
|||
cooktime = 10,
|
||||
})
|
||||
|
||||
local on_rotate
|
||||
if minetest.get_modpath("screwdriver") then
|
||||
on_rotate = screwdriver.rotate_simple
|
||||
end
|
||||
|
||||
for _, row in ipairs(block.dyes) do
|
||||
local name = row[1]
|
||||
|
@ -124,6 +128,7 @@ for _, row in ipairs(block.dyes) do
|
|||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||
_mcl_blast_resistance = 7,
|
||||
_mcl_hardness = 1.4,
|
||||
on_rotate = on_rotate,
|
||||
})
|
||||
|
||||
-- Crafting recipes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue