Im trying to clone the inventory of one named storage to another. I first tried finding a way to clone the inventory of a chest.
e.g:
execute as @e run data modify block[type=chest,name=input]...
But that didn't work because i couldn't because the block syntax only accepts xyz coordinates and not nbt data.
So i tried to do it with a chest Minecart using the data modify command which allow me to find my item through nbt selectors.
execute as @e run data modify entity @s[type=minecraft:chest_minecart,name=output] Items set from entity @s[type=minecraft:chest_minecart,name=input] Inventory
However for one reason or another I get no response at all. Did I write this right or is there another way to do this.