Checking the item the player is holding.

Started by DimaFsn on

Topic category: Help with modding (Java Edition)

Last seen on 06:55, 19. Oct 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Checking the item the player is holding.

Please tell me the procedure that checks the object of the holding player with the right click.

Last seen on 22:29, 27. Mar 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com/a/DgY2E3g…
Sun, 07/11/2021 - 22:27

https://imgur.com/a/DgY2E3g 

this will make it so if the player holds, lets say a diamond axe it will send a message to him. now if you want it to not do anything if he has, again lets say an axe it will say " yo! that's not an axe" if the player right clicks without an axe, use the "not" block before the red block that checks for the item in the players hand

Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
New Procedure Global Trigger…
Sun, 07/11/2021 - 22:31

New Procedure

Global Trigger should be Player uses Item

If Provided Item Stack = [item your checking for]

  • Do a thing

 

Last seen on 06:55, 19. Oct 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks.
Tue, 08/03/2021 - 15:49

Thanks.