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.

Achievement Friendly: no experimental toggles required, so achievements stay fully enabled in your world.


🆕 What's New in v1.3.0

New Environmental Hazard: Stench Outbreak

Toxic methane gas and a foul rotting smell are seeping out of the ground! Working without respiratory protection while this hazard is active periodically triggers Nausea (dizziness) and Hunger (rapid hunger drain). Wear a Scented Mask in your Helmet slot to become immune to the toxic gas.

  • dyneco:scented_mask: 32 uses, craftable.
  • dyneco:super_scented_mask: 64 uses, Black Market exclusive (500 Ducats).

3 New Minor Daily Events

  • Construction Boom (construction_boom): A neighboring town's building project drives wood prices up to 1.5x.
  • Fuel Shortage (fuel_shortage): Industrial coal supply runs low, mineral prices rise to 1.6x.
  • Arms Surplus (arms_surplus): Donated war supplies flood the market, equipment prices drop to 0.6x.

🚀 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 65% 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 5 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.
    • Wood Blight (wood_blight): Chopping any tree log without Tree Medicine in your off-hand crushes it into a plain Stick.
    • Stench Outbreak (stench_outbreak): Toxic gas triggers periodic Nausea and Hunger unless you're wearing a Scented Mask.

    Plus 7 minor daily events that shift category prices without needing mitigation: Great Harvest (crops 0.6x), Miners' Strike (minerals 1.6x), Blacksmith Holiday (equipment 1.5x), Mystical Eclipse (mob drops 1.4x), Construction Boom (wood 1.5x), Fuel Shortage (minerals 1.6x), and Arms Surplus (equipment 0.6x).

    Plus 7 broader market/crisis events: Normal Day, Famine (crops 1.8x), Gold Rush (minerals 0.6x), Monster Invasion (mob drops 1.6x), Monsoon Storm (wood 1.8x), Trader Festival (all prices 0.75x), and Nether Breach (Nether commodities spike sharply).

  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 chat log alert with full guidance appears when a hazard is active, plus an ActionBar ticker showing the hazard name and 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)

# Major Hazards
/scriptevent dyneco:trigger_hazard crop_plague
/scriptevent dyneco:trigger_hazard volcanic_eruption
/scriptevent dyneco:trigger_hazard animal_disease
/scriptevent dyneco:trigger_hazard wood_blight
/scriptevent dyneco:trigger_hazard stench_outbreak

# Minor Events
/scriptevent dyneco:trigger_hazard great_harvest
/scriptevent dyneco:trigger_hazard miners_strike
/scriptevent dyneco:trigger_hazard blacksmith_holiday
/scriptevent dyneco:trigger_hazard mystical_eclipse
/scriptevent dyneco:trigger_hazard construction_boom
/scriptevent dyneco:trigger_hazard fuel_shortage
/scriptevent dyneco:trigger_hazard arms_surplus

# Other Market & Global Crisis Events
/scriptevent dyneco:trigger_hazard normal
/scriptevent dyneco:trigger_hazard famine
/scriptevent dyneco:trigger_hazard gold_rush
/scriptevent dyneco:trigger_hazard monster_invasion
/scriptevent dyneco:trigger_hazard monsoon_storm
/scriptevent dyneco:trigger_hazard trader_festival
/scriptevent dyneco:trigger_hazard nether_breach

Admins get instant chat feedback on whether the event triggered successfully or the ID wasn't found.


⚙️ 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: 1x Iron Ingot + 2x Sticks + 1x Flint, shapeless recipe (off-hand)
  • Animal Vaccine: 1x Glass Bottle + 1x Spider Eye + 1x Sugar + 1x Iron Ingot (main hand)
  • Tree Medicine: 1x Glass Bottle + 1x Spider Eye + 1x Bone Meal + 1x Sugar, shapeless recipe (off-hand)
  • Scented Mask: 1x Paper + 1x Yellow Flower (Dandelion) + 1x Sugar + 1x Glass Bottle, shapeless recipe (Helmet slot)
  • Bulletin Board: top row 3x Wood Planks, middle row 3x Wood Slabs, bottom row Stick + Paper + Stick

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
  • 3
    Followers
  • 8
    Projects
  • 49.4K
    Downloads

More from VerocrftView all