Started by
JPZamps
on
Topic category: Help with Minecraft modding (Java Edition)
The idea would basically be a Silver tape that the player could hold in his hand and it would only be necessary to have an item in his left hand/off-hand, as soon as the player clicked the item in his left hand/off-hand would heal +16 durability and the tape would disappear or lose -1 durability
Any ideias how? im kind lost with this one
I don't think you can simply use code blocks to achieve this functionality. You may need to write code in the use() function of your Item class. Here's some example code I wrote that can consume 1 durability point from a tape item and repair 16 durability points of another item held in the player's offhand. If the offhand item is not damaged or is also a tape item, the repair will not be attempted to prevent two tape items from repairing each other.
i neveer tank you for it, even tho is almost a year, it works thank you!!