共享生命的硬核模式
适用于普通硬核和超级硬核模式
在原版硬核模式中,当服务器上的某位玩家死亡时,该玩家将被锁定无法继续游戏,而其他玩家仍可正常游玩。 此数据包对此进行了修改,使硬核模式更适合在服务器上运行。
所有玩家拥有一个共享的生命总值,显示在动作栏中,且只有当生命总值归零时世界才会结束。加载时会自动将难度设置为困难,以模拟原版硬核模式的体验。
所有玩家还会发出光芒,以便更好地互相看到对方。
快捷栏中的心形图标会显示为普通的心形,你可能希望使用资源包将其更改为硬核风格的心形。
如果你有任何问题、评论或建议,请在项目的 Planet Minecraft 页面 上发布。
功能:
- 配置支持(几乎)所有选项
- 共享生命值系统
- 能够恢复生命值
- 允许访客退出硬核模式
- 自定义进度
更详细的说明如下。
安装方法:
将此数据包放入世界的 datapack 文件夹中,就像放置其他数据包一样。无需任何资源包。不要启用 Minecraft 原版的硬核模式,本数据包完全替代了它。
建议使用 keepInventory 规则开启游玩(默认关闭),因为即使不掉落物品,失去一条命已经是足够的惩罚。
请勿在未注明出处的情况下重新上传此数据包。如果你用于视频或直播,请在描述中注明出处并链接到此页面。
如果你想玩超级硬核模式,只需执行以下命令:
/gamerule natural_health_regeneration false
卸载方法:
使用命令
/function uhc:config/uninstall
然后立即禁用该数据包或停止你的世界/服务器,并从世界的 datapacks 文件夹中删除该数据包。
共享生命值系统:
所有*玩家共享单一的生命总值,默认初始拥有3条命,最多可拥有5条命,超出上限将无法增加(参见配置文件以修改这些数值)。
如果有任何*玩家死亡,所有玩家都会收到标题提示以告知谁已死亡,并且总生命值会减少一条。
如果生命总值降至 0,将显示“Game Over”字样,所有*玩家将变为旁观者,这与原版硬核模式相同。
* 见下方的“退出”部分
获取额外生命:
有一种方法可以获取额外生命(此功能可禁用,见下方“配置”部分)。你需要给一只悦灵(Allay)一个海洋之心。悦灵开始旋转、发光并发出声音和粒子效果,经过一段设定时间(可配置)后,你将获得一条额外生命,同时消耗掉那个海洋之心。 这仅在你的当前生命总数低于最大生命值时有效。当达到最大生命值时,你会在生命总数旁边看到 “[MAX]”,此时将海洋之心交给悦灵将不会有任何作用(它会像平常一样持有它),直到有玩家死亡为止。 当获得额外生命时,所有玩家都会收到标题提示,玩家周围会产生粒子效果,并播放一段音效。
我选择这种方法是因为获取悦灵需要探索危险的地方(并将其带回家),而且海洋之心是一种不易找到(但并非不可能)、不可再生、无法种植且在原版游戏中实用性不高的物品。
退出机制:
如果你想在世界中邀请一位客人,并希望他们能轻松游玩而不必担心死亡,同时也无需担心他们浪费你宝贵的生命值,玩家可以退出硬核模式。 已退出的玩家将:
- 死亡时不影响生命总值
- 不像硬核玩家那样发光
- 看不到死亡和额外生命的通知
- 仍然能看到生命总值,但以白色文字显示
- 在 Game Over 发生时不会变为旁观者
只有管理员(operator)可以让某人加入或退出硬核模式,相关命令如下:
- 让自己加入:
/function uhc:opt/in
- 让自己退出:
/function uhc:opt/out
- 让其他人加入:
/execute as <name> run function uhc:opt/in
- 让其他人退出:
/execute as <name> run function uhc:opt/out
配置:
你可以配置生命总值、最大生命值、获取额外生命的能力以及悦灵“充能”以提供额外生命所需的时间。你还可以更改用于获取额外生命的物品。 以下是执行这些操作的命令列表(仅限管理员)。
设置生命值 (默认值:3)
这会改变你当前的生命值数量。它可以超过最大值,但在生命总值回到最大值以下之前,你将无法正常获取额外生命。
/function uhc:config/life_count {"lives":X}
将 X 替换为一个数字。
最大生命值 (默认值:5)
这会改变你可以拥有的最大生命值数量。将其设置为 1 或更低实际上会禁用获取额外生命的功能。
/function uhc:config/max_lives {"lives":X}
将 X 替换为一个数字。
获取额外生命 (默认值:启用)
这会启用或禁用与悦灵相关的获取额外生命功能。当禁用时,手持海洋之心的悦灵的行为将与原版一致。如果在禁用期间悦灵正在充能,完成后仍会授予该额外生命。
- 启用:
/function uhc:config/extra_lives/enable
- 禁用:
/function uhc:config/extra_lives/disable
悦灵充能时间 (默认值:100)
此设置更改悦灵在消耗海之心并赋予额外生命之前,持有海之心(旋转、发出声音并产生粒子效果)的持续时间。时间单位为刻(ticks,即秒数*20)。
/scoreboard players set #timer UHC_Constants X
将 X 替换为所需的刻数。
额外生命所用物品 (默认值:"heart_of_the_sea")
很不幸,若要更改该物品本身,你需要修改代码(文件位于 "uhc/function/tick.mcfunction",第一行和第二行,有注释标明位置),并在其中进行更改,我无法实现更简便的方式。
Hardcore Mode with life sharing
Works for both Hardcore AND Ultra Hardcore
In vanilla hardcore, when someone dies on a server they will be locked out of the server while everyone else can still play. This datapack changes this to make hardcore more suitable for a server.
All players have a shared life total displayed on the action bar and the world only ends when it reaches zero. Difficulty is set to hard automatically on load to mimic vanilla hardcore.
All players also glow to see each other better.
The hearts in the hotbar will look like regular hearts, you might want to use a texture pack that changes them to hardcore hearts.
If you have any questions, comments or suggestions, please post them on the project's Planet Minecraft page.
Features:
- Config for (almost) everything
- Shared lives system
- Ability to gain back lives
- Ability to opt out for guests
- Custom advancements
More detailed explainations below.
Installation:
Put this datapack in the datapack folder of your world like any other pack. No resource pack is required. DO NOT enable minecraft's vanilla hardcore mode, this pack replaces it entirely.
Playing with keepInventory on is encouraged (it is off by default), as losing a life is a big enough punishment for dying even without dropping all your items.
Please DO NOT reupload this pack without giving credit, and if you use it for a video or stream give credit and link this page in the description.
If you want to play Ultra Hardcore just do
/gamerule natural_health_regeneration false
Uninstalling:
Use the command
/function uhc:config/uninstall
and immediately disable the datapack or stop your world/server, then delete the datapack from your world's datapacks folder.
Shared lives system:
There is a single lives total shared among all* players, by default you start with 3 lives and there is a max of 5 lives you can't go over (see config to change these).
If anyone* dies a title is displayed to all players to inform them (showing who died) and a life is removed from the total.
If the life total reaches 0 a "Game Over" text will be displayed and everyone* will become a spectator, just like vanilla hardcore.
* see "opt-out" below
Gaining extra lives:
There is a way to gain lives (this can be disabled, see "config" below). You need to give a heart of the sea to an Allay. The Allay will start to spin, glow and emit sounds and particles and after a set time (configurable) you will gain an extra life and the heart is consumed. This only works if your lives total is below the max lives (configurable), when at max lives you will see "[MAX]" next to the life total and giving a heart to an Allay will do nothing (it will just hold it like normal) until someone dies. When gaining an extra life a title will be displayed to everyone, players will emit particles and a sound will be played.
I chose this method because it requires exploring dangerous places to get the Allay (and bring it back home) and because the heart of the sea is an item that's not easy to find (but not impossible), not renewable, not farmable and not that useful in vanilla.
Opt out:
If you want to invite a guest in your world but want to let them play casually without worrying about death and without you worrying about them losing your precious lives, players can opt out of Hardcore. An opted out player will:
- not affect the life total when dying
- not glow like hardcore players
- not see the death and extra lives notifications
- still see the life total, but in white text
- not become a spectator when a Game Over happens
Only an operator can make someone opt in or out of hardcore, the commands are:
- To opt in yourself:
/function uhc:opt/in
- To opt out yourself:
/function uhc:opt/out
- To make someone else opt in:
/execute as <name> run function uhc:opt/in
- To make someone else opt out:
/execute as <name> run function uhc:opt/out
Config:
You can configure the lives total, the max lives possible, the ability to gain extra lives and the time it takes for an Allay to "charge" before giving an extra life. You can also change what item to use to gain an extra life. Below is a list of commands to do these things (operator only).
Set lives (default: 3)
This changes how many lives you currently have. It can go over the maximum, but you won't be able to gain lives normally until the lives total goes back to below the maximum.
/function uhc:config/life_count {"lives":X}
replace X with a number.
Max lives (default: 5)
This changes the maximum lives you can have. Setting it to one or below effectively disables gaining extra lives.
/function uhc:config/max_lives {"lives":X}
replace X with a number.
Gaining extra lives (default: enabled)
This enables or disables the gaining extra lives functionality with the Allays, when disabled an Allay holding a heart of the sea will behave like in vanilla. If this is disabled while an Allay is charging that extra life will still be granted when it's done.
- Enable:
/function uhc:config/extra_lives/enable
- Disable:
/function uhc:config/extra_lives/disable
Allay charge time (default: 100)
This changes how long an Allay holds the heart of the sea (while spinning, making sounds and emitting particles) before consuming it and granting an extra life. The time is in ticks (seconds*20).
/scoreboard players set #timer UHC_Constants X
replace X with number of ticks.
Item for extra lives (default: "heart_of_the_sea")
Unfortunately to change the item itself you need to go into the code (the file is "uhc/function/tick.mcfunction", first and second lines, there are comments showing you where) and change it there, I couldn't implement an easier way.
下载 (Ultra) Hardcore Life Sharing
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 (Ultra) Hardcore Life Sharing
下载 (Ultra) Hardcore Life Sharing
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 (Ultra) Hardcore Life Sharing
下载 (Ultra) Hardcore Life Sharing
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 (Ultra) Hardcore Life Sharing
下载 (Ultra) Hardcore Life Sharing
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 (Ultra) Hardcore Life Sharing
下载 (Ultra) Hardcore Life Sharing
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 (Ultra) Hardcore Life Sharing
添加了 Minecraft 26.3 的兼容性
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧