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

Active 4 years ago
Joined Dec 2020
Points:
598

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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
Active 4 years ago
Joined Dec 2020
Points:
598

User statistics:

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

I should add this is using the depreciated 1.12.2 version.