From eeac1435f9063bdb9d01bfd95e072ea6240ab4ff Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 9 Dec 2019 15:14:16 +0100 Subject: [PATCH] Update screwdriver mod for MT 5.0.0 --- mods/ITEMS/screwdriver/init.lua | 5 ++++- mods/ITEMS/screwdriver/locale/screwdriver.de.tr | 2 ++ mods/ITEMS/screwdriver/locale/template.txt | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 mods/ITEMS/screwdriver/locale/screwdriver.de.tr create mode 100644 mods/ITEMS/screwdriver/locale/template.txt diff --git a/mods/ITEMS/screwdriver/init.lua b/mods/ITEMS/screwdriver/init.lua index 4d38bbc2..ca77e400 100644 --- a/mods/ITEMS/screwdriver/init.lua +++ b/mods/ITEMS/screwdriver/init.lua @@ -1,3 +1,5 @@ +local S = minetest.get_translator("screwdriver") + screwdriver = {} screwdriver.ROTATE_FACE = 1 @@ -143,8 +145,9 @@ end -- Screwdriver minetest.register_tool("screwdriver:screwdriver", { - description = "Screwdriver", + description = S("Screwdriver"), inventory_image = "screwdriver.png", + groups = { tool = 1 }, on_use = function(itemstack, user, pointed_thing) screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_FACE, 200) return itemstack diff --git a/mods/ITEMS/screwdriver/locale/screwdriver.de.tr b/mods/ITEMS/screwdriver/locale/screwdriver.de.tr new file mode 100644 index 00000000..35c99c05 --- /dev/null +++ b/mods/ITEMS/screwdriver/locale/screwdriver.de.tr @@ -0,0 +1,2 @@ +# textdomain: screwdriver +Screwdriver=Schraubendreher diff --git a/mods/ITEMS/screwdriver/locale/template.txt b/mods/ITEMS/screwdriver/locale/template.txt new file mode 100644 index 00000000..b3871a11 --- /dev/null +++ b/mods/ITEMS/screwdriver/locale/template.txt @@ -0,0 +1,2 @@ +#textdomain: screwdriver +Screwdriver=