存储坠落伤害
有时失误难免发生。你可能会从悬崖上跌落,也许误判了下落距离,或者刚好落在方块边缘却因为手滑没拿出水桶!这时候「存储坠落伤害」就派上用场了:当你受到致命的坠落伤害时,你将被挽救在半颗心的生命值,而所有本应致死的伤害会被“存储”进你的心脏中!要修复你的心脏,你可以用任何你喜欢的方式回复生命,但请注意!在你完成修复之前,你的生命值将永久锁定在半颗心。甚至不要想着再次尝试坠落!
当然,也会有小幅度的掉落、小意外……!

……或者也许你在冒险一些不该冒的风险!但别去试探运气!即使这样也有极限……

只要你幸存下来,并且拥有足够的资源,你就可以恢复满血!

此外,还引入了两种效果(可通过配置文件开启/关闭):
- 存储护盾 (Storing Shield),可以在存储伤害后的一段时间内提供额外的伤害保护。
- 不稳定心脏 (Unstable Hearts),作为一个倒计时机制,你需要尽快恢复生命值!
配置
当然,如果你愿意,这个模组有一些配置选项可以让事情变得更容易(或更难?)。它们位于 config/storedfalldamage.toml 中:
activation_requirement - 选择仅在持有能拯救你的物品时才存储伤害,还是始终存储坠落伤害!或者完全禁用它……?默认情况下,需要持有“ clutch ”(救命)物品。
scaling - 也许你认为存储的伤害应该更容易治愈,或者你想惩罚自己,让恢复变得更加困难?你可以调整任何存储伤害的比例,如果你对 1:1 的存储比例不满意的话!默认情况下没有缩放。
limit - 也许你觉得从轨道坠落很有趣,或者你认为存储的伤害只应该帮你从轻微的错误中脱身!随意提高或降低存储伤害的上限!默认上限为 120 点存储伤害,相当于从满血状态落下 143 个方块。
该模组与其他渲染自定义心脏叠加层的模组(例如 Mantle 的特色彩色心脏)相当兼容,因为 Stored Fall Damage 仅在你真正存储伤害时尝试渲染,否则会让其他模组处理工作。兼容性万岁!
数据包
Stored Fall Damage 的功能 heavily 围绕数据包构建。不仅用于拯救自己的物品由它们决定,你将从中获救的伤害类型也是如此!这意味着如果你愿意,你可以从除了坠落伤害之外的其他伤害中拯救自己。
数据包的目录结构如下:
data/
└── storedfalldamage/
├── damage_type/
│ └── unstable_hearts_timeout.json
└── tags/
├── damage_type/
│ ├── storing_shield_nulls/
│ │ └── <namespace>/
│ │ └── <damage_type>.json
│ └── stored_damage_types.json
└── items/
└── storing_items/
└── <namespace>/
└── <damage_type>.json
stored_damage_types.json 定义哪些伤害类型可以触发存储伤害
- 特定伤害类型的救命物品在
storing_items/ 中定义。例如,如果你想添加一个能抵御爆炸的物品,它应放在 storing_items/minecraft/explosion.json。原版伤害类型可在此处找到。
- 存储护盾基于触发存储伤害的伤害类型,在短时间内保护免受后续伤害。例如,如果你希望玩家在爆炸后对坠落伤害免疫,则需在
storing_shield_nulls/minecraft/explosion.json 中添加 minecraft:fall
Stored Fall Damage
Sometimes mistakes happen. You might fall off a cliff, maybe misjudge a drop, or perhaps land perfectly on the edge of a block and miss your water bucket because of it! This is where Stored Fall Damage comes in: When you take a lethal fall you'll be saved at half a heart and all the damage that would've killed you is "stored" into your hearts themselves! To repair your hearts you can regen any way you'd like, but be careful! Until you do so you'll be locked at half a heart permanently. And don't even think about trying to fall again!
Of course, there are small drops, minor accidents...!

...or maybe you're taking a risk you shouldn't! But don't test your luck! Even this has limits...

As long as you survive you can heal back up to full health, provided you have enough resources!

Additionally, two effects are introduced (and can be turned on/off by configs):
- Storing Shield, which can protect from more damage for a period after storing damage.
- Unstable Hearts, which serves as a countdown that you need to recover your health by!
Configuration
Of course, this mod has a few config options to make things a little easier (or harder?) if you so desire. They can be found in config/storedfalldamage.toml:
activation_requirement - Pick between only storing damage when holding an item that could save you, or always storing fall damage! Or disable it entirely...? By default it requires holding a "clutch" item.
scaling - Maybe you think stored damage should be easier to heal, or maybe you want to punish yourself and make it extra hard to recover? You can scale any damage stored, if you're not happy with a 1:1 store! The default is no scaling.
limit - Perhaps you think dropping from orbit is fun, or maybe you think stored damage should only save you from minor mistakes! Raise or lower the limit of stored damage as you like! The default limit is 120 stored damage, equal to falling 143 blocks from full health.
Should be fairly compatible with other mods that render custom heart overlays (for example, Mantle's signature colored hearts), as Stored Fall Damage only attempts to render when you're actually storing damage and lets other mods do the work otherwise. Yay for compatibility!
Datapacks
Stored Fall Damage's features are heavily built around datapacks. Not only are the items used to save yourself determined by them, but the types of damage you'll be saved from are too! This means that you can save yourself from things other than fall damage if you so desire.
The datapack structure works as follows:
data/
└── storedfalldamage/
├── damage_type/
│ └── unstable_hearts_timeout.json
└── tags/
├── damage_type/
│ ├── storing_shield_nulls/
│ │ └── <namespace>/
│ │ └── <damage_type>.json
│ └── stored_damage_types.json
└── items/
└── storing_items/
└── <namespace>/
└── <damage_type>.json
stored_damage_types.json defines what damage types can trigger stored damage
- Clutch items for a specific damage type are defined in
storing_items/. For example, if you wanted to add an item that protects from explosions, it'd go in storing_items/minecraft/explosion.json. Vanilla damage types can be found here.
fall.json is defined by default.
- Storing Shield protects from future damage for a short duration based on the damage type that triggered stored damage. For example, if you wanted players to be immune to fall damage after an explosion you'd add
minecraft:fall to storing_shield_nulls/minecraft/explosion.json
fall.json is defined by default.
评论 0
登录后参与评分
还没有评论,来抢沙发吧