How would I detect a player holding a certain item when they right click on a block?

Started by Zonespace on

Topic category: Help with MCreator software

Last seen on 02:20, 6. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I detect a player holding a certain item when they right click on a block?
Sat, 12/05/2020 - 05:59 (edited)

I'm trying to figure out how to make a keycard-esque system. My intent is for a modded block, when right clicked, will check if the player who clicked is holding a keycard in their hand. How would I do this?

Edited by Zonespace on Sat, 12/05/2020 - 05:59
Last seen on 02:20, 6. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I should add this is using…
Sat, 12/05/2020 - 05:43

I should add this is using the depreciated 1.12.2 version.