HomeJavaDatapacksLogin
Login
DatapacksJava

Login

by Lprogrammer · on Modrinth

A Minecraft login datapack that forces users to register their account with a password. Especially important in servers with online_mode=false

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.8–26.2 · Data pack⬇ Download for 1.21.8–26.2 · Fabric⬇ Download for 1.21.8–26.2 · Forge⬇ Download for 1.21.8–26.2 · NeoForge⬇ Download for 1.21.8–26.2 · Quilt
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.
Login — screenshot 1

This datapack enforces security on your server by forcing users to login with a password. When a user first joins your server they will be asked to provide a numerical password by typing:

/trigger login set <password>

When the player joins your server for the second time they will be asked for the same password they once provided.

Until the player has provided a password they will be put into spectator mode and locked at their last position to prevent the player from causing any harm.

Please take a backup of your world/server in the case that this mod conflicts with anything you have installed and wipes your player-data

Datapack installation:

  1. Locate the datapack folder for the specific world
  2. Drag the Login.zip file into the datapack folder
  3. Enable the datapack with /datapack enable "file/Login.zip"

Mod instalation:

  1. Follow the instructions on how to install your prefered modloader (be it Forge, Fabric, NeoForge or Quilt)
  2. Drag the downloaded .jar file into (on windows) %appdata%.minecraft\mods
  3. Launch the world and start playing

Admin commands:
Can be used provided you have operator status on the server You can reset a player's password with:

/tag <player> remove login_password

You can change a player's password with:

/scoreboard players set <name> login_password <password>

Please report any problems on my discord server.

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

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

Explore more