#Clearing *ALL* effects when eating a custom food.

7 messages · Page 1 of 1 (latest)

round moon
#

I've gotten the item itself created, textured, etc, but it would appear that there is no simple way to just tell the item to clear all effects when drinking/eating something.

I've seen other support posts with similar questions, but no helpful answers, since I want this to be able to support any number of other mods' effects as well, but the function demonstrated on the wiki only clears one effect at a time.

I guess a more accurate question here; Is there any way to iterate through all effect IDs to clear them one by one in a single loop, or is there some hidden way to just clear every effect from one function call?

prime bladeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

timid inlet
round moon
#

I'm assuming (by the wiki saying to use it, and that the FoodBuilder.eaten() thing is marked as broken) that I should be using ItemEvents.foodEaten() but I appear to not be able to find any function arguments to pass from this call. (ie; how event is passed into a function by writing event => {})

#

I'm at this point, if it helps to know.

timid inlet
round moon
#

This works! Thank you for the help!