描述
离朋友越远,最大生命值越低
这个数据包会根据玩家距离团队平均位置的远近,来改变其最大生命值。它不考虑维度,只考虑坐标。默认情况下,位置每分钟更新一次,且每远离该位置 20 格就会减少一颗心。不过,通过以下命令,你可以将更新速度提高至每 1 秒一次,并更改失去生命值所需的距离(从每 10 格到每 100 格)。如果出现任何错误,请尝试执行 /reload;如果问题仍然存在,请告知我。这种游戏模式既可以作为一次性噱头使用,也可以鼓励小服务器上的玩家合作,而不是各自分散去进行大量导致延迟的探索。
注意:由于 Minecraft 的运行机制,最大生命值变化的视觉效果可能不会立即更新。有时它会立即更新,有时则不会。但在你治疗或受到伤害时,它肯定会更新。
更新:在近距离内,玩家会获得增益效果以奖励抱团行为(海豚之恩、速度、再生)
命令 / 设置
降低功耗 = 减少延迟
命令需要一段时间才能更新(取决于功耗设置的更新频率)
/function avghealth:veryhighpower - 每 1s 更新一次位置
/function avghealth:highpower - 每 10s 更新一次位置
/function avghealth:mediumpower - 每 30s 更新一次位置
/function avghealth:lowpower - 每 60s 更新一次位置(默认)
/function avghealth:veryhighdistance - 每 100 格改变一次生命值
/function avghealth:highdistance - 每 50 格改变一次生命值
/function avghealth:mediumdistance - 每 20 格改变一次生命值(默认)
/function avghealth:lowdistance - 每 10 格改变一次生命值
其他
在使用数据包之前,请务必备份你的世界
如果你喜欢这个,你可能也会喜欢一个基于相同代码的世界边界:
建议在使用这些数据包时使用 Simple Voice Chat Mod。
只要署名,你就有权以任何方式使用此数据包。
Description
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 it 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.
Update: At close proximity, players gain buffs to reward sticking together (dolphins grace, speed, & regen)
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
Other
Always back up your world before using a datapack
If you like this, you may also like a worldborder based on the same code:
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧