Minetest-WorldEditAdditions/worldeditadditions_farwand/lib/farwand.lua
Starbeamrainbowlabs 6f20b31763
Strat work on a far-reaching wand, but it isn't finished yet.
We've got all the backend functions we'll probably need implemented 
though!
2020-06-13 02:08:03 +01:00

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
})