Allow stair/slab crafting by default, can be disabled in _config.txt

This commit is contained in:
Calinou 2013-09-15 14:52:18 +02:00
parent d8d84f7579
commit 474d62ac7c
3 changed files with 11 additions and 2 deletions

View File

@ -9,3 +9,6 @@
-- Whether to direct wood based on player yaw when placing the block
wood_facedir = true
-- Allow stair/slab crafting without a circular saw or not
allow_stair_slab_crafting = true

View File

@ -115,8 +115,10 @@ function register_slab(modname, subname, recipeitem, groups, images, description
end
})
-- Unregister default recipes
-- Unregister default recipes, optional, see _config.txt
if allow_stair_slab_crafting == false
then
minetest.register_craft({
output = "moreblocks:nothing 1",
recipe = {
@ -124,4 +126,5 @@ function register_slab(modname, subname, recipeitem, groups, images, description
},
})
end
end

View File

@ -225,8 +225,10 @@ function register_stair(modname, subname, recipeitem, groups, images, descriptio
end
})
-- Unregister default recipes
-- Unregister default recipes, optional, see _config.txt
if allow_stair_slab_crafting == false
then
minetest.register_craft({
output = "moreblocks:nothing 1",
recipe = {
@ -245,4 +247,5 @@ function register_stair(modname, subname, recipeitem, groups, images, descriptio
},
})
end
end