Eat food if logic variable is true

Started by jerrow4 on Sat, 01/16/2021 - 19:58

Topic category: Help with MCreator software

Last seen on 14:31, 10. Feb 2021
Joined Jan 2021
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Eat food if logic variable is true
Sat, 01/16/2021 - 19:58

Please, help me. I want if my logic variable is true, i can eat the food, if variable is false, i cant eat it. I will be very glad if you help me.

Last seen on 19:00, 27. Feb 2021
Joined Jan 2021
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't know if I'll help…
Sat, 01/16/2021 - 21:33

I don't know if I'll help you, but I have an idea

Make two different items that would be the food you can eat and one item that you cannot, both with the same texture and name

Then put in the procedures that when the variable that lets you eat is true, if you have the inedible item, it removes it and gives you the edible, and if the variable is false, it removes the edible item and gives you the one that is not.

I don't know how to show it or something because this account is new and I have little knowledge of how it works (although I know a decent amount of modind)
If someone can transfer this idea to procedures or explain it better it would be of great help
I hope I have helped
(any spelling mistakes: google translator's fault)

Last seen on 14:31, 10. Feb 2021
Joined Jan 2021
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks for your idea, i'll…
Sun, 01/17/2021 - 08:59

Thanks for your idea, i'll try it