I need help understanding what is going on with the event I am trying to make. I made an event to fire when a player right clicks on a custom log with a vanilla minecraft bowl, and have it return to the user 1 maple syrup.
I threw in some chat components to try to help me fix this, and from what I can see, the event fires 4 times.
But for a reason of which I do not understand, it only takes 1 bowl away, while adding 2 maple syrups to my inventory. Any help in understanding why this isn't working would be very much appreciated.
So I started messing around and the came to the realization that the event fires anytime a player right clicks on a block, so it should be safe to assume that I may have absolutely no idea what I am doing with this method.
After some searching I think I found the solution.
I had trouble pasting in the code so here's a picture https://prntscr.com/nbciwt
When you hover over PlayerInteractionEvent.RightClickBlock some information
should appear. I hope that explains what I changed to your code.