Soul-?-Link
一个 Minecraft 数据包,用于将你的灵魂与其他玩家连接。
主要机制 ?
-
队伍中所有成员共享生命值
-
当队伍中的某名玩家受到伤害时,该队伍的所有其他成员也会受到相同的伤害
-
如果队伍中没有玩家受到伤害,则所有玩家将恢复生命值,直到达到拥有最多 HP 的玩家的生命值上限
-
如果队伍中的某名玩家获得吸收效果,则该队伍的所有其他玩家也会获得相同的效果
-
如果队伍中的某名玩家死亡,则该队伍的所有其他玩家也会随之死亡
-
要加入团队并同步灵魂,请使用 "/team join sainne.soullink.<color> <player>"
使用方法与玩法(快速入门指南)
- 首先使用 "/function sainne.soullink:.settings" 配置你的游戏,设置最大玩家数量及其他数值。
- 然后在菜单中点击 GO,所有玩家将被分散并分配到各个团队。
- 享受游戏吧!
技术细节 ?
-
由于该数据包依赖于事件触发,因此断开连接可能存在滥用风险。例如:一名团队成员可以在满血状态下断开连接,然后重新连接以恢复其所在团队所有成员的生命值。
-
此外,如果某队伍中有一名玩家的最大生命值高于该队伍其他所有玩家,则可实现无限生命恢复。
-
如果一个玩家的最大生命值高于另一个玩家,那么在剩余生命值的情况下仍然可能死亡,因为如果队伍中的一名玩家死亡,那么该队伍中的所有其他玩家也会随之死亡。
-
如果一名队伍中的玩家拥有图腾并受到致命伤害,同时在这个过程中导致队友死亡,那么这名玩家会死亡并失去图腾。这是部分有意为之的设计,因为拯救队伍免于团灭需要消耗 N 个图腾,且这些图腾应分布在每个队员的手副手中(如果队伍中的每位成员都持有图腾,则全部消耗以完成救援)。
-
由于生命恢复机制的工作原理,唯一能够精确回复的生命值是 2 点,而 0.8 点被排除;最终决定采用前者进行回复,因为生命值的计分板使用的是整数值(Mojang,请提供 /heal 命令,先谢过)
计划中的功能 ?
致谢与灵感来源!✨
本数据包是在 mc-build! 的帮助下构建的,欢迎去支持他们:
MC-Build 的 GitHub
此数据包首先受到 Grian 在 YouTube 上制作的《Double Life》系列的启发:
同时也深受 Boid 制作的“Shared Life”数据包的启发:
Shared Life 数据包在 Modrinth 上的链接
制作此数据包的初衷是希望实现队伍内生命值同步,而不是同步服务器上所有玩家的生命值;同时要求队伍中所有成员的最大生命值相同。在此过程中做出了一些妥协,详见上方的技术说明部分。
Soul-?-Link
A Minecraft datapack, about linking your soul to other players.
Main Mechanic ?
- The health from players in a team is shared between all members from that team
- When a player from a team receives damage, every player from that same team receives the same amount of damage
- If no player from the team has received damage then all players will heal up until reaching the player with the most amount of HP
- If a player from a team obtains absorption then all players from the team receive the effect as well
- If a player from a team dies then all players from that team die as well.
- To join a team and sync souls use "/team join sainne.soullink.<color> <player>"
How to use and play (quick start guide)
- First use "/function sainne.soullink:.settings" to configure your game and assign max number of players and other values.
- Then click GO on that menu, all players will be spread out and assigned teams.
- Enjoy!
Technicalities ?
- Since the datapack depends on events happening then disconnecting has potential for abuse, for example: a player from a team can disconnect while having max hp, and then reconnect to heal all players from their team up.
- And also infinite regeneration is possible if a player from a team has more max hp than every other player from that team.
- And if a player has more max HP than another then it is possible to die while having still HP left, since if one player from a team dies, then every other player from that team also dies.
- If a player from a team has a totem and receives lethal damage, killing a teammate in the process, then they die and lose the totem, this is partially intended, since saving a team from death should cost N totems, with the totems being in the off hand of every member(if every member from the team has a totem, then they are all spent and saved).
- Because of how regeneration works, the only possible value to heal exactly is 2hp, and 0.8hp, ended up deciding for the former for healing since health scoreboard uses int values(mojang give /heal command please and thank)
Planned features ?
- 4 more teams, making a total of 8 teams!
Credits and Inspiration! ✨
This datapack is built with the help of mc-build!, go show it some love:
MC-Build's Github
This datapack is inspired first by the double life series made by Grian on Youtube:
And also it is very much inspired by the "Shared Life" Datapack from "Boid":
Shared Life datapack on modrinth
The reason for making this datapack comes from wanting synced health but with teams, as to not sync the health of all players on the server, and also making it so it works with any max hp, given that all players from a team have the same max hp. In the process there are some compromises however, stated in the technicalities above.
评论 0
登录后参与评分
还没有评论,来抢沙发吧