Detect which item was eaten

Started by LuckyBacon on Fri, 11/06/2020 - 00:52

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Detect which item was eaten
Fri, 11/06/2020 - 00:52

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 06:55, 27. Apr 2021
Joined Dec 2017
Points:

User statistics:

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

You can use the trigger Player finishes using item