Checking what item player have in hand

Started by Thorn_132 on

Topic category: Advanced modding

Last seen on 11:14, 17. Dec 2023
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Checking what item player have in hand
Sat, 07/10/2021 - 15:17 (edited)

What i want:

 

check if player have {custom item} in hand when right-clicking custom block ,then change the block to another block,if player has not the right item/nothing in hand then do nothing

 

Can you help me how to do that?

Edited by Thorn_132 on Sat, 07/10/2021 - 15:17
Use procedures in the player…
Sun, 07/11/2021 - 08:15

Use procedures in the player section to interact with the player's inventory. You also have a search bar in the procedure editor which could help you achieve what you're trying to do.