This commit is contained in:
BuckarooBanzay 2023-06-21 17:27:51 +02:00
parent d998058bcd
commit 4938c09b27
2 changed files with 6 additions and 1 deletions

View File

@ -1,2 +1,3 @@
name = pick_and_place
description = Pick and place utility
depends = wield_events

View File

@ -5,11 +5,15 @@ minetest.register_tool("pick_and_place:placer", {
stack_max = 1,
range = 0,
on_use = function(itemstack, player)
print("on_use: " .. itemstack:get_name() .. ", " .. player:get_player_name())
end,
on_focus = function(itemstack, player)
print("on_focus: " .. itemstack:get_name() .. ", " .. player:get_player_name())
end,
on_step = function(itemstack, player)
print("on_step: " .. itemstack:get_name() .. ", " .. player:get_player_name())
end,
on_blur = function(player)
on_blur = function(itemstack, player)
print("on_blur: " .. itemstack:get_name() .. ", " .. player:get_player_name())
end
})