I think it would be amazing if a new argument was added to /replaceitem: [replace | from]
Here's what I mean:
/replaceitem block <xyz> replace <slot> <item> (the current normal /replaceitem format just with the <replace> argument)
/replaceitem block <xyz> from [entity | block | storage]
NOTE: Read the comments, I address something there (I don't have room here).
After argument <entity> after argument <from>, you would identity/select the entity (only one entity can be selected)
After argument <block> after argument <from>, you would give the xyz coordinates
After argument <storage> after argument <from>, you would identity the storage
After you identify the block/entity/storage argument, you would provide the slot you are replacing from the block/entity/storage you're using, then the slot you are replacing
/replaceitem entity @p from storage minecraft:example container.17 enderchest.0
This command would replace the enderchest.0 slot of the nearest player from the container.17 slot of the storage minecraft:example
If the storage minecraft:example does not have a container.17 slot, a error message would appear "The source storage does not have slot 17"
/replaceitem block 0 0 0 from entity @e[type=armor_stand,limit=1,sort=nearest] armor.head container.48
If the block didn't have a container.48 slot, the error message would be "The target block does not have slot 48"
I hope you get the idea because I'm almost at the character limit. I'd love to see this implemented.
Please sign in to leave a comment.