mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Update screwdriver mod for MT 5.0.0
This commit is contained in:
parent
3de818d2c2
commit
eeac1435f9
@ -1,3 +1,5 @@
|
|||||||
|
local S = minetest.get_translator("screwdriver")
|
||||||
|
|
||||||
screwdriver = {}
|
screwdriver = {}
|
||||||
|
|
||||||
screwdriver.ROTATE_FACE = 1
|
screwdriver.ROTATE_FACE = 1
|
||||||
@ -143,8 +145,9 @@ end
|
|||||||
|
|
||||||
-- Screwdriver
|
-- Screwdriver
|
||||||
minetest.register_tool("screwdriver:screwdriver", {
|
minetest.register_tool("screwdriver:screwdriver", {
|
||||||
description = "Screwdriver",
|
description = S("Screwdriver"),
|
||||||
inventory_image = "screwdriver.png",
|
inventory_image = "screwdriver.png",
|
||||||
|
groups = { tool = 1 },
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_FACE, 200)
|
screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_FACE, 200)
|
||||||
return itemstack
|
return itemstack
|
||||||
|
2
mods/ITEMS/screwdriver/locale/screwdriver.de.tr
Normal file
2
mods/ITEMS/screwdriver/locale/screwdriver.de.tr
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# textdomain: screwdriver
|
||||||
|
Screwdriver=Schraubendreher
|
2
mods/ITEMS/screwdriver/locale/template.txt
Normal file
2
mods/ITEMS/screwdriver/locale/template.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#textdomain: screwdriver
|
||||||
|
Screwdriver=
|
Loading…
Reference in New Issue
Block a user