Right click existing item

Started by Chappe67 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right click existing item

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!

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
create a global procedure,…
Thu, 02/18/2021 - 14:56

create a global procedure, and set the global trigger to "Player right clicks with item" and go from there.

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Then in the procedure, check…
Tue, 03/16/2021 - 11:41

Then in the procedure, check if the player has a clock in his main-hand

If it is so, then you can do whatever.