Swap Item
Swap Item modification provides a convenient tool for exchanging items between different inventory slots. Using special commands, you can easily swap the contents of your slots with the slots of other creatures.
🚀 Installation
Choose the appropriate installation option - as a datapack or mod, and follow the corresponding instructions.
Datapack Version
- Download the datapack file
- Navigate to the "datapacks" folder of the desired world
- Place the downloaded Swap Item file in this folder
- Run the
/reloadcommand in the game
Mod Version
- Download the mod file
- Navigate to the
modsfolder (standard path:.minecraft/mods) - Place the downloaded .jar file in the mods folder
- Run the
/reloadcommand in the game
The mod version is compatible with Fabric, Forge, Quilt and NeoForge (NeoForge support is available starting from version 1.2.2).
⚡ Features
The modification adds a set of commands that allow exchanging items between the player and other creatures. A special feature is the ability to place any items in the head slot!
Available Commands
| Command | Effect |
|---|---|
/trigger swapitem.entity.mainhand |
Swap the item in your hand with the item in the main hand of the creature you're looking at |
/trigger swapitem.entity.offhand |
Swap the item in your hand with the item in the offhand of the creature you're looking at |
/trigger swapitem.entity.head |
Swap the item in your hand with the item in the head slot of the creature you're looking at |
/trigger swapitem.entity.chest |
Swap the item in your hand with the item in the chestplate slot of the creature you're looking at |
/trigger swapitem.entity.legs |
Swap the item in your hand with the item in the leggings slot of the creature you're looking at |
/trigger swapitem.entity.feet |
Swap the item in your hand with the item in the boots slot of the creature you're looking at |
/trigger swapitem.head |
Places the item from your hand into your head slot |
🎥 Video Demonstration
🗑️ Uninstallation
Datapack Version
To uninstall the datapack version, execute the command /function swap_item:uninstall. After the uninstallation process is completed, a confirmation message will appear in the chat.
Mod Version
To uninstall the mod version, first execute the command /function swap_item:uninstall, then close the game and remove the .jar file from the .minecraft/mods folder.