Don't steal this code from this pack or claim this pack is your own and code shouldn't be copyed 

Don't steal please and Credit me

Thanks, UnitX

——This pack adds——

Lifesteal with ban/ghost after last life

———————————

Coded by UnitX

Concept similar to LifeSteal plugin from java

Discord: MasterX#9153

——How to use——
Make sure you have cheats on and experimental gameplay enabled
run these commands
/function setup
for ban after last life: /scoreboard players set full_dead settings 2
for ghost after last life: /scoreboard players set full_dead settings 1
for nothing after last life: /scoreboard players set full_dead settings 0 set to 0 by default

Nothing: after last life just makes the player respawn with 1 life and they don't lose health after that and other players can still kill them for more health

Ghost: after last life makes them invisible and unable to attack or take damage and they can't pick up items and mobs won't attack them and they can't break or place blocks but they can still through items out of contaners but not pick up the items and they can get items from armor stands but they will be cleared of the items and they can also interact with items like 
buttons and pressure plates 

Ban: after last life will disconnect player when ever they try and join the game so they will not be able to join so kinda like a ban the only way to get rid of a ban is changing the after death settings and if the owner gets banned on a world there is no easy way to unban them so the world is basically lost so it's not recommended to use ban after death on worlds  