aboutsummaryrefslogtreecommitdiff
path: root/crafting.lua
diff options
context:
space:
mode:
authorCalinou <calinou@opmbx.org>2015-02-22 20:01:23 +0100
committerCalinou <calinou@opmbx.org>2015-02-22 20:01:39 +0100
commitd3c775ba3adc01644eb23716bd42cd8e6a240291 (patch)
tree1241ab73e181af97db37b51f5f0c5097e66520a6 /crafting.lua
parentaef4413eb9ed1146200793ed8b23cfae0493af40 (diff)
downloadmoreblocks-d3c775ba3adc01644eb23716bd42cd8e6a240291.tar.gz
moreblocks-d3c775ba3adc01644eb23716bd42cd8e6a240291.tar.bz2
moreblocks-d3c775ba3adc01644eb23716bd42cd8e6a240291.zip
Add moreblocks.circular_saw_crafting to enable or disable circular saw crafting.
Diffstat (limited to 'crafting.lua')
-rw-r--r--crafting.lua18
1 files changed, 10 insertions, 8 deletions
diff --git a/crafting.lua b/crafting.lua
index 4429d9a..c85cc3f 100644
--- a/crafting.lua
+++ b/crafting.lua
@@ -457,11 +457,13 @@ minetest.register_craft({
type = "cooking", output = "moreblocks:tar", recipe = "default:gravel",
})
-minetest.register_craft({
- output = "moreblocks:circular_saw",
- recipe = {
- { "", "default:steel_ingot", "" },
- { "group:wood", "group:wood", "group:wood"},
- { "group:wood", "", "group:wood"},
- }
-})
+if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
+ minetest.register_craft({
+ output = "moreblocks:circular_saw",
+ recipe = {
+ { "", "default:steel_ingot", "" },
+ { "group:wood", "group:wood", "group:wood"},
+ { "group:wood", "", "group:wood"},
+ }
+ })
+end