A Data Pack / Mod that adds a bunch of new commands that allows players to swap the item they are holding with the target slot of a mob!
Choose if you want to download the pure Data Pack version or the Mod version and follow the steps accordingly.
/reload commandmods folder (for the vanilla launcher the path is .minecraft/mods/reload commandNote: support for NeoForge is available starting from version 1.2.2 of the pack
This Data Pack introduces a bunch of new commands that allow you to swap two inventory slots between the player and an entity. Plus, as a bonus, you can now place any item in your head slot! Following the list of the commands and their effects.
| Command | Effect |
|---|---|
/trigger swapitem.entity.mainhand | Swap the item you are holding with the item in the mainhand slot of the entity you are looking at. |
/trigger swapitem.entity.offhand | Swap the item you are holding with the item in the offhand slot of the entity you are looking at. |
/trigger swapitem.entity.head | Swap the item you are holding with the item in the head slot of the entity you are looking at. |
/trigger swapitem.entity.chest | Swap the item you are holding with the item in the chest slot of the entity you are looking at. |
/trigger swapitem.entity.legs | Swap the item you are holding with the item in the legs slot of the entity you are looking at. |
/trigger swapitem.entity.feet | Swap the item you are holding with the item in the feet slot of the entity you are looking at. |
/trigger swapitem.head | Puts the item you are holding in your head slot. |
To uninstall the Data Pack version you can just run /function swap_item:uninstall command. When the uninstallation process is completed a confirmation message will be sent in the chat.
To uninstall the Mod version you need to run /function swap_item:uninstall command. Then you close the game and remove the jar file from your .minecraft/mods folder.

A Data Pack / Mod that adds a bunch of new commands that allows players to swap the item they are holding with the target slot of any mob!