How to make food hurt you

Started by Horsey on Sun, 11/01/2020 - 18:17

Topic category: Help with modding (Java Edition)

Last seen on 20:53, 23. Dec 2020
Joined Nov 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make food hurt you
Sun, 11/01/2020 - 18:17

Im trying to make one of my custom foods hurt you when you eat it, but I have no idea how, and when I tried it gave me error messages.

please help

Last seen on 02:56, 17. Jan 2021
Joined Dec 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make normal food, probably…
Sun, 11/01/2020 - 18:49

Make normal food, probably not have it restore hunger bars, and for the On Eaten Tick, use the damage procedure from the Entity section.

Last seen on 15:52, 27. Jan 2021
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make normal food, probably…
Mon, 11/02/2020 - 08:11

Make normal food, probably not have it restore hunger bars, and for the On Eaten Tick, use the damage procedure from the Entity section.

^ This

Also based on this question, I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei