Mediumcore 原版数据包非官方移植版
原版模组 - AlexModGuy: Mediumcore
他的 GitHub
这个数据包的作用是什么?
正如 AlexModGuy 所写:
Mediumcore 是一种新的难度选项,旨在比普通生存模式更难,但远不如原版极限模式那样严苛。Mediumcore 与默认生存模式唯一显著的区别在于,每次死亡都会减少玩家可再生的最大生命值上限。玩家每死一次,最大生命值就会减少一颗心,直到剩余 3 颗心为止。在此状态下,玩家将不再继续损失生命值,并可以在这种虚弱、受限的状态下继续游戏。幸运的是,这种惩罚并非永久性的——如果你愿意付出努力来找回失去的生命值。食用金苹果或附魔金苹果可以恢复一颗你丢失的心,同时获得食用这些食物通常带来的效果。

↑ ↑ ↑ ↑
当玩家死亡 3 次后
这是我第一个使用 Minecraft 变量编写的数据包。
这是一段艰难的旅程,但最终原版模组中的几乎所有功能都能正常工作。
如何配置它?
主配置文件位于 \data\mediumcore\function\config.mcfunction
(在 1.20.2 版本中为 \data\mediumcore\functions\config.mcfunction)

以下是各项值的含义:
| 配置项 |
含义 |
| items:["enchanted_golden_apple",...] |
食用后可恢复生命值的物品列表 |
| max:10 |
玩家最大生命值(以心为单位) |
| max_1:11 |
玩家最大生命值+1(请勿设置与 "max"+1 不符的错误数值) |
| max_deaths:7 |
玩家最大死亡次数(当死亡次数过多时,你将拥有 (max)-(max_deaths) 颗心。默认情况下,你的最低心数为 3) |
如果本项目获得关注
我将使该数据包更具可配置性
在原版的模组中,你可以更改物品能恢复多少生命值、死后会消失多少颗心等等。
我将制作更好的 1.20.2 版本
在 1.20.2 中,function 变为 functions,且 minecraft:max_health 变为 minecraft:generic.max_health,此外还有一些功能无法正常工作,因此我采取了一个临时解决方案:将 load.mcfunction 放入 tick.mcfunction 中。
如果本项目获得关注,我会尝试找出错误并制定更好的解决方案。
我将 TRY 支持 <=1.20.1 版本
Mojang 仅在 1.20.2 中为 mcfunction 添加了 "$" 宏,而我的数据包大量使用了该宏。
只有当本项目获得大量关注时,我才会尝试将此数据包适配至 1.20.1。
Mediumcore vanilla datapack unofficial port
Original mod - AlexModGuy: Mediumcore
His github
What does this datapack do?
As AlexModGuy wrote,
Mediumcore is a new difficulty option that is designed to be more difficult than regular survival, but far less punishing than vanilla's Hardcore Mode. The only significant change mediumcore has over default survival is that each death decreases the maximum available health a player can regenerate. The player looses a heart of max health per death, until they only have 3 hearts of health left. At this point, they will not loose anymore and can continue to play the game in their hobbled, feeble state. Luckily, this punishment isn't permanent - if you're willing to do what it takes to get your hearts back. Consuming a Golden Apple or Enchanted Golden Apple will grant you one of your missing hearts, along with the usual effects of consuming these foods.

↑ ↑ ↑ ↑
if the player died 3 times
This is my first datapack coded with minecraft variables.
It was a hard journey and in the end almost all functions from original mod are working
How to configure it?
the main config file is located in \data\mediumcore\function\config.mcfunction
(in \data\mediumcore\functions\config.mcfunction for 1.20.2)

Here's what each value does
| in config |
what it means |
| items:["enchanted_golden_apple",...] |
items, that when consumed will regenerate your health |
| max:10 |
maximum player hearts |
| max_1:11 |
maximum player hearts+1 (please do not set it with wrong values, that are not "max"+1) |
| max_deaths:7 |
maximum player deaths (when you die a lot you will end up with (max)-(max_deaths) hearts. By default your minimum hearts is 3) |
If the project will get some attention
I will make this datapack more configurable
In original mod you can change, how many health an item will regenerete you, how many hearts will disappear after death and so on
I will make a better 1.20.2 version
in 1.20.2 - function is functions and minecraft:max_health is minecraft:generic.max_health and also something just doest work, so I did a temporarly solution: I put load.mcfunction inside tick.mcfuction
If this project gets attention I'll try to find an error and make a better solution
I'll TRY to make support for <=1.20.1
Mojang added "$" macros in mcfunction only in 1.20.2, and my datapack uses it a lot
Will stretch this datapack to 1.20.1 if only project gets a lot of attention
评论 0
登录后参与评分
还没有评论,来抢沙发吧