HomeJavaModsTradeChest
TradeChest
ModsJava

TradeChest

by rodortega · on Modrinth

A Minecraft Fabric mod that adds automatic trading chests with a 9x5 inventory layout. Set up vending machine-style shops where customers place buy items…

⬇ Download on Modrinth

TradeChest Mod

A Minecraft Fabric mod that adds automatic trading chests with a 9x5 inventory layout. Set up vending machine-style shops where customers place buy items and automatically receive sell items in return.

Minecraft Fabric Java

Features

Requirements

Installation

For Players

  1. Install Fabric Loader

    • Download and run the Fabric Installer
    • Select Minecraft 1.20.1 and install Fabric
  2. Download Dependencies

    • Download Fabric API for 1.20.1
    • Place the Fabric API JAR in your .minecraft/mods folder
  3. Install TradeChest Mod

    • Download the latest TradeChest mod JAR file
    • Place it in your .minecraft/mods folder
  4. Launch Game

    • Start Minecraft with the Fabric profile
    • The Trade Chest item will be available in the Functional Blocks creative tab

For Developers

  1. Clone Repository

    git clone https://github.com/rodortega/mc-tradechest.git
    cd mc-tradechest
    
  2. Build from Source

    ./gradlew build
    
  3. Run in Development

    ./gradlew runClient
    

How to Use

Crafting

Craft a Trade Chest using this recipe:

Trade Chest Recipe

[Planks] [Planks] [Planks]
[Planks] [Paper ] [Planks]
[Planks] [Planks] [Planks]

Basic Setup

  1. Place the Trade Chest - Cannot be used until configured with an owner

  2. Set Ownership (Slot 18):

    • Rename a paper with your exact username using an anvil
    • Place it in slot 18 (first slot of third row)
    • You are now the owner and can manage the chest

Setting Owner

  1. Configure Buy Requirements (Slot 19):
    • Rename a paper: 10 minecraft:iron_ingot
    • Place in slot 19
    • This determines what customers must provide

Setting Buy Requirements

  1. Configure Sell Items (Slot 20):
    • Rename a paper: 5 minecraft:diamond
    • Place in slot 20
    • This determines what customers receive

Setting Sell Items

  1. Stock Sell Items:
    • Place diamonds in the bottom row (slots 36-44)
    • Only the configured sell item type can be placed there

Restocking Supplies

  1. Ready to Trade:
    • Customers place iron ingots in top row (slots 0-8)
    • Diamonds automatically appear in pickup zone (slots 9-17)
    • Iron ingots move to your collection area (slots 27-35)

Inventory Layout (9x5)

Row 1: [Buy Items Input Area - Customers place buy items here]           (Slots 0-8)
Row 2: [Pickup Zone - Traded items appear here automatically]           (Slots 9-17)
Row 3: [OWNER] [BUY] [SELL] [----LOCKED CONFIGURATION AREA----]         (Slots 18-26)
Row 4: [Owner Collection - Buy items go here after trades]              (Slots 27-35)
Row 5: [Sell Items Storage - Owner stocks sell items here]              (Slots 36-44)

How Trading Works

  1. Customer Action: Places 10 iron ingots in row 1
  2. Automatic Processing: System detects complete trade
  3. Item Movement:
    • 5 diamonds move from row 5 to row 2 (pickup zone)
    • 10 iron ingots move from row 1 to row 4 (owner collection)
  4. Customer Pickup: Customer takes diamonds from row 2
  5. Excess Handling: If customer placed 15 iron, 5 excess remain in row 1 for pickup

Example: Automatic Diamond Shop

  1. Setup Phase:

    • Rename papers: YourUsername, 10 minecraft:iron_ingot, 5 minecraft:diamond
    • Place papers in slots 18, 19, 20 respectively
    • Stock 64 diamonds in bottom row (slots 36-44)
  2. Customer Transaction:

    • Customer places 20 iron ingots in top row
    • System automatically processes 2 trades (20 ÷ 10 = 2)
    • 10 diamonds appear in pickup zone (5 × 2 = 10)
    • 20 iron ingots move to owner collection area
    • Customer takes 10 diamonds from pickup zone
  3. Owner Benefits:

    • Collect 20 iron ingots from row 4 anytime
    • Restock diamonds in row 5 as needed
    • No manual intervention required

Permissions

Slot Range Area Customers Can Owner Can
0-8 Buy Items Input Place buy items, take excess Full access
9-17 Pickup Zone Take any items Full access
18-20 Configuration None Place/remove papers
21-26 Locked Area None None
27-35 Owner Collection None Full access
36-44 Sell Storage None Stock sell items

Paper Formats

Troubleshooting

Building

This mod uses the Fabric toolchain:

# Clean and build
./gradlew clean build

# Run client for testing
./gradlew runClient

# Generate sources jar
./gradlew sourcesJar

Development

Project Structure

Key Classes

License

This mod is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.

Buy me a coffee!

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more