diff options
author | Calinou <calinou9999spam@gmail.com> | 2013-09-15 14:52:18 +0200 |
---|---|---|
committer | Calinou <calinou9999spam@gmail.com> | 2013-09-15 14:52:18 +0200 |
commit | 474d62ac7c6f540318ccba9777f4f2c8d35007ec (patch) | |
tree | a46abe31ce8454cfaa1dca2107c573394b8c3ec5 | |
parent | d8d84f75797223734add22031b148783703100db (diff) |
Allow stair/slab crafting by default, can be disabled in _config.txt
-rw-r--r-- | _config.txt | 3 | ||||
-rw-r--r-- | stairsplus/slabs.lua | 5 | ||||
-rw-r--r-- | stairsplus/stairs.lua | 5 |
3 files changed, 11 insertions, 2 deletions
diff --git a/_config.txt b/_config.txt index b4395f4..ceff443 100644 --- a/_config.txt +++ b/_config.txt @@ -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 diff --git a/stairsplus/slabs.lua b/stairsplus/slabs.lua index 458c8b9..875ebc8 100644 --- a/stairsplus/slabs.lua +++ b/stairsplus/slabs.lua @@ -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 diff --git a/stairsplus/stairs.lua b/stairsplus/stairs.lua index ae06e73..7fa6a30 100644 --- a/stairsplus/stairs.lua +++ b/stairsplus/stairs.lua @@ -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 |