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
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# textdomain: screwdriver
|
||||||
|
Screwdriver=Schraubendreher
|
|
@ -0,0 +1,2 @@
|
||||||
|
#textdomain: screwdriver
|
||||||
|
Screwdriver=
|
Loading…
Reference in New Issue