Data Packs Server Utility

Global Server Shop

  • 4.9k views • 2 today
  • save_alt 592 downloads • 0 today
Compatibility
Minecraft 1.21
Changes include
    • 15
    • 23
    • 21
    Exandreal
    Lvl 51Grandmaster Explorer
    90
    With this datapack you can place a server global shop for your multiplayer world, where (almost) all items in the game can be bought and sold for diamonds!

    The shop uses an easy-to-use chest menu, where you can browse the available items conveniently placed in different categories. With a few clicks of the mouse you can buy/sell your items from/to the server shop. You can only buy items that other players have sold to the shop. This means that everything is player-generated, as opposed to villager trading where villagers "create" new items.

    Every item in the game has been assigned a value and a demand. When the shop storage of a certain item is large compared to the demand, the value is reduced so that you won't continue to make profits after selling a million cobblestone blocks... (The buying price is still fixed though, as the trader is a clever businessman!)

    Multiple shops can be placed different places in your world without problem, and will all contribute to the same global server economy.

    Let me know if I have missed some important items, and especially if you discover any bugs or exploits... :)



    Installation:

    - Download the .zip file and place it inside the datapacks folder in your world save.

    - Place/remove the shop in your world using the commands below:
      /function shop:place_shop
      /function shop:remove_shop

    4 Update Logs

    Update to 1.21.10 : by Exandreal 10/24/2025 11:54:14 amOctober 24, 2025 @ 3:54 pm UTC

    Added new copper items to shop
    Added wooden/stone/leather tools and armor
    LOAD MORE LOGS

      Have something to say?

    minecrafter2315151
    08/13/2025 3:00 am
    Level 1 : New Miner
    I see a lot of these economy shops with various special currencies and it always confuses me why people bother doing anything special in regards to trades.

    for instance, I don't quite understand why this uses diamonds/custom NBT assigned shards when there's already a currency in minecraft called emeralds and emerald blocks which already has scarcity based on the villager trading system mojang already has set up. Maybe i'm just weird for noticing that none of these economy/trader things use emeralds when there's no other use for emeralds aside from trading.



    It's a good datapack though. I did have it spawn 2 traders for some reason but that's probably just a random bug.
    2
    Exandreal
    08/13/2025 3:55 am
    Level 51 : Grandmaster Explorer
    Glad you like it!

    I agree that it is a bit annoying with the different currencies different mods/datapacks uses... :)
    I think the reason that emeralds are not widely used as a currency, is because they are fairly easy to farm with a raid farm, thus destroying the value of the currency. Diamonds on the other hand have no means of easy automatic farming, so they keep their value better. :)

    Weird with the 2 traders... I have not encountered that myself.
    1
    minecrafter2315151
    08/14/2025 3:29 pm
    Level 1 : New Miner
    you can farm diamonds from villagers for 1 emerald each. You can also modify villager trades to make it harder to farm. This is a datapack so you can just introduce other datapacks to make getting diamonds easier as well. Besides, wouldn't you want an easier to gain currency so your store gets more use on servers? :p



    the 2 traders thing happened at around 250 Y when I left the area and re-entered with a draw distance of about 2 and a simulation distance of 5. I had other datapacks enabled so it might be a bug on my end but figured i'd just report that.
    2
    Exandreal
    08/18/2025 4:45 am
    Level 51 : Grandmaster Explorer
    You can sell 1 diamond and get 1 emerald, but you cannot trade for diamonds (only tools and armor).
    I don't think diamonds are very hard to get. Besides with my shop, you can trade items for diamonds first, and then buy stuff with those diamonds :)

    It's a matter of balance for me. The guy who makes a raid farm will instantly become a billionaire in emeralds without much effort, while diamonds do not have this issue. But I suppose it's a matter of taste :)

    Thank you for the bug report. It might have been the very low render distance you use, that makes the datapack think the trader is gone and spawns a new one, but in reality the trader just hasn't loaded yet...
    2
    tanukisses
    08/03/2025 9:27 pm
    Level 1 : New Miner
    i just loaded it in my world and am SUPER exited to mess around with it! but any plans on adding an infinite stock option for single player worlds? no worries if not, i can spawn stuff in in creative, it just takes a while :)
    2
    Exandreal
    08/04/2025 4:49 am
    Level 51 : Grandmaster Explorer
    Not at the moment no. For me, it is important that everything is gathered by other players, so that the shop works similar to player shops, but more "centralized" :)
    1
    Mugidara
    07/27/2025 8:39 pm
    Level 1 : New System
    this is stupid clever man insane work!
    2
    CATNIP32
    02/13/2025 2:06 pm
    Level 1 : New Miner
    i placing but is only cheast
    1
    Exandreal
    02/15/2025 3:17 am
    Level 51 : Grandmaster Explorer
    The trader should appear as well? I have not included any structures, you'll have to build that yourself if you want
    1
    IXFYADX
    01/30/2025 11:06 am
    Level 50 : Grandmaster Aesthetic Aesthetic
    HOW BUY ITEM(-:
    1

    Welcome