How to turn off eating

Started by CaiGuyCrafter on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to turn off eating

In my mod, I'm making this dimension that you can only get to if you die. There is literally nothing there, though. No trees, no animals, nothing, so you couldn't even eat if you wanted to. If I left eating on, you would never be able to get out, so I think I want to turn off hunger points for only when you are in that dimension. Hope it makes sense. Obviously, I don't know how to code that, I'm so bad, lol. If anyone could help that would be great. 

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the only way i can think of…
Tue, 04/13/2021 - 08:20

the only way i can think of is giving hunger maybe.like checking if player has enough food points

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh ok thanks, I'll try it
Mon, 05/17/2021 - 15:06

Oh ok thanks, I'll try it