An alternative and probably faster:Mwamba wrote:
- Any good way to find out if player's wielded item is a tool (and not a block)?
Code: Select all
local stack = player:get_wielded_item()
local def = stack:get_definition()
if def.type == "tool" then
-- do something
end