promotional bannermobile promotional banner

Qube's Server Shop

A server-side economy mod that adds a virtual currency system and a GUI-based shop where players can buy items and exchange resources for credits.

Core Concept

A server-side economy mod that adds a virtual currency system and a GUI-based shop where players can buy items and exchange resources for credits.

Key Features

1. The Shop GUI

  • Command: Accessed via /shop.
  • Tabs: Configurable categories (e.g., "Ores", "Combat") displayed as tabs on the left side of the screen.
  • Pagination: Automatically creates new pages if a tab has too many items.

2. Currency Exchange System

  • Dedicated Mode: A tab (Emerald Icon) on the bottom-right switches the screen to "Exchange Mode."
  • Exchange Mode: Players can Deposite resources (e.g., Diamonds) for credits or Withdraw them back.
  • Smart Quantity: Includes a text input field (top-right) where players can type exactly how many items they want to trade (e.g., "100" or "64"), alongside a quick toggle button.
  • Bulk Support: The logic correctly calculates prices based on stack sizes defined in the config (e.g., selling 64 items at once for 1 credit).

3. Custom Economy

  • Virtual Currency: Credits are stored in player data, not as physical items.
  • HUD Display: The player's current balance is displayed on the main game screen (bottom-right).
  • Configurable Identity: You can change the Currency Name (e.g., "Dollars", "Gold") and Symbol (e.g., "$", "€") in the config file.

4. Robust Configuration (qube-shop.json)

  • Fully Data-Driven: Server admins can add/remove shop items, create new tabs, and set prices without changing code.
  • NBT Support: The shop supports selling items with specific NBT data (like enchanted swords or potion effects).
  • Localization: All text supports en_us.json language files for translation.

5. User Experience

  • Overlay Feedback: Instead of spamming the chat, success (Green) or error (Red) messages appear floating inside the Shop GUI and fade out smoothly.
  • Auto-Naming: Items automatically use their correct Minecraft language name (e.g., "Diamond Sword" vs "Espada de diamante") if a custom name isn't provided.

The Qube's Server Shop Team

profile avatar
  • 1
    Projects
  • 179
    Downloads