{"id":158931,"date":"2026-06-09T16:58:52","date_gmt":"2026-06-09T13:58:52","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/"},"modified":"2026-06-09T16:58:52","modified_gmt":"2026-06-09T13:58:52","slug":"trade-gui","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/","title":{"rendered":"Trade GUI"},"content":{"rendered":"<p># Minecraft Trade GUI Datapack<\/p>\n<p>A powerful, highly customizable vanilla Minecraft trading shop system datapack.<\/p>\n<p>## About the Author<br \/>\nAuthor: YChenY5260<\/p>\n<p>## Datapack Introduction<br \/>\nThis datapack utilizes Minecraft&#8217;s vanilla datapack capabilities and new features from version 1.21.8+ to implement a fully customizable shop trading system. You no longer need to rely on villagers! You can create your own shops, set any items as currency and goods, provide an intuitive GUI interface for other players to trade with, and it requires almost no writing of tedious Json files.<\/p>\n<p>## Features<br \/>\n&#8211; **Shop Creation &#038; Management**: Use specific tools to generate shop entities and customize their name, appearance color, and number of supported pages.<br \/>\n&#8211; **Dual Modes**:<br \/>\n  &#8211; **Edit Mode**: The shop owner can directly place items within the shop interface to set up trades.<br \/>\n  &#8211; **Open Mode**: Customers can trade with the shop.<br \/>\n&#8211; **Multi-Page System**: A single shop supports up to 30 pages, making it easy to organize a large number of trades.<br \/>\n&#8211; **Complex Trade Logic**: Supports trading one item for multiple goods, and complex trades requiring multiple types of currency.<br \/>\n&#8211; **Visual Preprocessing**: Provides a trade item &#8220;crafting&#8221; system. Automatically generates complex trade items by placing items in a chest, greatly simplifying the setup process.<br \/>\n&#8211; **Powerful Algorithm Core**: Includes a self-developed algorithm library supporting loops, arithmetic operations, and other advanced features, providing strong support for the system.<\/p>\n<p>## Usage Instructions<br \/>\n1. **Install the Datapack**<br \/>\n   &#8211; Place the downloaded `.zip` file into the `datapacks` folder of your world (`\/.minecraft\/saves\/<Your World Name>\/datapacks\/`).<br \/>\n   &#8211; In-game, type `\/reload` or re-enter the world to load the datapack.<br \/>\n   &#8211; A success message will indicate successful installation.  <\/p>\n<p>2. **Obtain Tools**<br \/>\n   &#8211; Use the command `\/function give:<tool_name>` in-game to get tools.  <\/p>\n<p>   Tool names can be:<br \/>\n   &#8211; `summon_trader`: Summon Trader Tool &#8211; Used to create a new shop entity<br \/>\n   &#8211; `trader_mode_switcher`: Shop Mode Switcher &#8211; Used to switch the shop between Edit and Open modes<br \/>\n   &#8211; `trader_setting_tool`: Trader Setting Tool &#8211; Used to set basic shop information **(Deprecated)**<\/p>\n<p>3. **Create Your First Shop**<br \/>\n   &#8211; Use the `Summon Trader Tool`. Follow the dialog prompts to input the shop name, color, and number of pages to generate a shop entity (a Minecart with Chest).<br \/>\n   &#8211; Hold the `Shop Mode Switcher` and right-click the shop to switch it to **Edit Mode** (Move back a bit; successful switch is indicated by text above the shop).<br \/>\n   &#8211; Use the command `\/tag @s add editing` to grant yourself editing permissions.<br \/>\n   &#8211; Right-click to open the shop interface. Place the items you want to sell (trade items) as if organizing a chest. **How to get trade items?** See &#8220;Preprocessing System&#8221; below.<br \/>\n   &#8211; After editing, use the `Shop Mode Switcher` again to switch back to **Open Mode**.<br \/>\n   &#8211; Use the command `\/tag @s remove editing` to remove your editing permissions. Now you can right-click to open the shop and trade with it!  <\/p>\n<p>   Tips:<br \/>\n   &#8211; In **Edit Mode**, you can edit the GUI border of the shop (but never remove the Previous Page and Next Page buttons, though it is not recommended.<\/p>\n<p>4. **Preprocessing System**<br \/>\n   &#8211; Place a **regular chest** on top of a command block.<br \/>\n   &#8211; Write the command `function pre_process:chest_generator` in the command block.<br \/>\n   &#8211; Open the chest and place items in the corresponding slots:<br \/>\n     &#8211; **First Row (Slot 0)**: Place the desired &#8220;icon item&#8221; for the trade item display (any item)<br \/>\n     &#8211; **Second Row (Slots 9-17)**: Place items the customer should **receive** (up to 9 types)<br \/>\n     &#8211; **Third Row (Slots 18-26)**: Place items the customer should **pay** (up to 9 currency types)<br \/>\n   &#8211; Close the chest and activate the command block (provide redstone power).<br \/>\n   &#8211; Reopen the chest to collect the generated trade item. Place it in your shop interface!  <\/p>\n<p>   Tips:<br \/>\n   &#8211; All items support custom names\/lore<br \/>\n   &#8211; Custom currency requires unique `custom_data` component<br \/>\n   &#8211; Grant yourself editing permissions before taking trade items (`\/tag @s add editing`)  <\/p>\n<p>5. **Trading Process**<br \/>\n   &#8211; Ensure you do *not* have editing permissions (`\/tag @s remove editing`). Open the &#8220;Shop&#8221;.<br \/>\n   &#8211; Carry sufficient currency. Click on the desired good (trade item).<br \/>\n   &#8211; Success: Hear confirmation sound + receive goods + currency consumed<br \/>\n   &#8211; Failure: Chat message shows missing currency (hover for details)  <\/p>\n<p>## Advanced Usage &#038; Customization<br \/>\nCore configuration uses scoreboards and Storage:<br \/>\n&#8211; **Modify Page Limit (Default: 30)**<br \/>\n  Edit `data\/<namespace>\/dialog\/trader_summoner.json` (requires JSON knowledge)<br \/>\n*(Advanced customization typically requires direct function file modification)*  <\/p>\n<p>## Compatibility<br \/>\n&#8211; Requires **Minecraft Java Edition 1.21.8+ (Datapack v81+)**<br \/>\n&#8211; Uses Dialog system introduced in 1.21.8<br \/>\n&#8211; Theoretically compatible with future versions  <\/p>\n<p>## License<br \/>\n**MIT License** &#8211; Free for personal\/commercial use with attribution. See `LICENSE` file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a datapack that allows players to create, manage, and operate store systems with custom item trading and GUI interfaces in vanilla Minecraft.<\/p>\n","protected":false},"featured_media":158932,"template":"","meta":{"_minecraft_slug":"trade-gui","_minecraft_project_id":"dPyUNSNs","_minecraft_author":"YChenY5260","_minecraft_license":"MIT","_minecraft_downloads":69,"_minecraft_follows":0,"_minecraft_client_side":"optional","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"trade-gui.zip","_minecraft_size_bytes":183011,"_minecraft_version_count":1,"_minecraft_updated_at":"2026-05-15T22:56:12.268015Z","_minecraft_date_created":"2025-09-14T04:06:39.810432Z","_minecraft_date_modified":"2025-09-12T08:55:34.281640Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/trade-gui","_minecraft_icon_attachment_id":158932,"_minecraft_imported_at":"2026-06-09T13:58:52+00:00","_minecraft_import_hash":"d2d3a66d13777e85697a2b625294f9a9","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[84],"mod_loader":[86],"minecraft_version":[81],"class_list":["post-158931","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-datapack","mod_loader-datapack","minecraft_version-1-21-8"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Trade GUI - 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\/trade-gui\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Trade GUI - Minecraft\" \/>\n<meta property=\"og:description\" content=\"This is a datapack that allows players to create, manage, and operate store systems with custom item trading and GUI interfaces in vanilla Minecraft.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/trade-gui\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/trade-gui\\\/\",\"name\":\"Trade GUI - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/trade-gui\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/trade-gui\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/trade-gui-icon-b2c4407971a5cda3f4b6cba895194cd64c1e221d_96.webp\",\"datePublished\":\"2026-06-09T13:58:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/trade-gui\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/trade-gui\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/trade-gui\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/trade-gui-icon-b2c4407971a5cda3f4b6cba895194cd64c1e221d_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/trade-gui-icon-b2c4407971a5cda3f4b6cba895194cd64c1e221d_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/trade-gui\\\/#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\":\"Trade GUI\"}]},{\"@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":"Trade GUI - 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\/trade-gui\/","og_locale":"en_US","og_type":"article","og_title":"Trade GUI - Minecraft","og_description":"This is a datapack that allows players to create, manage, and operate store systems with custom item trading and GUI interfaces in vanilla Minecraft.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/","name":"Trade GUI - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/trade-gui-icon-b2c4407971a5cda3f4b6cba895194cd64c1e221d_96.webp","datePublished":"2026-06-09T13:58:52+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/trade-gui-icon-b2c4407971a5cda3f4b6cba895194cd64c1e221d_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/trade-gui-icon-b2c4407971a5cda3f4b6cba895194cd64c1e221d_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/trade-gui\/#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":"Trade GUI"}]},{"@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\/158931","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\/158932"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=158931"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=158931"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=158931"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=158931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}