From ad6972758f1f55745f7c82eda36948c6c9535f5d Mon Sep 17 00:00:00 2001 From: MCL Software Official Date: Sun, 19 Mar 2023 14:03:55 -0400 Subject: [PATCH] Add the regular drill --- TEXTURES_TODO.md | 1 - tools.lua | 26 ++++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/TEXTURES_TODO.md b/TEXTURES_TODO.md index da9396b..fdad54b 100644 --- a/TEXTURES_TODO.md +++ b/TEXTURES_TODO.md @@ -1,6 +1,5 @@ # List of textures that still have to be done - refined iron ingot for MCL -- sticky resin - rubber wood (top|side) - rubber wood with rubber (side) - rubber leaves diff --git a/tools.lua b/tools.lua index 2355522..9e220d8 100644 --- a/tools.lua +++ b/tools.lua @@ -1,5 +1,5 @@ -- IndustrialTest --- Copyright (C) 2023 mrkubax10 +-- Copyright (C) 2023 mrkubax10 and Migdyn -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by @@ -43,6 +43,28 @@ local definition={ end, _industrialtest_tool=true } + +minetest.register_tool("industrialtest:drill", +{ + description = S("Mining Drill"), + inventory_image = "industrialtest_drill.png", + tool_capabilities = + { + full_punch_interval = 1.5, + max_drop_level = 1, + groupcaps = + { + crumbly = + { + maxlevel = 3, + uses = 8888, + times = {[1]=0.1, [2]=0.1, [3]=0.1} + }, + }, + damage_groups = {cracky=3,crubmly=3,fleshy=3}, + }, +}) + if industrialtest.mtgAvailable then definition.groups={ flammable=2 @@ -54,7 +76,7 @@ elseif industrialtest.mclAvailable then definition._repair_material="group:wood" definition._mcl_toollike_wield=true end -minetest.register_tool("industrialtest:treetap",definition) +minetest.register_tool("industrialtest:treetap", definition) minetest.register_craft({ type="shaped", output="industrialtest:treetap",