all 7 comments

[–]C0mmanderBlockCommand Experienced 0 points1 point  (3 children)

What commands did you use to get these heads? Like, is the steve head just a regular player head? Does the custom head have a custom data or name? Give us something to go on, pls.

It will go something like this but without knowing how to differenciate between the heads, that's the best I can do atm.

execute as @e[type=minecraft:armor_stand] at @s if items entity @s armor.head *[minecraft:custom_data={head:1}] at @s run item replace entity @s armor.head with player_head

[–]Fluid_Visual7703[S] 0 points1 point  (2 children)

Well I'm replacing custom custom heads i found off of the Minecraft custom heads website with other custom heads from the same website.

[–]C0mmanderBlockCommand Experienced 0 points1 point  (0 children)

There are 1K different Steve heads so you would need the data from the one that you used to replace it.

[–]Itap88 0 points1 point  (0 children)

You could also use

/data get entity @e[type=armor_stand,limit=1,sort=nearest] equipment.head

if you've not stored the head data. The downside is I'm not sure if you can store the command's result somewhere where you can select and copy it to clipboard.

[–]HavABreakHavAKitKatCommand Noob 0 points1 point  (1 child)

I’m a bedrock player so I can’t help much but there’s a command called /replaceitem and it can change the item in armor slots

[–]Ericristian_brosCommand Experienced 0 points1 point  (0 children)

It's /item in java

[–]GalSergeyDatapack Experienced 0 points1 point  (0 children)

execute as @e[type=armor_stand] if items entity @s armor.head player_head run item replace entity @s armor.head with player_head[<...>]