5
How do you remove hunger without peaceful mode?help_outline
I saw that some people have this as a feature for their maps, so I was wanting to know how to do it for one of my own.
Create an account or sign in to comment.
4
Use a Command Block: Place a command block and set it to ‘Repeat’ and ‘Always Active’.
Apply Saturation Effect: Enter the command /effect @a saturation 99999 255 true. This gives all players the highest level of saturation, which replenishes hunger but doesn’t regenerate health.
Activate the Command Block: Once you’ve entered the command, the command block will continuously apply the effect, preventing hunger from depleting.
Apply Saturation Effect: Enter the command /effect @a saturation 99999 255 true. This gives all players the highest level of saturation, which replenishes hunger but doesn’t regenerate health.
Activate the Command Block: Once you’ve entered the command, the command block will continuously apply the effect, preventing hunger from depleting.
Something else I’ll add for future readers is that since the command block will always be active, it will constantly fill the chat with spam. You can enter “/gamerule commandblockoutput false” into the chat to stop this from happening. And to make sure that removing hunger doesn’t also remove health, enter “/gamerule naturalregeneration false” into the chat.
You should also be able to hide the hunger bar from the HUD now by adding a chain command block to that with "hud @a hide hunger"
(funnily enough when I tried the command it doesn't do anything, I can hide everything except for the hunger bar, not sure if this is only me or if it's a bug)
(funnily enough when I tried the command it doesn't do anything, I can hide everything except for the hunger bar, not sure if this is only me or if it's a bug)
Thank you!