Currently, there is no way (or I can't find one) to give a player their own head using @s in vanilla Minecraft. Presumably, allowing players to /give their own heads would look something like this:
/give @p player_head[profile=@s]
Likewise, this feature could work for mannequins:
/summon mannequin ~ ~ ~ {profile:@s}
Of course, it would require a player and a limit of one.
A similar feature could be added to item names, item lore, mob names, and other locations where text can be used. For example:
/give @p diamond_sword[custom_name=[{selector:"@s",color:light_purple},{text:"'s Sword"}]]
would give a diamond sword with the name of the prompter, concatenated with "'s Sword".
/summon zombie ~ ~ ~ {CustomName:{selector:"@s"}}
would summon a zombie at the prompter's location and give it the same name as the prompter.
Not only could {selector:"@s"} be used, but also scores, in the form of {score:{name:"@s",objective:"scoreName"}}.
These features would provide a lot of opportunities for aspiring mapmakers by creating in-game features that do not require the use of a datapack or plugin.
Please sign in to leave a comment.
0 Comments