https://github.com/lullaby6/auth-data-pack
MC Data-Pack - Login and Register Authorization
https://github.com/lullaby6/auth-data-pack
data-pack data-packs datapack datapacks mc mcfunction mcfunctions minecraft minecraft-data-pack minecraft-data-packs minecraft-datapack minecraft-datapacks
Last synced: 3 months ago
JSON representation
MC Data-Pack - Login and Register Authorization
- Host: GitHub
- URL: https://github.com/lullaby6/auth-data-pack
- Owner: lullaby6
- License: mit
- Created: 2023-01-06T04:35:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T11:26:19.000Z (3 months ago)
- Last Synced: 2025-03-01T12:23:27.479Z (3 months ago)
- Topics: data-pack, data-packs, datapack, datapacks, mc, mcfunction, mcfunctions, minecraft, minecraft-data-pack, minecraft-data-packs, minecraft-datapack, minecraft-datapacks
- Language: mcfunction
- Homepage: https://modrinth.com/datapack/auth
- Size: 362 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Auth
[](https://github.com/lullaby6/auth-data-pack/releases)
[](https://discord.gg/5UdcDa5xNC)
[](https://modrinth.com/datapack/auth)
[](https://github.com/lullaby6/auth-data-pack/blob/main/LICENSE)
[](https://github.com/lullaby6/auth-data-pack/issues)
[](https://github.com/lullaby6/auth-data-pack)
[](https://github.com/lullaby6/auth-data-pack)
[](https://github.com/lullaby6/auth-data-pack/stargazers)
## 📖 Description
Login and Register Authorization
Version: `1.21.X`
## ⚠️ Warning
In vanilla we cannot use /kick, so I use many particles to kick (game crash) a malicious player, but you can disable it by disabling kick in `/function auth:settings`.
## 📂 Installation
Move the downloaded file in the path `.minecraft/saves/[world]/datapacks`
## 👾 Bugs/Issues
Please report any bug/issues to the [Discord Server](https://discord.gg/5UdcDa5xNC) in the `bugs` channel, or create a issue in the [Github Repostiroy](https://github.com/lullaby6/auth-data-pack/issues), or a comment in [Planet Minecraft](https://www.planetminecraft.com/data-pack/auth-datapack-login-and-register-authentication-full-customizable-kick-time-attempls-blindness-option-bypass/).
## ⌨️ Commands
### Player
Register with:
```mcfunction
/trigger register set
```Login with:
```mcfunction
/trigger login set
```Change password with (need to be logged):
```mcfunction
/trigger change_password set
```### Admin
Reset player:
```mcfunction
/execute as run function auth:auth/reset
```Reset all player:
```mcfunction
/function auth:auth/reset_all_players
```Show/get player password:
```mcfunction
/gamerule sendCommandFeedback true
/scoreboard players get register
/gamerule sendCommandFeedback false
```Set kick delay time (20 ticks = 1 second):
```mcfunction
/scoreboard players set kick_delay_time auth.settings
```Set max attemps:
```mcfunction
/scoreboard players set max_attemps auth.settings
```Disable:
```mcfunction
/function auth:disable
```Enable:
```mcfunction
/datapack enable "file/auth.zip"
```### Settings
To see the settings menu use the command:
```mcfunction
/function auth:settings
```### Bypass
To give a authentication bypass to a player use the command:
```mcfunction
/tag add auth.bypass
```and to remove it, use:
```mcfunction
/tag remove auth.bypass
```### Custom messages
You can change the messages and the message color.
List of options
please_register_text
please_register_color
register_success_text
register_success_color
please_login_text
please_login_color
login_success_text
login_success_color
wrong_password_text
wrong_password_color
password_changed_text
password_changed_color
Syntax:
```mcfunction
/data modify storage auth:config set value ""
```
Example for spanish:
```mcfunction
/data modify storage auth:config please_register_text set value "Registrese con /trigger register set "
/data modify storage auth:config please_register_color set value "gray"
```
## 🪪 License
[MIT](https://github.com/lullaby6/auth-data-pack/blob/main/LICENSE)