So the idea for this is when you kill someone, you swap hearts with them. Its simple enough, but I am a noob when it comes to modding so I dont really know how, does anyone else know? (If anyone also knows how to make it so when someone joins for the first time they spawn in with 10-20 hearts also please say something)
1. if u would swap their hearts they would both die cuz u swap 0 hearts on death so what did u expect?
2. u can do it by taking victim hearts using nbt blocks and setting them for attacker hearts using another nbt block