HomeJavaModsEntity Sleeper
Entity Sleeper
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


Code (Text):

entitysleeper.reload default: op
entitysleeper.stats default: true
entitysleeper.wakeall default: op
 
Configuration

Code (Text):
config.yml
supports per-world overrides.

Example:
Code (Text):
world-settings:
  default:
    enabled: true
    sleep-radius: 32
  world_nether:
    enabled: false
  world_the_end:
    sleep-radius: 64
Available options:

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
 
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.

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

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.

Explore more