Checking the item the player is holding.

Started by DimaFsn on Sun, 07/11/2021 - 19:11

Topic category: Help with modding (Java Edition)

Last seen on 12:33, 11. Sep 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Checking the item the player is holding.
Sun, 07/11/2021 - 19:11

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

Last seen on 22:25, 20. Sep 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:01, 27. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 12:33, 11. Sep 2021
Joined Jun 2021
Points:

User statistics:

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

Thanks.