How do I get a lower natural regeneration rate?

How do I get a lower natural regeneration rate? - Crop man outstretched hand reaching out for waterfall in nature

So, for my PvP arena I used to have a command:

effect @a minecraft:saturation 1000000 20 true

... which runs constantly to keep the hunger bar full, so that natural regeneration slowly regenerates health.
However, if do it in the latest snapshot, this effect breaks with the new food system and instead it regenerates health at a ridiculous rate (1 heart per second), even if saturation is at level 1.

Is there any way I can keep the hunger up, but with a lower regeneration rate than the one that has been introduced in the 1.9 snapshots?



Best Answer

So you want your players to never starve, but also not to regenerate too quickly? Here's the best solution I could find:

First, we need to make sure the hunger bar stays at 19 so that both your players don't starve AND they regenerate slower. To do this, first, let's create an objective to detect the players' hunger.

  1. Type: /scoreboard objectives add [YOUR OBJECTIVE NAME] food <--- This will detect the players' hunger levels. (whether they are on 20, 19, etc., but it'll NOT detect a certain hunger level
  2. Put a command block and put this command into it: /effect give @a[scores={YOUR OBJECTIVE NAME=18}] minecraft:saturation 1 0 true <--- This will make it so that if a player's hunger is 18 and below, it'll put them back to 19.
  3. Set the "Impulse" to "Repeat" and "Needs Redstone" to "Always Active" and boom! You're done! <--- This applies to the command block you just put on your server.

Remember, this only applies once your players' hunger effect starts to decrease, which won't be a problem since the hunger bar decreases quicker than the Speed II effect.

Now, if you did that all correctly, your players' hunger bars should stay at 19 and neither decrease OR increase. (unless you are planning to give them golden apples, then it'll increase)

And there you go! It's all done. Sorry for the late response by the way.




Pictures about "How do I get a lower natural regeneration rate?"

How do I get a lower natural regeneration rate? - Iguazu falls
How do I get a lower natural regeneration rate? - Gray Textile on Brown Wooden Table
How do I get a lower natural regeneration rate? - Aerial View Of Coast



How do you slow down regeneration in Minecraft?

Put a command block and put this command into it: /effect give @a[scores={YOUR OBJECTIVE NAME=18}] minecraft:saturation 1 0 true <--- This will make it so that if a player's hunger is 18 and below, it'll put them back to 19.

How do you stop natural regeneration?

It provides Regeneration IV for 30 seconds and Resistance I and Fire Resistance for 5 minutes. Added beacons. They can be configured to provide Regeneration I. Added horses, which regenerate slowly by themselves.

How fast is natural regeneration in Minecraft?

The player's maximum health: a higher maximum health means a faster regeneration rate. Movement: if the player is standing still, their regeneration rate is increased by a factor of \xd71.25. Rest: if the player is lying on a bed or sitting on a chair or sofa, their regeneration rate is boosted by a factor of \xd71.5.



The Power of Assisted Natural Regeneration: How We Can Help Nature Grow Back




More answers regarding how do I get a lower natural regeneration rate?

Answer 2

You could try adding no flinch to the server, and make it take away health while regenerating health. But if you want to keep it vanilla and/or want the PvP to stay mod-free then I don't know if that suggestion will work. But maybe if you can calculate how many hearts it regenerates per second and put a regenerate effect on the command block based on the seconds, then that could work. I don't know, I'm just trying to be creative here so I could help you out.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Erik Mclean, Rodolfo Clix, cottonbro, Victor Freitas