Jump to content

ANTI-HUNGER RESET SKRIPT PLS


Moruto

Recommended Posts

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.

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

  • 3 weeks later...
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

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

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...