HomeJavaModsOfflinePlayers
OfflinePlayers
ModsJava

OfflinePlayers

by MisterFish · on Modrinth

Enable AFK mode without keeping your computer on. Use /offline to spawn a copy of your player. If your offline player dies, you'll die but still have time…

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 26.1–26.1.2⬇ Download for 1.21.11⬇ Download for 1.21.9–1.21.10⬇ Download for 1.21.6–1.21.8⬇ Download for 1.21.5⬇ Download for 1.21.2–1.21.4⬇ Download for 1.21–1.21.1
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
OfflinePlayers — screenshot 1OfflinePlayers — screenshot 2OfflinePlayers — screenshot 3

Goal

This mod allows players to go AFK on a server without leaving their computers on. Simply use the /offline command to spawn an exact copy of your player, called an offline player. Depending on the configuration, you'll be kicked after the offline player has spawned.

If the offline player is killed, it won't drop loot but will be kicked from the server. When you rejoin, the inventory and XP levels from the offline player are copied to you, and you'll be killed. This gives you time to retrieve your items.

If the offline player survives until you rejoin, its inventory and gained experience will be transferred to you.

How to Use

Type /offline to spawn an offline player.

Actions

You can add actions to your offline player. Available actions include:

Name Description
attack Player left click
break Player left click, but wait for block to fully break.
place / use Player right click
crouch Player crouching
jump Player jumping
eat Player eating (only if hungry & having food in one hand)
drop_item Drops an item from the active slot
drop_stack Drops all items from the active slot
move_forward Moves the player forward
move_backward Moves the player backwards
disconnect Automatically disconnects the offline player after a set interval

To use an action, type /offline [action], e.g., /offline attack.

Tip: use /offline actions to see a list of available actions

Interval/Offset

You can execute actions with set intervals or offsets:

Time Parsing

Besides using ticks (the default), it is also possible to set the interval and offset to milliseconds, seconds, minutes, hours, and even days.

Example: /offline use:100ms, /offline attack:1s, /offline attack:1.5m, /offline eat:0.25h, /offline disconnect:1d

Chaining

You can chain actions, for example:

Actions are executed in the order specified.

Config

After initialization, the configuration file is located at config/OfflinePlayersReworked.json in your Minecraft server's root folder.

The configuration looks as follows:

{
  "opRequired": false,
  "autoOp": true,
  "autoWhitelist": false,
  "autoDisconnect": true,
  "killOnDeath": true,
  "respawnKickedPlayers": true,
  "informAboutKickedPlayer": true,
  "copySkin": true,
  "databaseLocation": "./offlineplayersreworked/",
  "offlinePlayerPrefix": "[OFF]",
  "availableOptions": ["attack", "break", "use","etc..."]
}

Reporting Issues

If you encounter any bugs or have suggestions for improvements, please create an issue on our GitHub repository. To create an issue:

  1. Go to the Issues tab of this repository.
  2. Click on "New Issue".
  3. Choose between "Bug report" or "Feature request" template.
  4. Fill out the template with as much detail as possible.
  5. Submit the issue.
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.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more