睡眠剥夺
描述
已弃用,请自行承担风险使用,内含错误!
这是一个小型模组,旨在为玩家提供使用床铺进行睡眠的理由。在一段时间内未睡眠后,你将获得“睡眠剥夺”效果。该效果会在四个阶段中随时间逐渐增强。你的命中距离和移动速度等属性将会下降。你还会陷入失明、恶心状态,并听到奇怪的声音。在最后一个阶段,你会受到伤害。
当你拥有“清醒”效果时,不会受到睡眠剥夺的影响。“清醒”效果目前可通过“红马能量”物品和金苹果获得。食用这些物品后,你将获得一段时间的“清醒”效果。“红马能量”物品无法合成,但可以作为战利品找到。
如果你对该模组有任何疑问或建议,欢迎留言或加入我的 Discord。
感谢 Lorc 提供的精美 700+ RPG 图标,免费供游戏使用!
配置
minutes_until_tired -> 疲劳前的分钟数。20 分钟为一个昼夜循环。(默认值:40.0)
die_from_exhaustion -> 是否因耗尽而死亡,还是保持在一滴血。(默认值:True)
phase_time_ticks -> 每个阶段持续的刻数。(默认值:6000.0)请勿更改!
兼容性
由于你可能希望通过其他模组的物品来获得清醒效果,我已将此模组修改为使用标签系统,在消耗标记为低、中、高刺激物的物品后给予效果。你可以通过数据包将物品添加到此标签中。
我将开始创建一些数据包供你使用和自定义。目前已提供:
- SleepDeprived X FarmersRespite
- SleepDeprived X CoffeeCraft
- SleepDeprived X CoffeeDelight
注意: 如果你想让数据包在默认情况下启用,而不需要手动添加到每个世界中,我推荐由 Darkhax 制作的 OpenLoader 模组。
未来计划
- 添加一些“幻觉”效果。
- 修复已知配置问题。
- 使疲劳状态栏的阶段过渡更加平滑
已知问题
- 请不要更改配置文件中的
phase_time_ticks 值(默认值:6000.0)! 实现方式存在错误,仍有硬编码部分。我将在未来修复此问题,但目前请保持该值为默认值!
- 配置文件中的数值必须以
.0 结尾。否则配置文件将无法保存,而是会被我使用的配置插件覆盖!
Sleep Deprived
Description
DEPRECATED, PLEASE USE AT YOUR OWN RISK, CONTAINS BUGS!
A small mod that gives players a reason to use the bed and sleep. After some amount of time without sleeping, you will get the "Sleep Deprivation" effect. The effect will get stronger over time over the course of four phases. Your stats like reach and movement speed will decrease. You will get blindness, nausea, and hear strange noises. In the last phase, you will get damage.
You won't get sleep deprived when you have the "Awake" effect active, currently obtainable through the "Red Horse Energy" item and golden apples. When you consume them, you will have the "Awake" effect for some time. The "Red Horse Energy" item is not craftable but you can find it as loot.
Feel free to write a comment or join my Discord if you have questions or ideas for this mod.
Thanks to Lorc for his amazing 700+ RPG icons free for use!
Config
- ''minutes_until_tired" -> The number of minutes until you get tired. 20 minutes is one day-night cycle. (default: 40.0)
- "die_from_exhaustion" -> If you will die from exhaustion or remain on one heart. (default: True)
- "phase_time_ticks" -> Number of ticks a phase should last. (default: 6000.0) PLEASE DONT CHANGE!
Compatibility
Since you might want to obtain the awake effect by some other items from different mods, I changed this mod to use a tag system to give the effect after consuming items, tagged as low, mid and high stimulant. You can add items to this tag, through a datapack.
I will start and create some packs myself for you to use and customize. Currently available:
- SleepDeprived X FarmersRespite
- SleepDeprived X CoffeeCraft
- SleepDeprived X CoffeeDelight
NOTE: If you want to enable a datapack by default, without adding it to every world manually, I recommend the OpenLoader mod by Darkhax.
Future Plans
- Add some 'hallucination' effects.
- Fix known issues with the config.
- Make exhaustion status bar stages more smooth
Known Issues
- Please don't change the "phase_time_ticks" value in the config (default : 6000.0)! The implementation is buggy and there are still hardcoded parts. I will fix this in the future, but for now, please leave this value on default!
- You have to end the numeric values in the config file with ".0". Otherwise the config will not be saved, but overwritten by the config plugin I use!
评论 0
登录后参与评分
还没有评论,来抢沙发吧