how do you make a "can use item" procedure

Started by The worlds sma… on

Topic category: Help with Minecraft modding (Java Edition)

how do you make a "can use item" procedure

Im trying to make an item that can only attack when it has over a certain amount of durability but I dont know how to do it