# Sleepless
by Kreative Blocks
How long can you stay awake?
Sleepless adds a sleep bar to your game, shown as an eye in the bottom right of your screen. The longer you go without sleeping, the more the eye closes... and the more your mind starts playing tricks on you.
## The Eye
- A new HUD eye with a bar underneath
- It starts wide open and blue
- As you get tired, the eyelid droops, red veins appear and the bar drains from cyan to red
## What happens when you stay awake
- Tired: you start to yawn
- Heavy eyes: you slow down, your vision blinks to dark, and you hear sounds that aren't there
- Dizzy: nausea, stumbling, whispers in chat, and a shadow figure flashes at the edge of your view
- Morning with no sleep: everything gets worse, with constant nausea and random blackouts
## Sleeping
- Sleep in a bed at night to fully recover
- You can also take a nap in a bed in the morning (or any time of day) to get some rest back and set your spawn
## Sleep Paralysis
Sleep while you are exhausted and you might wake up unable to move. A tall shadow with white eyes slowly creeps toward you... and then it is gone. The more tired you were, the higher the chance.
## Features
- Works with Script API only, no extra mobs to find
- Custom HUD eye bar with 11 states
- Hallucinations: fake sounds, whispers and shadows
- Naps in the morning
- Sleep paralysis with a creeping shadow
- Custom title logo and pack icon
- Test commands for creators
## Test commands
Turn on cheats and type these in chat:
- /scriptevent kb:tired 10 (set your sleep bar to 10)
- /scriptevent kb:para (trigger sleep paralysis)
- /scriptevent kb:hallu (one hallucination)
- /scriptevent kb:shadow (the shadow appears)
- /scriptevent kb:help (all commands)
- /scriptevent kb:ui text (text bar, if the eye does not show)
## How to install
1. Download the .mcaddon file and open it with Minecraft
2. Create a world and turn on BOTH the Behavior Pack and the Resource Pack
3. Play in Survival mode (Creative and Spectator are not affected)
## Sleeping
- At night: sleep in a bed like normal. This fully refills your sleep bar.
- During the day (morning, noon or evening): if you are even a little tired, right-click a bed to take a nap. You close your eyes for a few seconds, get some of your sleep bar back (+55), and set your spawn point.
- If your bar is almost full, the bed works like normal and says you can only sleep at night.
- Naps only work in the Overworld, in Survival or Adventure mode.
Tip: Stayed up all night and the sun is rising? Find a bed and take a nap before the hallucinations get worse. But be careful: if you were very tired, you might get sleep paralysis when you wake up.
Warning: this addon has horror effects like hallucinations and a scary shadow. Not recommended for people who scare easily.
Bugs or ideas? Leave a comment and I will fix it.