diff --git a/README.md b/README.md index 5ff762c..368fe96 100644 --- a/README.md +++ b/README.md @@ -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 | | diff --git a/technic/config.lua b/technic/config.lua index 44f7895..72029c7 100644 --- a/technic/config.lua +++ b/technic/config.lua @@ -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", diff --git a/wrench/init.lua b/wrench/init.lua index 031c714..abf712d 100644 --- a/wrench/init.lua +++ b/wrench/init.lua @@ -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