mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-06-29 08:24:55 +00:00
Starbeamrainbowlabs
6f20b31763
We've got all the backend functions we'll probably need implemented though!
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
|
|
})
|