HomeJavaDatapacksShop 'n Trade
Shop 'n Trade
DatapacksJava

Shop 'n Trade

by TQNL · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Data pack only.

⬇ Download for 1.21–1.21.1⬇ Download for 1.20.2
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Shop 'n Trade — screenshot 1Shop 'n Trade — screenshot 2

Shop 'n Trade

The Shop 'n Trade datapack enhances in-game trading by providing a streamlined system for shop creation and management. As a shopkeeper, you can efficiently set up and manage your shop with automated processes and user-friendly features.

Shop Creation and Setup

To create a shop, place a sign on a chest, barrel, or shulker box. The sign must include the shop owner’s name, the quantity of items available, and the pricing details. The system automatically detects and validates these details, determining the item to be sold based on the container’s contents. This setup eliminates the need for manual item configuration.

When you walk into the sign, the system automatically detects and sets up the shop based on these details and the container's contents.

Sign Format:

Example:

image

Managing the Shop

Shop Maintenance and Notifications

Regularly restock items while the shop is unlocked. The system automatically updates the shop’s inventory with new items. If the shop runs out of stock, the shopkeeper is notified when online and not AFK. The scoreboard snt_total_profits stores the total amount of diamonds someone has ever made from their shops. /trigger view_shop_profit_scores_toggle toggles being able to view those total profits on the sidebar.

Automated Systems

Shops and inventories are automatically created and updated based on container contents. The system includes robust validation for items and stock levels, filtering out invalid entries and performing NBT data checks to ensure smooth operation.

Buying

Players purchase items by right-clicking the shop sign. For items with NBT data, a confirmation message with detailed information is provided before completing the transaction, ensuring accurate and transparent purchases.

Security and Anti-Griefing

Players near a shop are placed in Adventure mode to prevent unintended interactions. If trapped, use the /trigger trapped_in_shop command to escape. Shops are locked by default; the shop owner can unlock the shop by clicking the sign to manage it.

In-game help

running /trigger shop_help in-game will show a guide in chat with a link to the full wiki page.

The admin command /function shop:uninstall will give a chat message that when pressed removes scoreboards and breaks all shop functionality, so you can remove the data pack without bloat to your world (consider making a backup and be careful who you hand admin permissions on your server).

notice

Keep in mind:

Terms of use:

Do:

Don't:

Under CC-BY-NC-SA 4.0 license

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

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

Explore more