How do you make food useless?

Started by Bit Catalyst on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you make food useless?

I'm looking to make a potion effect that makes eating food not bring your hunger up. Or even just removes the ability to eat all together. Anyone know how I can do this?
(Again, as I'll say in all my posts, saying this isn't possible isn't helpful. I'm willing to dive into custom code if I need to.)

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you can set the food…
Mon, 11/14/2022 - 08:02

I think you can set the food values of the item all to 0 so no saturation and hunger refill. And fot the effect i think tha you can use the normal hunger effect or u make it so when right click with item check if its food the if ur custom effect is on the player and the under advaced there is a block called cancel event that triggerd event or so and that u have to use