支持的 MC 版本:1.20.1 - 26.1.2
你和你的朋友将拥有 8 条命(可配置),需要组队合作才能生存。游戏开始时有一段宽限期,在此期间没有人会失去生命;经过一段可配置的时间后,你将失去宽限期保护,并在死亡时开始扣除生命。这是一种有趣的玩法模式,也可以作为服务器管理员轻度自定义体验的工具。你可以复活同一队伍中的队友,并为自己增加生命。继续阅读以获取更多设置信息。
设置步骤:
1. 将玩家加入数据包自带的队伍。
/team join <teamname> <playername>

2. 设置宽限期时间或将其关闭。
/scoreboard players set GracePeriodCountDown TLConfig <1-6>
1 = 5 分钟
2 = 10 分钟
3 = 20 分钟
4 = 30 分钟
5 = 1 小时
6 = 2 小时
/function teamlives:gracetoggle
设置时间后,倒计时结束时会自动关闭宽限期。
玩家命令:
/trigger revive
尝试复活一名在线且与你同队的玩家。
/trigger addlife
给予你一条额外生命,代价是一个下界之星(下界之星必须位于副手栏)。
可选设置
防止“已死亡”玩家离开出生点
/function teamlives:marker
此命令会在你站立的位置设置一个标记点,并阻止玩家远离该位置。(若想移动它,请确保先杀死被标记为 <DeathZoneMarker> 的最后一个标记实体。)
为特定玩家关闭死亡扣命
/scoreboard players set <playername> LifeLoss 0
此命令允许你为指定玩家关闭死亡时的生命扣除。
队伍初始生命数
位于 TeamLivesV-1.0\1.21-26.1\data\teamlives\function\load.mcfunction
修改第 8 行末尾的数字,即可设定首次加入游戏的玩家所分配的生命数量。
Supported MC version 1.20.1 - 26.1.2
You and your friends will start out with 8 lives (configurable) and need to team up to survive. At the beginning there is a grace period where no one will lose lives, after a configurable amount of time you will lose Grace Period and start to lose lives on death. This is meant to be a fun gamemode or tool for server owners if they would like a lightly configurable experience. You are able to revive teammates in the same team and add lives to yourself. More info on set up if you keep reading.
Setup:
1. Add players to the teams that come with the datapack.
/team join <teamname> <playername>

2. Set Grace Period time or toggle it off.
/scoreboard players set GracePeriodCountDown TLConfig <1-6>
1= 5 minutes
2= 10 minutes
3= 20 minutes
4= 30 minutes
5= 1 hour
6= 2 hours
/function teamlives:gracetoggle
Setting a time will automatically toggle grace off when the countdown ends.
Player Commands:
/trigger revive
_This will try to revive a player that is online and in the same team as you.
_
/trigger addlife
This will give you an extra life at the cost of a nether star (nether star must be in offhand)
Optional Settings
Prevent "dead" players from leaving spawn
/function teamlives:marker
This command will set a marker where you are standing and will not let players go far away from it. (If you want to move it make sure you kill the marker entity tagged <DeathZoneMarker> the last one.)
Turn life loss off for specific players
/scoreboard players set <playername> LifeLoss 0
This command allows you to turn off life loss on death for the specific player you want.
Team starting lives
Found in TeamLivesV-1.0\1.21-26.1\data\teamlives\function\load.mcfunction
Change the last number on line 8 to set how many lives players who join for the first time are set to
评论 0
登录后参与评分
还没有评论,来抢沙发吧