#Locational Body Damage? Or Max Health Fix alternative?

32 messages · Page 1 of 1 (latest)

sturdy sable
#

Is there anyway to basically replicate what the first aid mod does, separates the players health into different limbs, using KubeJS and its addons?

Looking for alternatives to that mod since the max health fix mod, a mod that fixes a old bug related to health resetting to 20 if the player has more than 20 health once the player relogs the world, doesn’t seem to work with first aid so the bug still persist

If there is anyway to solve this bug via KubeJS or just recreate First aid with KubeJS please let me know as this bug is really annoying : )

lethal ingotBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

grand stirrup
#

I kinda have this problem too but I fixed the bug with spawning

#

*when the player respawns

#

The health reduction thing is still a problem

silver zodiac
#

First aid seems more complicated. How about replacing the max health fix with kubejs instead

#

iirc, we can get player's health when logged out. If we can record that value, we can add the health back to the player when they log in

sturdy sable
#

after the checking its code it looks like the mod applies the health at the end of the first tick, no idea how first aid manages its own health system

grand stirrup
#

I've never tackled anything remotely to this and first aid tends to screw up other things such as Alex's Caves Magnetism

sturdy sable
grand stirrup
#

I mean pre-relogin health

sturdy sable
grand stirrup
#

I think first aid somehow overrides the health fix mod bcs that the problem during respawn I had

sturdy sable
grand stirrup
#

But you need to touch the configs

#

Oh I did not finish reading the paragraph 💀

sturdy sable
grand stirrup
sturdy sable
#

I’ll wait for someone else to see if they want to help me with this issue BigEyes well technically everyone that plays with first aid may requiere a fix for that anyways

grand stirrup
sturdy sable
#

bump this, I finally fixed the issue related to first aid client funkiness or wtv here is an example without and with the fix so y'all understand what I mean

#

without the fix on every relog when the player has >20 health

#

with the fix on the same conditions

#

for some reason the player does have the stated health is just the client that says otherwise the quickiest fix was to do a /damagePart ALL 0.0001 nodebuff this way it resets the heart display on the client and it just works

#
 const player = event.player;
     if(player.getTags().toString().includes('NoDamageReset')){
     player.runCommandSilent(`execute as ${player.username} run damagePart ALL 0.00001 nodebuff`)
     player.removeTag('NoDamageReset')
     
     } else return;
})

PlayerEvents.loggedOut(event => {
 const player = event.player;

     player.addTag('NoDamageReset')
})```
#

here is what I did maybe someone can improve this idk it just works

silver zodiac
#

Maybe you could use logged in or respawn/spawn event instead of tick

sturdy sable
#

I tried to but the player health its always at 20/20 on loggedIn for some reason, so it doesn't factor applied health from other mods, I'll try again I guess