MCEdit is what you are looking for if you want to remove blocks. I don't think it does items, but something like InvCheck can let you browse inventories of players. Items mobs are holding is another thing entirely, and I don't know of anything that does that.
My thought is to use a structure block, to clone the entity.
So this is what I'd do it:
- First, spawn an armor stand (as a marker) in the location of the entity to be cloned.
- Move the entity to a predefined location.
- Clone it with the structure blocks.
- Then move the entity back to the marker, and the new one where you want it.
- Finally remove the marker.
I'll just show how to set up the structure blocks. I'll assume you know what your doing with the teleportation of the entities.
So the cloning device should look like this:
(The command block in the second picture removes the stone block when a red stone block is placed there.)
So the structure block on the left is the saving block, you place the entities to be cloned on top of it.
You must have "Include Entities" set to on, or it won't clone entities.
The block on the right loads the entities. (If you use red stone to save, it will only save to RAM, not your disk, which is good.)
(The structure name doesn't have to be "cloner", but it just has to be the same in both blocks.)
When you have the cloning device set up, you just have to teleport an entity on top of the structure block on the left, place a red stone block in place of the stone one, then one red stone tick later, you'll have two identical entities.
Necro edit: I though I'd clarify why there has to be a red stone tick between them, its because structure blocks are "slow" (compared to command blocks) and require time to save the structure data. A single red stone tick is simply easy to do, but it can be any amount of time, as long as it gives the structure blocks time to do their thing.
Best Answer
In 1.13+, you can hold the item in your hand and type:
You can copy this from the output log, if you want to avoid retyping it all.
The corresponding
/give
command would be:(note how the extra NBT gets automatically placed inside the
tag
tag)In 1.8 to 1.12, you'll need to throw down the item in front of you and then type:
In chat you'll see all of the data of the item entity, which includes stuff like its motion and age. For the item itself, look at the tags inside the
Item:
compound tag, highlighted in green below:Alternatively, you can use an external program such as NBTExplorer to open up the world, then your player's inventory, then find the item you want to look at the tags of.