Topic category: Help with modding (Java Edition)
OKAY so this is my last resort because I've tried searching everywhere else for some help on this, but I'm drawing a blank! So I basically have made a coffee grinder block (successfully) and I want to add a right-click procedure to it.
Basically, if a player is holding a 'Coffee Bean' item, they can right-click the grinder to turn the coffee bean into ground coffee. If the player does not have any coffee beans, it'll send a message in the chat saying "You need coffee beans first!"
I did want to make it more complex but if I can just figure this out then I can work on doing the harder stuff another time! How do I go about this? I've made this procedure so far (https://i.imgur.com/anX62Q4.png) but as you can see, it isn't working due to a missing dependency that I don't know how to resolve! Can someone PLEASE explain this? I'd appreciate it greatly!