Skip to content
Permalink
Browse files

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

  • Loading branch information...
Calinou
Calinou committed Sep 15, 2013
1 parent d8d84f7 commit 474d62ac7c6f540318ccba9777f4f2c8d35007ec
Showing with 11 additions and 2 deletions.
  1. +3 −0 _config.txt
  2. +4 −1 stairsplus/slabs.lua
  3. +4 −1 stairsplus/stairs.lua
@@ -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,13 +115,16 @@ 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 = {
{recipeitem, recipeitem, recipeitem},
},
})
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

0 comments on commit 474d62a

Please sign in to comment.
You can’t perform that action at this time.