Moruto Posted December 28, 2022 Share Posted December 28, 2022 I want a skript where if a player dies his hunger bar dont reset pls i need it to make the food worth buying on my box server Owner Of MorutosBox Join My Server: MorutosBox.minehut.gg My Discord Server Moruto#9540 - Discord Link to comment Share on other sites More sharing options...
rosabel Posted December 29, 2022 Share Posted December 29, 2022 When a player dies, set a variable to him that is his current food count. When he respawns, set his food to that variable, and then delete the variable if you're all about conservation. RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRi code, animate, develop, UI design, learn, and adapt, as well as make servers, of courseJoined Minehut sometime in 2014VIP sometime in 2018Legend in January 2021Helper on 4/11/2021♥ (Retired) on 5/17/2021 Moderator on 8/18/2023 Link to comment Share on other sites More sharing options...
Moruto Posted January 17, 2023 Author Share Posted January 17, 2023 On 12/29/2022 at 8:33 AM, rosathorn said: When a player dies, set a variable to him that is his current food count. When he respawns, set his food to that variable, and then delete the variable if you're all about conservation. can u maake me it pls? Owner Of MorutosBox Join My Server: MorutosBox.minehut.gg My Discord Server Moruto#9540 - Discord Link to comment Share on other sites More sharing options...
I_DrCool Posted January 18, 2023 Share Posted January 18, 2023 On 1/17/2023 at 6:50 AM, Moruto said: can u maake me it pls? this should work on death of player: set {playerfood::%victim%} to victim's food level on respawn: wait 1 tick if {playerfood::%player%} is set: set player's food level to {playerfood::%player%} delete {playerfood::%player%} Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now