/fetchprofile

From Minecraft Wiki
Jump to navigation Jump to search
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

[edit | edit source]

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

[edit | edit source]
fetchprofile name <name>
fetchprofile id <id>
fetchprofile entity <entity>[upcoming JE 26.1]

Arguments

[edit | edit source]

<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[upcoming JE 26.1]

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

[edit | edit source]

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

[edit | edit source]

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

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