Re-add recipe for wrench enabled by setting enable_wrench_crafting (#197)

* "enable_wrench = yes" adds the wrench recipe
* setting renamed to "enable_wrench_crafting"
This commit is contained in:
nixnoxus 2021-07-20 16:12:56 +02:00 committed by GitHub
parent 86c50dc955
commit ac64e0af88
3 changed files with 13 additions and 0 deletions

View File

@ -129,6 +129,7 @@ Recommended mods that build on the `technic mod`:
| enable_mining_drill | |
| enable_mining_laser | |
| enable_flashlight | |
| enable_wrench_crafting | enable recipe for wrench |
| enable_wind_mill | |
| enable_frames | |
| enable_corium_griefing | |

View File

@ -12,6 +12,7 @@ local defaults = {
enable_sonic_screwdriver = "true",
enable_tree_tap = "true",
enable_vacuum = "true",
enable_wrench_crafting = "false",
-- Power tool options
multimeter_remote_start_ttl = "300",

View File

@ -177,3 +177,14 @@ minetest.register_tool("wrench:wrench", {
return itemstack
end,
})
if technic.config:get_bool("enable_wrench_crafting") then
minetest.register_craft({
output = "wrench:wrench",
recipe = {
{"technic:carbon_steel_ingot", "", "technic:carbon_steel_ingot"},
{"", "technic:carbon_steel_ingot", ""},
{"", "technic:carbon_steel_ingot", ""},
},
})
end