The problem with food

Started by Ser_nih on

Topic category: Help with MCreator software

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The problem with food

Hi, I have several types of food, and each of them gives a unique potion effect, but when I eat one of them, I get the effects of ALL the types of my food that are in the inventory. please help me to make it so that the effect of the food I eat is given. Thank you in advance

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you add screenshots of…
Sun, 04/18/2021 - 13:33

Can you add screenshots of your project?

Maybe you have bug in procedure

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Sun, 04/18/2021 - 14:37

procedure

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you for answering
Sun, 04/18/2021 - 14:38

thank you for answering

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you need other…
Sun, 04/18/2021 - 17:25

If you need other screenshots, please tell us

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you give us a higher res…
Sun, 04/18/2021 - 20:49

Can you give us a higher res image? We can't even read it!

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bruh, the image resolution…
Mon, 04/19/2021 - 00:18

bruh, the image resolution is so low... but, is that the "Player finishes using item" global trigger I see you're using? if you're making a simple "add potion effect" procedure for custom food/s only, please don't use global triggers. also, you did not even use an if-statement with a "provided itemstack = [your food]" condition check for it, to see if the food that's eaten by the player is equivalent to your unique food... 

to give you a simple fix: go to your food's mod element, go to the "triggers" tab, then use the food's "when food is eaten" trigger instead:

https://i.imgur.com/t14oaCp.png

just put your procedure there that gives a unique potion effect to the player who eats it. remember to use this trigger for every single food you make that will add potion effect/s or do something unique.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
pardon me if I sounded harsh…
Mon, 04/19/2021 - 00:39

pardon me if I sounded harsh btw; I didn't mean it. I simply wanted to help, but I guess I may have gotten a little carried away, looking back, that I think I even looked like an elitist modder from the Minecraft Forge forums XD

here's an additional tip: always upload high-resolution images next time so that we will be able to clearly identify the things in them and be able to help wherever it's needed