promotional bannermobile promotional banner

Dynamic Economy

Dynamic economy addon with automatic supply & demand pricing and daily market events for Bedrock survival worlds.
addon_cover_thumbnail.png

addon_cover_thumbnail.png

Description

๐Ÿ“ˆ Dynamic Economy Addon

A Minecraft Bedrock Edition addon bringing a dynamic economy based on Supply & Demand, shaped by Daily Market Events, and featuring a Daily Hazards System (Hazards & Mitigation) and a Server Cooperative Project. Lightweight, safe, and 100% compatible with other addons since it never modifies player.json.


๐Ÿš€ Key Features

  1. Dynamic Economy (Supply & Demand) Sell an item → stock goes up → price automatically drops. Buy an item → stock goes down → price automatically rises.

  2. Bulk Pricing Prevents price exploitation on large buy/sell transactions using precise accumulative price calculation.

  3. Sell Tax (Spread) System Sell price is set at 80% of buy price, keeping the economy stable and preventing infinite money-printing loops.

  4. Daily Market Events & Economic Hazards Random daily events affect the market, plus 3 Daily Economic Hazards that disrupt productivity and require specific mitigation tools:

    • Crop Plague (crop_plague): Harvesting without Pesticide yields Spoiled Crop.
    • Volcanic Eruption (volcanic_eruption): Mining ore without a Stabilizer Chisel in your off-hand crushes it into Cobblestone.
    • Animal Disease (animal_disease): Slaughtering livestock without an Animal Vaccine only drops Rotten Flesh.
  5. Server Cooperative Project A hazard won't end until the donation target is met. The target scales dynamically: Target Per Player × Number of Online Players: still solo-player friendly.

  6. Black Market A secret shop that only appears while a hazard is active, selling Super Tools (64 uses) for 500 Ducats.

  7. Daily News An in-UI news sheet with hazard lore and full mitigation instructions.

  8. Live Hazard Visuals A [CRISIS ACTIVE] overlay appears while a hazard is active, plus an ActionBar ticker showing the cooperative donation progress every 5 seconds.

  9. Dynamic Translation (displayName Fallback) Custom item names are automatically pulled from displayName in config.js, no extra .lang file needed.


๐ŸŽฎ In-Game Usage

1. Opening the Market UI

  • Market Ledger: Automatically given on first join. Right-click to open the menu. If lost: /give @s dyneco:market_ledger
  • Bulletin Board: Place the dyneco:bulletin_board block, then right-click it to open the market instantly.
  • Command / Command Block: /scriptevent economy:market

2. Displaying the Balance on Screen

/scoreboard objectives setdisplay sidebar money

3. Admin Hazard Commands (Force Trigger)

/scriptevent dyneco:trigger_hazard crop_plague
/scriptevent dyneco:trigger_hazard volcanic_eruption
/scriptevent dyneco:trigger_hazard animal_disease

โš™๏ธ Admin Configuration (scripts/config.js)

A. Mitigation Tool Crafting Recipes

  • Pesticide: 1x Glass Bottle + 1x Spider Eye + 1x Bone Meal + 1x Iron Ingot (main hand)
  • Stabilizer Chisel: 2x Stick + 1x Iron Ingot (off-hand)
  • Animal Vaccine: 1x Glass Bottle + 1x Spider Eye + 1x Sugar + 1x Iron Ingot (main hand)

B. Registering New Items & Subcategories

items: {
  // VANILLA ITEM IN A STANDARD CATEGORY
  "minecraft:diamond": {
    displayName: "Diamond",
    category: "minerals", // crops | minerals | mob_drops | woods
    basePrice: 150,
    baseStock: 100,
    minPrice: 40,
    maxPrice: 600
  },

  // EQUIPMENT ITEM WITH A SUBCATEGORY
  "minecraft:netherite_sword": {
    displayName: "Netherite Sword",
    category: "equipment",   // Main Equipment category
    subcategory: "weapons",  // weapons | armor | tools
    basePrice: 1500,
    baseStock: 10,
    minPrice: 500,
    maxPrice: 3000,
    icon: "textures/items/netherite_sword.png"
  }
}

๐Ÿ”— Integration with Player Auction House Addon

This addon supports direct integration with the Gilded Ledger: Player Auction House Addon using a Loose Coupling system (ScriptEvents). This lets players open the auction menu directly from the main Global Market menu, and vice versa, so players only need to carry a single Ledger item in their inventory.

How to Enable the Integration

  1. In Dynamic Economy (scripts/config.js) Set the following values near the top of the config file:

    enableAuctionIntegration: true,
    auctionScriptEvent: "auction:open"
    
  2. In Player Auction House (scripts/config.js) Set the following values in your auction addon's config file:

    • disableLedgerGive: true (stops giving a duplicate auction ledger to new players).
    • enableReturnToMarket: true (shows a button to return to the dynamic market from the auction menu).

Once both settings are configured, just run /reload in-game. A [PLAYER AUCTIONS] button will automatically appear in the main Global Market menu.


 

 

The Dynamic Economy Team

profile avatar
  • 1
    Followers
  • 2
    Projects
  • 11.4K
    Downloads

More from Verocrft