Add moreblocks.circular_saw_crafting to enable or disable circular saw crafting.

This commit is contained in:
Calinou 2015-02-22 20:01:23 +01:00
parent aef4413eb9
commit d3c775ba3a
1 changed files with 10 additions and 8 deletions

View File

@ -457,11 +457,13 @@ minetest.register_craft({
type = "cooking", output = "moreblocks:tar", recipe = "default:gravel", type = "cooking", output = "moreblocks:tar", recipe = "default:gravel",
}) })
minetest.register_craft({ if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
output = "moreblocks:circular_saw", minetest.register_craft({
recipe = { output = "moreblocks:circular_saw",
{ "", "default:steel_ingot", "" }, recipe = {
{ "group:wood", "group:wood", "group:wood"}, { "", "default:steel_ingot", "" },
{ "group:wood", "", "group:wood"}, { "group:wood", "group:wood", "group:wood"},
} { "group:wood", "", "group:wood"},
}) }
})
end