Making a PlayerID system | The Minecraft Command Tutorial EP 14

Опубликовано: 11 Июль 2026
на канале: The Void Block
172
4

***make sure you don't copy a space before the commands***
***all the command blocks are always active***

Functions:
To list all online players IDs use: /trigger listPlayerIDs
To get an offline players ID (admin only) use: /scoreboard players get playername playerID

Chat commands:
Player ID scoreboard:
(chat): /scoreboard objectives add playerID dummy

List player IDs trigger:
(chat): /scoreboard objectives add listPlayerIDs trigger

Command blocks:
Player ID system:
(repeating): execute as @a unless score @s playerID matches 0.. store result score @s playerID run scoreboard players add &Index playerID 1

List player IDs system:
(repeating): scoreboard players enable @a listPlayerIDs
(chain): execute as @a run tellraw @a[scores={listPlayerIDs=1..}] [{"text":"[","color":"black"},{"selector":"@s","color":"white"},{"text":"]","color":"black"},{"text":": ","color":"white"},{"score":{"name":"@s","objective":"playerID"},"color":"green"}]
(chain): scoreboard players set @a listPlayerIDs 0