diff options
author | Calinou <calinou@opmbx.org> | 2015-02-22 20:01:23 +0100 |
---|---|---|
committer | Calinou <calinou@opmbx.org> | 2015-02-22 20:01:39 +0100 |
commit | d3c775ba3adc01644eb23716bd42cd8e6a240291 (patch) | |
tree | 1241ab73e181af97db37b51f5f0c5097e66520a6 /crafting.lua | |
parent | aef4413eb9ed1146200793ed8b23cfae0493af40 (diff) |
Add moreblocks.circular_saw_crafting to enable or disable circular saw crafting.
Diffstat (limited to 'crafting.lua')
-rw-r--r-- | crafting.lua | 18 |
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 |