Detect which item was eaten

Started by LuckyBacon on

Topic category: Help with modding (Java Edition)

Last seen on 22:52, 1. Dec 2020
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect which item was eaten

I'd like to use a single procedure for all of the food that i eat. All of them link the same "eaten" trigger procedure.
So for example, "if the item is banana, set a value to this, else if item is Orange or lemon, set value to that, else if [...] else if... else if... else if...'

Last seen on 21:24, 26. Dec 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use the trigger…
Fri, 11/06/2020 - 07:34

You can use the trigger Player finishes using item