Unaccessable item wear
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local .. = function(pos, node, puncher)
local item = puncher:get_wielded_item()
if item:get_name() == ".." then
..
item:add_wear(-1000)
end
end
end
I can actually print the wear but i can't add any value.
Can anyone help me please?