Started by 
timothédoda
 on 
    Topic category: Help with Minecraft modding (Java Edition)
I have a piece of code that runs when an item is right-clicked. If it meets a certain condition (which you don’t need to know), it should remove the item and replace it with another item that has the same texture.
Additionally, I want to add data to this new item so that I can use it later in a procedure triggered by the second item.
Also just wanted to mention that the two blocks at the beggining of the code do not really matter
like this?