SleepXP
A simple data pack that rewards players with experience levels for sleeping in a bed — no extra items, just a small incentive to rest safely through the night.
How it works
Whenever a player lies in a bed and the night is skipped, they receive XP based on the world's difficulty:
| Difficulty | Reward |
|---|---|
| Peaceful | None |
| Easy | 1 level |
| Normal | 3 levels |
| Hard | 5 levels |
To prevent abuse, each player can only be rewarded once every 12,000 ticks (about 10 real-world minutes) — enough to cover a full night, even during thunderstorms.
Installation
- Download the
sleepxp.zipfile. - Place it in your world's
datapacksfolder:- Server:
world/datapacks/ - Singleplayer:
saves/<world name>/datapacks/
- Server:
- Run
/reload(or reopen the world).
Compatibility
Built and tested for Minecraft Java Edition 26.3.
Credits
Icon and concept created specifically for this project.

