Checking what item player have in hand

Started by Thorn_132 on

Topic category: Advanced modding

Active 1 week ago
Joined Oct 2020
Points:
704

User statistics:

  • Modifications: 1
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 32
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.