mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-06-30 17:04:56 +00:00
21 lines
678 B
Lua
21 lines
678 B
Lua
|
minetest.register_tool(":worldeditadditions:farwand", {
|
||
|
description = "WorldEditAdditions far-reaching wand",
|
||
|
inventory_image = "worldeditadditions_farwand.png",
|
||
|
|
||
|
on_place = function(itemstack, player, pointed_thing)
|
||
|
print("[farwand] on_place", player:get_player_name())
|
||
|
-- Right click when pointing at something
|
||
|
end,
|
||
|
|
||
|
on_use = function(itemstack, player, pointed_thing)
|
||
|
print("[farwand] on_use", player:get_player_name())
|
||
|
-- Left click when pointing at something or nothing
|
||
|
end,
|
||
|
|
||
|
on_secondary_use = function(itemstack, player, pointed_thing)
|
||
|
-- Right click when pointing at nothing
|
||
|
|
||
|
print("[farwand] on_secondary_use", player:get_player_name())
|
||
|
end
|
||
|
})
|