截图
介绍
Scoreboard ID
A Minecraft datapack that assigns a unique 9-digit ID to each player, enabling easy player identification and management on multiplayer servers.
Features
- Automatic ID Assignment: Each player receives a unique 9-digit ID (100000000-999999999) automatically upon joining
- Conflict Resolution: Built-in detection and resolution system ensures no two players share the same ID
- Player Lookup: Find players by their ID or view all player IDs
- Interactive Dialog System: User-friendly interface with help menus and support options
- Easy-to-Use Commands: Simple trigger-based commands for quick access to ID information
Requirements
- Minecraft Java Edition 1.21.9 or higher
- Datapack format version 88-107
- Server Tools dependency (automatically loaded)
Installation
- Download the datapack file
- Place it in your world’s
datapacksfolder:
<world_folder>/datapacks/Scoreboard ID - 1.21.9+.zip
- Reload datapacks in-game:
/reload
- The datapack will automatically initialize and assign IDs to all online players
Usage
View Your Own ID
/trigger score_id.self_id set 1
Displays your personal 9-digit ID in chat.
View All Players’ IDs
/trigger score_id.show_all set 1
Shows the ID of all currently online players.
Find Player by ID
/trigger score_id.show_player set <ID>
Replace <ID> with a 9-digit number to find which player owns that ID.
Example:
/trigger score_id.show_player set 123456789
Access Help Menu
Open the pause menu and navigate to the Server Tools menu to access the help dialog with all available commands.
Technical Details
Scoreboard Objectives
The datapack creates the following scoreboard objectives:
score_id(dummy): Stores each player’s unique 9-digit IDscore_id.self_id(trigger): Trigger for viewing your own IDscore_id.show_all(trigger): Trigger for viewing all players’ IDsscore_id.show_player(trigger): Trigger for looking up players by ID
ID Generation
- IDs are randomly generated within the range:
100000000to999999999 - Automatic conflict detection ensures uniqueness
- If a conflict is detected, a new random ID is assigned
File Structure
Scoreboard ID - 1.21.9+/
├── pack.mcmeta # Datapack metadata
├── spyglass.json # Spyglass IDE configuration
└── data/
├── minecraft/
│ └── tags/
│ ├── dialog/ # Dialog tags for server tools integration
│ └── function/ # Function tags
└── score_id/
├── dialog/ # Dialog definitions
│ ├── help/ # Help menu dialogs
│ ├── support/ # Support dialogs
│ └── main_menu.json # Main menu configuration
└── function/ # Function files
├── init.mcfunction # Initialization function
├── id.mcfunction # ID assignment logic
└── show_id/ # ID display functions
├── show_all_id.mcfunction
├── show_id_self.mcfunction
└── show_player_name.mcfunction
Commands Reference
| Command | Description | Type |
| ——— | ————- | —— |
| /trigger score_id.self_id set 1 | Display your own ID | Trigger |
| /trigger score_id.show_all set 1 | Display all online players’ IDs | Trigger |
| /trigger score_id.show_player set <ID> | Find player by their ID | Trigger |
For Developers
Dependencies
This datapack requires the Server Tools framework:
- Automatically loads via
#server_tools_initfunction tag - Integrates with the server tools menu system
Customization
You can modify the following aspects:
- ID Range: Edit
data/score_id/function/id.mcfunctionto change the ID range - Messages: Modify tellraw messages in the function files
- Dialog UI: Customize dialog JSON files in
data/score_id/dialog/
Author
FeSo4a
License
This project is open-source. Feel free to use, modify, and distribute according to your needs.
Bug Reports & Support
If you encounter any issues or have suggestions:
- Check the help menu in-game:
/triggercommands or pause menu - Contact the author through the platforms listed above
- Submit an issue on GitHub
Enjoy managing your server with Scoreboard ID!
常见问题
Scoreboard ID 支持哪些 Minecraft 版本?
Scoreboard ID 支持 Minecraft Java 版 1.21.9–26.2,共 7 个版本。下载时注意选择和你游戏版本一致的文件。
Scoreboard ID 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
FeSo4a 的其他作品
查看全部 →
Custom Keep Inventory
This project adds the rules that deop players can freely adjust the death penalty.
Better Chatting
This project changes some types of chatting
Infinity Night Vision
This project let player give/clear effect of night vision.
Teleport Player
This project add a way to tp other players for the no-op
评论
登录后评论和评分