mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +01:00
Begin the add code for the Perfect Screwdriver
(a finir)
This commit is contained in:
parent
b909ef2024
commit
4d605f093d
@ -56,7 +56,7 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
|
||||
return itemstack
|
||||
end
|
||||
|
||||
-- Screwdriver
|
||||
-- Screwdriver (en steel à 200 utilisation)
|
||||
minetest.register_tool("screwdriver:screwdriver", {
|
||||
description = "Screwdriver (left-click rotates face, right-click rotates axis)",
|
||||
inventory_image = "screwdriver.png",
|
||||
@ -68,6 +68,19 @@ minetest.register_tool("screwdriver:screwdriver", {
|
||||
screwdriver_handler(itemstack, user, pointed_thing, ROTATE_AXIS)
|
||||
return itemstack
|
||||
end,
|
||||
}
|
||||
-- Perfect Screwdriver (en mithril à 10 000 utilisations)
|
||||
minetest.register_tool("screwdriver:screwdriver_perfect", {
|
||||
description = "Perfect Screwdriver (left-click rotates face, right-click rotates axis)",
|
||||
inventory_image = "screwdriver_perfect.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
screwdriver_handler(itemstack, user, pointed_thing, ROTATE_FACE)
|
||||
return itemstack
|
||||
end,
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
screwdriver_handler(itemstack, user, pointed_thing, ROTATE_AXIS)
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user