I'm trying to modify the short "lvl" tag within a compound tag in "ench:" on an item in a chest, without changing anything else about the item or the chest. I know of more complicated ways to do this that involve multiple commands, systems of hoppers, destroying and replacing the chest, etc. but I was hoping it could be done in one command with /blockdata. My current command looks like this:
There is an iron sword with Sharpness I in the chest. I want the command to change it to Sharpness 2, leaving all others items, and item properties intact. Unfortunately, this command completely replaces the Items tag. Expected, but unfortunate. Is there any way to have it only replace the last compound tag, or at most the ench: tag?
Rollback Post to RevisionRollBack
Truly he is my rock and my salvation; he is my fortress, I will not be shaken. ~Psalms 62:6