Topic category: Help with Minecraft modding (Java Edition)
I'm new here, so maybe it's very obvious, but I couldn't find an awnser... I'm trying to create a Minecraft Java Edition 1.15.2 Forge mod, where I need all kinds of things to happend when I right-click with a clock in my main-hand. I created my procedure, and it starts whenever "Player right clicks with item". I then do an if statement to check whether the player is holding a clock in his main hand. This will probably not be the easiest way to do it, but it seems to me this should work. However, noting happends. I suspect it is because when right-clicking with a clock, it doesn't actually right-click (There is no animation or anything). Is there any way I can make a vanilla clock right-clickable when holding it? Thanks in advance!
create a global procedure, and set the global trigger to "Player right clicks with item" and go from there.
Then in the procedure, check if the player has a clock in his main-hand
If it is so, then you can do whatever.