Home›Java›Datapacks›Sleep Reworker
Sleep Reworker
DatapacksJava

Sleep Reworker

Java data pack listed for Minecraft 1.21. Download on the author's site.

by BrianXplayz · on CurseForge

⬇ Download on CurseForge

Sleep Reworker transforms the vanilla sleeping experience into a fully immersive event — complete with animations, ambient effects, and a nightmare system that keeps you on your toes every night.


✨ Sleep Animation

When you lie down in a bed, the world doesn't just skip to morning. Instead:


☀️ Normal Wake

Waking up from a peaceful night gives you:


😱 Nightmare System

Every night there is a 25% chance of triggering a nightmare. If you're unlucky, you'll experience:

4 Nightmare Types

Type Chance Monsters
👻 Phantoms 30% 3 "Shadow of the Night" phantoms circling overhead
🕷️ Spiders 30% 4 spiders + 1 cave spider surrounding you
💥 Creepers 20% 2 charged creepers + 1 normal creeper
🧟 Husks 20% 3 husks + 1 zombie reinforcement

All nightmare monsters have persistence — they won't despawn naturally, so deal with them.


⚙️ Configuration

To change the nightmare probability, edit one line in data/sleep_reworker/function/sleep/on_sleep.mcfunction:

execute if score @s sr_roll matches 1..25

Change 25 to any value from 1 to 100. Examples:


🔌 GeyserMC / Bedrock Compatibility

The datapack is fully functional for Bedrock players via GeyserMC — all status effects, nightmare spawns, particles, and scoreboards work server-side. The only caveat: floating "Zzz" text entities use text_display entities which are not rendered by Bedrock clients. Everything else works perfectly cross-platform.


📋 Requirements

🛠️ Commands

# Force a nightmare on yourself (for testing)
/tag @s add sr.nightmare

# Clear all datapack effects
/tag @s remove sr.sleeping
/tag @s remove sr.nightmare
/effect clear @s

# Reload the datapack
/reload

Developed for multiplayer servers running Minecraft Java Edition 26.1.

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Sleep Reworker is a free Minecraft Java datapack. Compatible with Minecraft 1.21.11. Downloaded 81 times (via CurseForge). Download it and open it directly in the game.

Explore more