Back to mods
Singleplayer Library project artwork

Modrinth · Minecraft mod

Singleplayer Library

A blazing-fast library for datapacks and mods that simplifies singleplayer compatibility checks with minimal overhead.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Singleplayer Library release matches 26.2-rc-1 NeoForge?

Updated last month
Best match for your filters 0.1+mod
Game version 1.21, 1.21.1, 1.21.2
Loader Fabric, Forge, NeoForge

Singleplayer Library 0.1+mod targets 1.21, 1.21.1, 1.21.2 with Fabric, Forge, NeoForge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Singleplayer Library required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Fabric, Forge, NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Singleplayer Library 0.1+mod need?

0.1+mod on 26.2-rc-1 NeoForge. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Singleplayer Library without breaking your instance.

Built for Singleplayer Library 0.1+mod on 26.2-rc-1 NeoForge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.1+mod. It targets 1.21, 1.21.1, 1.21.2 with Fabric, Forge, NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.1+mod. It opens that exact file at the source.

About this project

What does Singleplayer Library add?

SinglePlayer Lib - Banner

Blank Image

SinglePlayer Lib - About 18px

SinglePlayer Library is a lightweight utility library for datapacks and mods that helps developers support singleplayer environments without creating separate versions of their projects.
It provides a simple way to detect and enable singleplayer-specific features or settings, allowing projects that normally require manual setup or commands to work smoothly for singleplayer users.

Blank Image

SinglePlayer Lib - Features

  • Ultra Lightweight : Minimal overhead designed for maximum performance.
  • Easy Integration : Add singleplayer support to datapacks and mods without complex setup.
  • Blazing Fast : Optimized to run efficiently with minimal impact.
  • Developer Friendly : Built as a reusable foundation for other projects.
  • Singleplayer Ready : Provides singleplayer support without requiring manual permission setup.
  • Multi Version Support : Supports multiple Minecraft versions while keeping the same simple integration.

Blank Image

SinglePlayer Lib - Tags

SinglePlayer Library uses tags to provide a simple way for projects to detect and handle singleplayer environments.
The library checks players at a 1-second interval to keep performance impact as low as possible. Unlike normal Minecraft tick functions that run 20 times per second, SinglePlayer Library only performs its check once per second, providing a lightweight and stable system.

  • splib_active
    Indicates that the player has been detected by SinglePlayer Library and is running in a supported singleplayer environment. Projects can use this tag to enable singleplayer-specific features or settings.

  • splib_ignore
    This tag is intended for developers and server owners. Players with this tag will be excluded from SinglePlayer Library handling, preventing splib_active from being automatically added.

Blank Image

Replace this with a description

Use splib_active to run features or settings that should only apply in singleplayer worlds.
Keep in mind that the code below does not run until the function is executed. The namespace my_pack is not automatically created by a datapack or mod you must implement and structure it yourself.

check.mcfunction

execute unless entity @s[tag=splib_active] run function my_pack:tellraw_missing_library
execute if entity @s[tag=splib_active] run function my_pack:singleplayer_settings

use_feature.mcfunction

execute if entity @s[tag=splib_active] run function my_pack:feature/run
execute unless entity @s[tag=splib_active] run function my_pack:feature/blocked

other.mcfunction

execute unless entity @s[tag=splib_active] run function my_pack:performance/low_mode

Blank Image

SinglePlayer Lib - Question and Answer

What Minecraft versions are supported? SinglePlayer Library supports Minecraft Java Edition versions from **1.17 to 1.21+**.
Does this add any gameplay features? No. SinglePlayer Library is a developer utility and does not add gameplay features by itself. It provides a foundation that other projects can use for singleplayer-specific features and settings.
Can I use it in monetized projects? Yes. Developers are allowed to use this library in projects that generate revenue. However, the library itself must remain free and cannot be sold, paywalled, or redistributed as a paid product.
Is it required for players to install? Only if a project using it requires the library. Otherwise, it has no effect on its own.
Can I modify or redistribute the library? You may use it as a dependency in your projects, but you may not reupload, sell, redistribute it as a standalone product, or claim it as your own.

Blank Image

Enchant Plus - Installation

Datapack (Singleplayer / Server)

  1. Download the datapack.
  2. Place it in your world's datapacks folder.
  3. Exit and rejoin the world. Search on youtube how to install datapack ↗
  4. Tip: Use /datapack list and tag <targets> list to verify that it is installed correctly.
    Small Blank Image
  • Singleplayer lib - datapack list

Small Blank Image

Mod Version (Client / Server)

  1. Install the mod file into your mods folder.
  2. Launch the game or server with a compatible mod loader.
  3. No additional setup required. Search on youtube how to install mod ↗
  4. Tip: It will appear in the mod menu if installed correctly.
    Small Blank Image
  • Replace this with a description

Project description from Modrinth.

Pick your setup

Singleplayer Library by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

350 available setups

Showing the newest 12 of 70 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Singleplayer Library versions and loaders

1 of 4 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.