- check_circle Functions
- 1,842 views, 1 today
- 92 downloads, 0 today
18
Max health lowers the further you are from friends
This datapack changes the maximum health of individual players the further they are from the group's average location. It does not account for dimensions, only coordinates. By Default, the location updates every minute and you lower a heart every 20 blocks away from this location. However, with the below commands you can increase the update speed all the way to every 1s, and change how much distance t takes to lose health (from every 10 blocks to every 100 blocks). If any bugs occur, try /reload, and if they still occur please let me know. This gamemode can be used for a one time gimmick, or to encourage players on a small server to work together and not all go off and cause lots of exploration-based-lag.
Note: Due to the way minecraft works, the visual of your max health changing might not always update immediately. Sometimes it does, sometimes it does not. It definitely will once you heal/take damage.
When close together, speed, dolphins grace, and regeneration are given.
Commands / Settings
Lower Power = Less Lag
Commands will take a moment to update (based on however often the power updates)
/function avghealth:veryhighpower - updates location every 1s
/function avghealth:highpower - updates location every 10s
/function avghealth:mediumpower - updates location every 30s
/function avghealth:lowpower - updates location every 60s (default)
/function avghealth:veryhighdistance - Health Changes Every 100 blocks
/function avghealth:highdistance - Health Changes Every 50 blocks
/function avghealth:mediumdistance - Health Changes Every 20 blocks (default)
/function avghealth:lowdistance - Health Changes Every 10 blocks
Always back up your world before using a datapack
If you like this, you may also like a worldborder based on the same code:
https://www.planetminecraft.com/data-pack/center-a-worldborder-of-any-size-at-the-average-changing-multiplayer-location-in-the-game-low-energy-less-lag/
I recommend using the Simple Voice Chat Mod while using these datapacks.
You have permission to use this datapack for any means, as long as you give credit.
This datapack changes the maximum health of individual players the further they are from the group's average location. It does not account for dimensions, only coordinates. By Default, the location updates every minute and you lower a heart every 20 blocks away from this location. However, with the below commands you can increase the update speed all the way to every 1s, and change how much distance t takes to lose health (from every 10 blocks to every 100 blocks). If any bugs occur, try /reload, and if they still occur please let me know. This gamemode can be used for a one time gimmick, or to encourage players on a small server to work together and not all go off and cause lots of exploration-based-lag.
Note: Due to the way minecraft works, the visual of your max health changing might not always update immediately. Sometimes it does, sometimes it does not. It definitely will once you heal/take damage.
When close together, speed, dolphins grace, and regeneration are given.
Commands / Settings
Lower Power = Less Lag
Commands will take a moment to update (based on however often the power updates)
/function avghealth:veryhighpower - updates location every 1s
/function avghealth:highpower - updates location every 10s
/function avghealth:mediumpower - updates location every 30s
/function avghealth:lowpower - updates location every 60s (default)
/function avghealth:veryhighdistance - Health Changes Every 100 blocks
/function avghealth:highdistance - Health Changes Every 50 blocks
/function avghealth:mediumdistance - Health Changes Every 20 blocks (default)
/function avghealth:lowdistance - Health Changes Every 10 blocks
Always back up your world before using a datapack
If you like this, you may also like a worldborder based on the same code:
https://www.planetminecraft.com/data-pack/center-a-worldborder-of-any-size-at-the-average-changing-multiplayer-location-in-the-game-low-energy-less-lag/
I recommend using the Simple Voice Chat Mod while using these datapacks.
You have permission to use this datapack for any means, as long as you give credit.
Compatibility | Minecraft 1.19 |
Tags |
2 Update Logs
Update #2 : by kaimedina 05/24/2023 8:20:38 pmMay 24th, 2023
Bug fixes
LOAD MORE LOGS
tools/tracking
5941651
119
lifebound-max-health-lowers-the-farther-you-are-from-friends
Create an account or sign in to comment.
https://drive.google.com/file/d/1kILp4Au4y3uBJSRihFfL7ZUnvPg1chMd/view?usp=sharing
If you test it out, let me know if it works! You can go into spectator to view the armor stand at this position.
Alternatively,
If you set a command:
/tp @e[tag=HealthSusan] 0 62 0
on loop in a command block, then put it on the lowest power, that should be good enough to get that going.