Player Holding Item Help

Started by sw0rdmas73r on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Player Holding Item Help

I am working on a mod where it requires the player to hold specific items in order for specific things to happen. However... I don’t know how to check if a player is holding a specific item.

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can tell when you have…
Sun, 05/02/2021 - 00:11

You can tell when you have the object in the main hand (main-hand)
and in the secondary hand (off-hand)
use "on player tick update".
https://imgur.com/a/EJpYg3P

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i am making a mod that…
Fri, 07/22/2022 - 20:25

i am making a mod that creates paint blocks but when i try to delete it it creates another paint block and i can also delete other blocks