Wiki 9Minecraft Wiki 9Minecraft
Market Logic Json Wiki › Guides › How to Set Up Custom Shops and the Shop Directory Block

How to Set Up Custom Shops and the Shop Directory Block

Creating Data-Driven Shops

Market Logic JSON Mod relies on data packs to build custom shops without requiring hard-coded mod files. If you are customizing a world or building a modpack, you can link shops to almost anything in the game.

1. Open your world or modpack's data pack folder.

2. Create and define your custom shop JSON files inside the data pack structure, specifying the items for sale and their required payment costs.

3. Within those JSON files, assign each shop to its target trigger: a specific villager profession, a mob type, or a specific block.

4. Reload your data packs in-game or restart the world so the new trade menus take effect when players right-click the assigned targets.

Adding a Universal Shop Selector Block

Instead of forcing players to track down separate mobs or villagers for every trade category, you can turn any block into an all-in-one shop directory.

1. Open the block tags directory within your data pack.

2. Locate or create the #society_trading:opens_shop_selector block tag.

3. Add the block ID of your chosen terminal or counter block to this tag.

4. Save the file and reload your data packs. When a player right-clicks that block in the world, it will open the master shop selector menu displaying all available custom trader categories in one window.