forked from minetest-mods/moreblocks
Allow stair/slab crafting by default, can be disabled in _config.txt
This commit is contained in:
parent
d8d84f7579
commit
474d62ac7c
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user