Wiki ArticleJava EditionVerifyCommands

/fetchprofile

Fetches the contents of a player profile from Minecraft servers.

Fetches the profile of the target. It works asynchronously as the operation might take some time.

After successful completion, a message will be printed that lets users copy the contents of a fully resolved minecraft:profile component or /give @s minecraft:player_head with said component.

This feature is exclusive to Java Edition.
 
/fetchprofile
Permission level
required
2
Restrictions None

Fetches the contents of a player profile from Minecraft servers.

Usage

Fetches the profile of the target. It works asynchronously as the operation might take some time.

After successful completion, a message will be printed that lets users copy the contents of a fully resolved minecraft:profile component or /give @s minecraft:player_head with said component.

Syntax

fetchprofile name <name>
fetchprofile id <id>
fetchprofile entity <entity>

Arguments

<name>: string

Specifies a player name (player does not need to be online), case-insensitive.
Must be a string.

<id>: uuid

Specifies UUID of a player (player does not need to be online).
Must be a UUID in the hyphenated hexadecimal format. Allowed characters include: -, A-F, a-f, and 0-9.

<target>: entity

Specifies an entity (player must be online).
Must be a player name, a target selector or a UUID. And the target selector must be in single type.

Result

CommandTriggerJava Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
<entity> (in entity <entity> mode) fails to resolve to a single entity (named player must be online). Failed
<entity> (in entity <entity> mode) resolves to an entity without a profile. Failed
Failed to resolve the player profile. Failed
OtherwiseSuccessful

Output

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
AnyJava EditionOn success111
Java EditionOn fail in name <name> and id <id> modes111
Java EditionOn fail in entity <entity> mode[verify]000

History

Java Edition
1.21.925w34aAdded /fetchprofile.
Pre-Release 1Now also prints a clickable text to summon a mannequin with the resolved profile.
26.1snap8Added /fetchprofile entity.