I'm making a map for fighting and I made classes to choose from. I condensed it so all you have to do is press a button to scroll through the classes. Once the button is pressed all the command blocks are cloned and replaced to change the specific items in each class. Above the 4 buttons are picture frames with a simple item that compares to the class, like a bow for an archer, sword for warrior and so on. I tried to put a potion in the frame but only got a bottle of water. I tried /summon but the frame and items would pop out when replaced. Lastly, I found this but I don't know where to put the ench tag or how to format it, also don't know how to do the xyz, when I did, it changed every single frame in my world, terrible :(
So my questions are: How do you put enchanted items/potions in an item frame, to a certain coordinate with command block and have them replace?
I'm guessing it should look something like this, and I have no idea where the xyz coordinates go.
/entitydata @e[type=ItemFrame] {Item:{id:minecraft:'item'}}
/entitydata @e[type=ItemFrame] {ench:[{id:minecraft:'enchanted item/potion'}]}