7df4ddec1c
move plank registration and recipe out of tree mod into newly created woodworking mod. also update plank recipe to require cobblestone instead of stone to be held while pummeling.
15 lines
635 B
Lua
15 lines
635 B
Lua
local modname = minetest.get_current_modname()
|
|
|
|
-- plant saplings
|
|
-- TODO: when recipes add support for groups, use `dirty` group here instead of specific nodes.
|
|
blockgame.crafting.register_stack_recipe("core:grass", modname .. ":nut", {name = modname .. ":sapling"})
|
|
blockgame.crafting.register_stack_recipe("core:dirt", modname .. ":nut", {name = modname .. ":sapling"})
|
|
|
|
blockgame.crafting.register_pummel_recipe({
|
|
label = "pummel leaves into dirt",
|
|
used_item = modname .. ":leaves",
|
|
target_node = modname .. ":leaves",
|
|
on_success = function (pos, used_node, target_node)
|
|
minetest.set_node(pos, {name = "core:dirt"})
|
|
end,
|
|
})
|