Skip to content

Commit

Permalink
range
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Oct 12, 2023
1 parent 9565f8b commit e453306
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion register_wand.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
-- TODO: common node-registration function

minetest.register_tool("mtui:register_wand", {
description = "UI Register wand",
inventory_image = "mtui_register_wand.png",
stack_max = 1,
range = 0,
on_use = function(_, player, pointed_thing)
local pos = pointed_thing.under
if not pos then
return
end
local node = minetest.get_node_or_nil(pos)
local playername = player:get_player_name()

Expand Down

0 comments on commit e453306

Please sign in to comment.