How do i add a potion effect when i eat a raw meat of any kind?

Started by West0nD3v on

Topic category: Help with modding (Java Edition)

Last seen on 16:30, 18. Jul 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i add a potion effect when i eat a raw meat of any kind?

hey so im adding real life elements to my mod and im adding that when you eat any form of raw meat, there is a chance you can get tapeworms which do nothing other than set ur hunger bar down to a very low value, and i can't find anything that will do that, any help?

Last seen on 02:51, 19. Feb 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try something like this. You…
Mon, 12/20/2021 - 01:16

Try something like this. You'd change the "add potion with level" part to add whatever potion effect you'd like with whatever duration you'd like.