You can use the /setblock
command to achieve this as it takes NBT tags as an argument.
/setblock <x> <y> <z> <block> [dataValue|state] [oldBlockHandling] [dataTag]
Also, note that if you are using relative commands, you should note that that "relative" position changes as each command block steps since you can't have more than one command block in a single block.
If you want the solution:
/setblock ~ ~7 ~-6 minecraft:skull 3 replace {Owner:{Id:"6c4b9de4-d5c4-4f56-ad9e-c3ec2d7423a6",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzJjYWE1NGJkMGJkY2ZkNzdjYjA2YzI1OGM3YzViODNiNTI2NzE4ZDA0ZDg0ZTRkMTg3YjZkOTcwMjYyYyJ9fX0="}]}},SkullType:3,Rot:0}
/setblock ~X ~7 ~-Y minecraft:skull 3 replace {Owner:{Id:"e940ac4c-f7a9-9a34-e25a-29fdb50a3c47",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTYzMGMyOGQ2YzhmZjIxNjZhMWFjYjc5NTMzMjJlOWY2ZDg5OWUyOGM2MWJkM2E3NzZhZTQ3ODQ5YWMyYWEifX19"}]}},SkullType:3,Rot:0}
Where x
and y
is another relative position. So if your second command block is two blocks east, than you would want to want the Y-coordinate increased by 2, etc.
Edit: Um...
Are you running the commands at the same time? Because this means that your change did happen, but it happened too fast to be rendered.
- Have you tried destroying (
/setblock <x> <y> <z> minecraft:air
) and then replacing it? You can do that all in one tick with chained command blocks.
Just two possible causes I could think off the top of my mind.