Swap Item
🟡 Updated this yearPreview

🔍 Analysis
- 👍 0.5% endorsement rate
- 🏆 #1578 of 1805 datapack mods in this game by downloads
📋 About This Mod
# Swap Item > 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! # 📥How to Install Choose if you want to download the pure **Data Pack** version or the **Mod** version and follow the steps accordingly. <details close> <summary>Data Pack</summary> * **1)** Download the Datapack * **2)** Chose the world you want to install the Data Pack in and navigate to its "_datapacks_" folder * **3)** Copy the downloaded Data Pack file (Swap Item) into this folder * **4)** Join the world and run <code>/reload</code> command </details> <details close> <summary>Mod</summary> * **1)** Download the Mod * **2)** Navigate to your <code>mods</code> folder (for the vanilla launcher the path is <code>.minecraft/mods</code> * **3)** Put the downloaded .jar file (Swap Item) into this folder * **4)** Join the world and run <code>/reload</code> command ### The Mod version of this Data Pack is compatibile with Fabric, Forge, Quilt and NeoForge Note: _support for NeoForge is available starting from version **1.2.2** of the pack_ </details> # 📖Features 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**. <details close> <summary>Commands</summary> <table><thead><tr><th><font>Command</font></th><th>Effect</th></tr></thead><tbody><tr><td><code>/trigger swapitem.entity.mainhand</code></td><td>Swap the item you are holding with the item in the <b>mainhand slot</b><br>of the entity you are looking at.</td></tr> <td><code>/trigger swapitem.entity.offhand</code></td><td>Swap the item you are holding with the item in the <b>offhand slot</b><br>of the entity you are looking at.</td></tr> <td><code>/trigger swapitem.entity.head</code></td><td>Swap the item you are holding with the item in the <b>head slot</b><br>of the entity you are looking at.</td></tr> <td><code>/trigger swapitem.entity.chest</code></td><td>Swap the item you are holding with the item in the <b>chest slot</b><br>of the entity you are looking at.</td></tr> <td><code>/trigger swapitem.entity.legs</code></td><td>Swap the item you are holding with the item in the <b>legs slot</b><br>of the entity you are looking at.</td></tr> <td><code>/trigger swapitem.entity.feet</code></td><td>Swap the item you are holding with the item in the <b>feet slot</b><br>of the entity you are looking at.</td></tr> <td><code>/trigger swapitem.head</code></td><td>Puts the item you are holding in <b>your head slot</b>.</td></tr></tbody></table> </details> <details close> <summary>YouTube Showcase</summary> <center><iframe width="560" height="315" src="https://www.youtube.com/embed/H5FPyZbtQCA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe></center> </details> # 📤How to Uninstall <details close> <summary>Data Pack</summary> To uninstall the **Data Pack version** you can just run <code>/function swap_item:uninstall</code> command. When the uninstallation process is completed a confirmation message will be sent in the chat. </details> <details close> <summary>Mod</summary> To uninstall the **Mod version** you need to run <code>/function swap_item:uninstall</code> command. Then you close the game and remove the **jar** file from your <code>.minecraft/mods</code> folder. </details> ## 🔗External links <a href="https://www.curseforge.com/members/nico4play/projects"><img src="https://i.imgur.com/B6lsNn0.png" width="40" /></a> <a href="https://www.planetminecraft.com/member/nico4play/"><img src="https://i.imgur.com/PTAiKsV.png" width="40" /></a>
# Swap Item > 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!
# 📥How to Install
Choose if you want to download the pure Data Pack version or the Mod version and follow the steps accordingly.
1) Download the Datapack
2) Chose the world you want to install the Data Pack in and navigate to its "_datapacks_" folder
3) Copy the downloaded Data Pack file (Swap Item) into this folder
4) Join the world and run /reload command
1) Download the Mod
2) Navigate to your mods folder (for the vanilla launcher the path is .minecraft/mods
3) Put the downloaded .jar file (Swap Item) into this folder
4) Join the world and run /reload command
### The Mod version of this Data Pack is compatibile with Fabric, Forge, Quilt and NeoForge
Note: _support for NeoForge is available starting from version 1. 2. 2 of the pack_
# 📖Features 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. |
# 📤How to Uninstall
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.
📊 Mod Details
- Game
- Minecraft Data Packs
- Author
- Nico4play
- Version
- 1.3.2-mc26.2
- Downloads
- 4,346
- Endorsements
- 20
- Category
- datapack
- Created
- 3/14/2023
- Updated
- 6/28/2026
- Game Versions
- 26.2
- Tags
- decoration, mobs, utility
🔧 How to Install Minecraft Data Packs Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Data Packs →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Data Packs commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Data Packs versions does Swap Item support?
The author lists 26.2. Other versions may work but are untested by the author.
What is the latest version of Swap Item?
Version 1.3.2-mc26.2, published 2026-06-28 with 4,346 downloads recorded at the source.
Keep browsing — more Minecraft Data Packs mods await