Back to mods
Swap Item project artwork

Modrinth · Minecraft 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 any mob!

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Swap Item release should I use?

Updated today
Latest stable file 1.3.3-mc26.3+mod
Game version 26.3
Loader Fabric, Forge, NeoForge

Swap Item 1.3.3-mc26.3+mod targets 26.3 with Fabric, Forge, NeoForge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Swap Item required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Fabric, Forge, NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Swap Item 1.3.3-mc26.3+mod need?

1.3.3-mc26.3+mod. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Swap Item without breaking your instance.

Built for Swap Item 1.3.3-mc26.3+mod. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.3.3-mc26.3+mod. It targets 26.3 with Fabric, Forge, NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.3.3-mc26.3+mod. It opens that exact file at the source.

About this project

What does Swap Item add?

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.

Data Pack
  • 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
Mod
  • 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.

Commands
CommandEffect
/trigger swapitem.entity.mainhandSwap the item you are holding with the item in the mainhand slot
of the entity you are looking at.
/trigger swapitem.entity.offhandSwap the item you are holding with the item in the offhand slot
of the entity you are looking at.
/trigger swapitem.entity.headSwap the item you are holding with the item in the head slot
of the entity you are looking at.
/trigger swapitem.entity.chestSwap the item you are holding with the item in the chest slot
of the entity you are looking at.
/trigger swapitem.entity.legsSwap the item you are holding with the item in the legs slot
of the entity you are looking at.
/trigger swapitem.entity.feetSwap the item you are holding with the item in the feet slot
of the entity you are looking at.
/trigger swapitem.headPuts the item you are holding in your head slot.
YouTube Showcase

📤How to Uninstall

Data Pack

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.

Mod

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.

🔗External links


Project description from Modrinth.

Pick your setup

Swap Item by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

131 available setups

Showing the newest 12 of 29 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Swap Item versions and loaders

34 of 34 releases match

Looking for an older file? The official Modrinth project page is in Resources.