Commands/fetchprofile

Minecraft Wiki article. Categories: Java_Edition, Verify, Commands

📌 Mirrored from Minecraft Wiki

This article is reproduced from Commands/fetchprofile on the Minecraft Wiki. Mirrored from revision 3494617. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

This feature is exclusive to Java Edition.
 
/fetchprofile

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.

Sources