"When Food Eaten" trigger is missing

Started by DaRealHerobrine on

Topic category: Troubleshooting, bugs, and solutions

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"When Food Eaten" trigger is missing
Tue, 05/10/2022 - 18:03 (edited)

Build info: MCreator 2022.1.19518, forge-1.18.2, 64-bit, 7644 MB, Windows 8.1, JVM 17.0.1, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2022-05-10-10:52:03

Expected behavior: the Item mod element has a When Food Eaten trigger for procedures, similar to the one from the now deprecated Food mod element.

 

Actual behavior: there is no When Food Eaten trigger, seemingly making it impossible to give food items after-effects or events.

Image of Food Properties

Image of Triggers

Workaround: No working solution found yet, I did see something in another thread about changing the procedure's source code but that doesn't seem to work for me.

Edited by DaRealHerobrine on Tue, 05/10/2022 - 18:03
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You clicked item, those are…
Wed, 05/11/2022 - 17:50

You clicked item, those are item triggers. You need to make a new element that's a food.

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You clicked item, those are…
Wed, 05/11/2022 - 22:32

You clicked item, those are item triggers. You need to make a new element that's a food.

 

You seem to misunderstand. Food mod elements have been removed in 2022.1. They are now part of the item mod element.

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Player finishes using item"…
Thu, 05/12/2022 - 01:12

"Player finishes using item"
U can use this trigger for it.

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Player finishes using item"…
Thu, 05/12/2022 - 06:18

"Player finishes using item"
U can use this trigger for it.

Uhh, doesn't that also take effect if the player releases the key that's using the item before it's eaten? As far as I can tell, that's how it works (it's also literally described as doing that in the trigger description). Therefore, that won't work because if the player stops holding the right mouse button (or whatever keybind they have for using items), they still get the food's after-effects despite not eating it.

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
They should add in the food…
Sat, 05/14/2022 - 14:40

They should add in the food properties "On Food Consumption" trigger

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for me its working perfectly…
Fri, 06/17/2022 - 06:45

for me its working perfectly with Player finishes using item.
it triggers for me only if the player hold the rightclick until its complete consumed.

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Normal, they are THE SAME…
Fri, 06/17/2022 - 08:17

Normal, they are THE SAME trigger. Only the name changed.