Put sleeping mobs to work... by doing absolutely nothing.
EntitySleeper reduces server lag by automatically putting idle mobs to sleep when no players are nearby. When a player approaches, the mob wakes up instantly and behaves normally. No gameplay changes just less CPU waste on mobs nobody is interacting with.
How it works
The plugin periodically checks all tracked mobs. If a mob is far enough from the nearest player, it falls asleep and stops all AI processing. When a player comes within range or if the mob is damaged, attacks, catches fire, or receives a potion effect it wakes up immediately.
During sleep:
Wake triggers:
Features
Commands
/entitysleeper reload — Reload configuration and rescan all worlds
/entitysleeper stats — Display current sleep statistics
/entitysleeper wakeall — Wake all sleeping entities
Aliases: /esleeper, /es
Permissions
entitysleeper.reload default: op
entitysleeper.stats default: true
entitysleeper.wakeall default: op
Configuration
supports per-world overrides.
Example:
Available options:
PlaceholderAPI
Requirements
Paper 1.20.x — 1.21.x (or any Paper fork)
Java 21+
Compatibility
Tested on Paper 1.20.6. Should work on all Paper 1.20.x through 1.21.x versions.
EntitySleeper reduces server lag by automatically putting idle mobs to sleep when no players are nearby. When a player approaches, the mob wakes up instantly and behaves normally. No gameplay changes just less CPU waste on mobs nobody is interacting with.
How it works
The plugin periodically checks all tracked mobs. If a mob is far enough from the nearest player, it falls asleep and stops all AI processing. When a player comes within range or if the mob is damaged, attacks, catches fire, or receives a potion effect it wakes up immediately.
During sleep:
- Mob stands still (no movement, no pathfinding)
- No AI processing
- Gravity still works (mobs fall, flow in water)
- Damage still applies (mobs can be killed)
- Fire, knockback, potion effects still work
Wake triggers:
- Player enters range
- Mob takes damage
- Mob attacks (melee or ranged)
- Mob catches fire
- Mob receives a potion effect
Features
- Per-world configuration different settings for each world
- Efficient scanning processes mobs in batches; no lag spikes
- Instant wake damage, attacks, and proximity wake mobs immediately
- PlaceholderAPI support display sleep statistics anywhere
- Update checker notifies when a new version is available
- bStats metrics anonymous usage statistics (opt-out available)
- Detailed statistics /entitysleeper stats shows real-time data
Commands
/entitysleeper reload — Reload configuration and rescan all worlds
/entitysleeper stats — Display current sleep statistics
/entitysleeper wakeall — Wake all sleeping entities
Aliases: /esleeper, /es
Permissions
Code (Text):
entitysleeper.reload default: op
entitysleeper.stats default: true
entitysleeper.wakeall default: op
Code (Text):
config.yml
Example:
Code (Text):
world-settings:
default:
enabled: true
sleep-radius: 32
world_nether:
enabled: false
world_the_end:
sleep-radius: 64
default:
enabled: true
sleep-radius: 32
world_nether:
enabled: false
world_the_end:
sleep-radius: 64
- enabled toggle the plugin (or per-world)
- sleep-radius distance in blocks (default: 32)
- check-interval ticks between checks (default: 20)
- entities-per-tick mobs checked per batch (default: 50)
- ignore-named skip named mobs
- ignore-leashed skip leashed mobs
- ignore-tamed skip tamed mobs
- ignore-bosses skip boss-type mobs
- debug verbose console logging
PlaceholderAPI
Code (Text):
%entitysleeper_sleeping% currently sleeping mobs
%entitysleeper_awake% currently awake mobs
%entitysleeper_tracked% total tracked mobs
%entitysleeper_wakes% total wake count since startup
%entitysleeper_sleeptime% total seconds mobs have been asleep
%entitysleeper_awake% currently awake mobs
%entitysleeper_tracked% total tracked mobs
%entitysleeper_wakes% total wake count since startup
%entitysleeper_sleeptime% total seconds mobs have been asleep
Paper 1.20.x — 1.21.x (or any Paper fork)
Java 21+
Compatibility
Tested on Paper 1.20.6. Should work on all Paper 1.20.x through 1.21.x versions.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.20, 1.20.6, 1.21
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Entity Sleeper is a free Minecraft Java mod. Compatible with Minecraft 1.20, 1.20.6, 1.21, 26.1 and newer. Downloaded 12 times (via Spigot). Download it and open it directly in the game.