Replace one item in a chest

//ads -- adsterra.com -- native banner
?>
I am working on a chest menu. In the chest I have 2 full sets of armor. When someone clicks one part of the armor it must be replaced with enchanted armor.
I tried /blockdata 6 11 -13 {Items:[0:{},1:{},2:{},3:{},4:{},5:{Slot:23b,id:minecraft:iron_boots,Count:1b}]}
which laced the item just in the 5th slot. I also tried /blockdata 6 11 -13 {Items:[5:{Slot:23b,id:minecraft:iron_boots,Count:1b}]}
which was then changed in the command block to [0:{...}]
.
Thanks.
Pictures about "Replace one item in a chest"



How do you put all of one item in a chest at once Minecraft?
You can use the /replaceitem command to instanty replace one item with another item. You can replace armor items worn, weapons held in your hands, items stored in chests and items in your inventory/hotbar. This is a great way to quickly put armor on a player during a Minecraft battle or change out a worn out weapon.How do you replace one item with another in Minecraft?
replace - Replaces all blocks (including air) in the fill region with the specified block, without dropping blocks or block contents as entities.How to EFFICIENTLY MOVE ITEMS in Minecraft 1.16 [Inventory Tips]
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Cliff Booth, Karolina Grabowska, David Bartus, Miguel Á. Padriñán