{"id":151006,"date":"2026-06-09T05:32:50","date_gmt":"2026-06-09T02:32:50","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/"},"modified":"2026-06-09T05:32:50","modified_gmt":"2026-06-09T02:32:50","slug":"swap-item","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/","title":{"rendered":"Swap Item"},"content":{"rendered":"<p># Swap Item<br \/>\n > 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! <\/p>\n<p># \ud83d\udce5How to Install<br \/>\nChoose if you want to download the pure **Data Pack** version or the **Mod** version and follow the  steps accordingly.  <\/p>\n<details close>\n<summary>Data Pack<\/summary>\n<p>* **1)** Download the Datapack<br \/>\n* **2)** Chose the world you want to install the Data Pack in and navigate to its &#8220;_datapacks_&#8221; folder<br \/>\n* **3)** Copy the downloaded Data Pack file (Swap Item) into this folder<br \/>\n* **4)** Join the world and run <code>\/reload<\/code> command  <\/p>\n<\/details>\n<details close>\n<summary>Mod<\/summary>\n<p>* **1)** Download the Mod<br \/>\n* **2)** Navigate to your <code>mods<\/code> folder (for the vanilla launcher the path is <code>.minecraft\/mods<\/code><br \/>\n* **3)** Put the downloaded .jar file (Swap Item) into this folder<br \/>\n* **4)** Join the world and run <code>\/reload<\/code> command<br \/>\n### The Mod version of this Data Pack is compatibile with Fabric, Forge, Quilt and NeoForge<br \/>\nNote: _support for NeoForge is available starting from version **1.2.2** of the pack_<\/p>\n<\/details>\n<p># \ud83d\udcd6Features<br \/>\nThis 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**.<\/p>\n<details close>\n<summary>Commands<\/summary>\n<table>\n<thead>\n<tr>\n<th><font>Command<\/font><\/th>\n<th>Effect<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>\/trigger swapitem.entity.mainhand<\/code><\/td>\n<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>\n<\/tr>\n<td><code>\/trigger swapitem.entity.offhand<\/code><\/td>\n<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>\n<\/tr>\n<td><code>\/trigger swapitem.entity.head<\/code><\/td>\n<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>\n<\/tr>\n<td><code>\/trigger swapitem.entity.chest<\/code><\/td>\n<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>\n<\/tr>\n<td><code>\/trigger swapitem.entity.legs<\/code><\/td>\n<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>\n<\/tr>\n<td><code>\/trigger swapitem.entity.feet<\/code><\/td>\n<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>\n<\/tr>\n<td><code>\/trigger swapitem.head<\/code><\/td>\n<td>Puts the item you are holding in <b>your head slot<\/b>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/details>\n<details close>\n<summary>YouTube Showcase<\/summary>\n<p><center><iframe loading=\"lazy\" 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><\/p>\n<\/details>\n<p># \ud83d\udce4How to Uninstall<\/p>\n<details close>\n<summary>Data Pack<\/summary>\n<p>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.<\/p>\n<\/details>\n<details close>\n<summary>Mod<\/summary>\n<p>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.<\/p>\n<\/details>\n<p>## \ud83d\udd17External links<br \/>\n<img decoding=\"async\" src=\"https:\/\/i.imgur.com\/B6lsNn0.png\" width=\"40\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/i.imgur.com\/PTAiKsV.png\" width=\"40\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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!<\/p>\n","protected":false},"featured_media":151007,"template":"","meta":{"_minecraft_slug":"swap-item","_minecraft_project_id":"mBwmAXuA","_minecraft_author":"Nico4play","_minecraft_license":"LicenseRef-All-Rights-Reserved","_minecraft_downloads":3235,"_minecraft_follows":19,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"swap-item.zip","_minecraft_size_bytes":345175,"_minecraft_version_count":30,"_minecraft_updated_at":"2026-05-16T02:22:37.017104Z","_minecraft_date_created":"2023-03-14T01:24:43.116666Z","_minecraft_date_modified":"2026-03-26T00:50:21.201634Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/swap-item","_minecraft_icon_attachment_id":151007,"_minecraft_imported_at":"2026-06-09T02:32:52+00:00","_minecraft_import_hash":"dd4db2c561af5939cf1b5b9cf8f8b1bf","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[84,156,88,97,104,137,158,98,92],"mod_loader":[86,99,106,160,100],"minecraft_version":[54,55,56,57,58,59,36,60,93,94,101,102,62,37,40,41,73,74,38,78,79,80,81,82,83,167,163],"class_list":["post-151006","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-datapack","mod_category-decoration","mod_category-equipment","mod_category-fabric","mod_category-forge","mod_category-mobs","mod_category-neoforge","mod_category-quilt","mod_category-utility","mod_loader-datapack","mod_loader-fabric","mod_loader-forge","mod_loader-neoforge","mod_loader-quilt","minecraft_version-1-19","minecraft_version-1-19-1","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9","minecraft_version-26-1","minecraft_version-26-1-1","minecraft_version-26-1-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Swap Item - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Swap Item - Minecraft\" \/>\n<meta property=\"og:description\" content=\"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!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i.imgur.com\/B6lsNn0.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/swap-item\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/swap-item\\\/\",\"name\":\"Swap Item - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/swap-item\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/swap-item\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/swap-item-icon-e8316dfb76dd44f8f8c35a002576195e92beeaa4_96.webp\",\"datePublished\":\"2026-06-09T02:32:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/swap-item\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/swap-item\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/swap-item\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/swap-item-icon-e8316dfb76dd44f8f8c35a002576195e92beeaa4_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/swap-item-icon-e8316dfb76dd44f8f8c35a002576195e92beeaa4_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/swap-item\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Swap Item\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Swap Item - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/","og_locale":"en_US","og_type":"article","og_title":"Swap Item - Minecraft","og_description":"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!","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/","og_site_name":"Minecraft","og_image":[{"url":"https:\/\/i.imgur.com\/B6lsNn0.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/","name":"Swap Item - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/swap-item-icon-e8316dfb76dd44f8f8c35a002576195e92beeaa4_96.webp","datePublished":"2026-06-09T02:32:50+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/swap-item-icon-e8316dfb76dd44f8f8c35a002576195e92beeaa4_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/swap-item-icon-e8316dfb76dd44f8f8c35a002576195e92beeaa4_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/swap-item\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Swap Item"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/151006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/151007"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=151006"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=151006"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=151006"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=151006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}