-
Bug
-
Resolution: Invalid
-
None
-
1.20.6
-
None
-
Confirmed
-
Commands
I just worked a lot to get the new commands for my website and therefor tried to unify commands for give, setblock and summon for custom heads in Minecraft.
Here's my result:
/setblock ~ ~1 ~ minecraft:player_head[rotation=0]{custom_name:'{"text":"Perry the Platypus","color":"gold","underlined":true,"bold":true,"italic":false}',profile:{id:[I;899888175,-991016418,-1355535240,81593301],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2U3YzE4MWExOWYzNjdmMWFjOTQ5NWEyYmU3NjFhZDBkOTE1NzRiNzVlZDc5OGY3NjVhMWVlNmJlNDFhODcxIn19fQ=="}]}}
What I wonder: In give and summon, I could use "minecraft:custom_name" to apply the name. However if I do so on Setblock, this does not work:
/setblock ~ ~1 ~ minecraft:player_head[rotation=0]{"minecraft:custom_name":'{"text":"Perry the Platypus","color":"gold","underlined":true,"bold":true,"italic":false}',profile:{id:[I;899888175,-991016418,-1355535240,81593301],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2U3YzE4MWExOWYzNjdmMWFjOTQ5NWEyYmU3NjFhZDBkOTE1NzRiNzVlZDc5OGY3NjVhMWVlNmJlNDFhODcxIn19fQ=="}]}}
It places the head correctly, but if you destruct it in gamemode survival, it's just named "Player head" while the other one was the correct title applied.
So:
Steps to Reproduce:
1. Use the setblock commands from above to spawn heads ingame
2. Go in gamemode survival and break the heads
Observed Results:
One of the heads has a special name, the other one is just named "Player Head"
Expected Results:
Both heads should be named correctly with the custom_name which is given.
—
Examples for give and summon are the following:
/give @p minecraft:player_head[minecraft:custom_name='{"text":"Perry the Platypus","color":"gold","underlined":true,"bold":true,"italic":false}',minecraft:lore=['{"text":"Custom Head ID: 14394","color":"gray","italic":false}','{"text":"www.minecraft-heads.com","color":"blue","italic":false}'],profile={id:[I;899888175,-991016418,-1355535240,81593301],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2U3YzE4MWExOWYzNjdmMWFjOTQ5NWEyYmU3NjFhZDBkOTE1NzRiNzVlZDc5OGY3NjVhMWVlNmJlNDFhODcxIn19fQ=="}]}] 1
/summon minecraft:armor_stand ~ ~1 ~ {ShowArms:1b,NoBasePlate:1b,ArmorItems:[{id:"minecraft:leather_boots",count:1},{id:"minecraft:leather_leggings",count:1},{id:"minecraft:leather_chestplate",count:1},{id:"minecraft:player_head",count:1,components:{"minecraft:custom_name":'{"text":"Perry the Platypus","color":"gold","underlined":true,"bold":true,"italic":false}',"minecraft:lore":['{"text":"Custom Head ID: 14394","color":"gray","italic":false}','{"text":"www.minecraft-heads.com","color":"blue","italic":false}'],"minecraft:profile":{id:[I;899888175,-991016418,-1355535240,81593301],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2U3YzE4MWExOWYzNjdmMWFjOTQ5NWEyYmU3NjFhZDBkOTE1NzRiNzVlZDc5OGY3NjVhMWVlNmJlNDFhODcxIn19fQ=="}]}}}]}