From 5be4ccb23f02cb8d7bb61e287a3cf9f1bac4fbdb Mon Sep 17 00:00:00 2001 From: Dirkfried <90919714+GreenDirkfried@users.noreply.github.com> Date: Wed, 25 Jan 2023 15:30:32 +0100 Subject: [PATCH] Add tool groups for use by various mods (#50) --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 20830c1..332f6f7 100644 --- a/init.lua +++ b/init.lua @@ -197,18 +197,22 @@ local function add_ore(modname, description, mineral_name, oredef) if tool_name == "sword" then tdef.description = S("@1 Sword", S(description)) + tdef.groups = {sword = 1} end if tool_name == "pick" then tdef.description = S("@1 Pickaxe", S(description)) + tdef.groups = {pickaxe = 1} end if tool_name == "axe" then tdef.description = S("@1 Axe", S(description)) + tdef.groups = {axe = 1} end if tool_name == "shovel" then tdef.description = S("@1 Shovel", S(description)) + tdef.groups = {shovel = 1} tdef.wield_image = toolimg_base .. tool_name .. ".png^[transformR90" end