Jump to content

Question about player health/hunger


Recommended Posts

You have a couple of options for this.

WorldGuard has some flags you can enable in a region to disable natural hunger loss or automatically feed players while inside the region. You likely already have or need this plugin if the server requires spawn protection or similar mechanics. There are also flags for invincibility, which is presumably what you meant by "no one can lose health".

You could also write a Skript that constantly sets the hunger level of all players to max or cancels all food bar change events. Damage events can also be canceled.

Link to comment
Share on other sites

All of the above responses are completely correct and are great solutions to your inquiry. I would personally recommend worldguard. A great tutorial on how to use the plugin can be found here. Once you use the guide to create the region, just run the command /rg flag regionname invincible allow. Members should then be invincible in that region. If you also wanted to do this in a more vanilla way, you could have two repeating command blocks that apply the effects saturation and instant health to all players, all the time.


Hope this helps,


Joined on January 17th 2016

VIP since April 5 2017 - August 1st 2019

JrMod since August 1st

Mod since October 1st

SrMod since November 2nd - 2/7/21

Patron since February 8 - 3/7/21

Mod since March 8 2021

Retired since idk when


    [IMG]    button.png?t=Appeal&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1 button.png?t=Rules&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1  

If I helped or entertained you at all today, please react with a heart.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...