Hızlı yanıt: kod örneği
gaming.stackexchange.com how-can-i-change-my-name-using-command-blocks
There is no command to change a player's name. As a workaround, you could fake it by hiding the player's name whilst teleporting a named entity onto them. To hide a player's name tag, put them on a separate team and change the option:Then summon a named entity, such as a marker armorstand:You can teleport that entity to the player on a clock with something like:
nametagVisibility
/team add HerobrineTeam/team modify HerobrineTeam nametagVisibility never
/summon armor_stand ~ ~ ~ {CustomName:'"Herobrine"',CustomNameVisible:1b,Marker:1b,Invisible:1b}
/execute at @p[team=HerobrineTeam] run tp @e[type=armor_stand,name=Herobrine] ~ ~1.7 ~