Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Sleep Deprived
Description
Disclaimer: This mod is in early development. It should be usable but is not well tested. Please use with caution and make sure to report any bugs you find.
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:
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!