Docs

Dynamic market

Block prices move with the supply of the whole server. Selling a lot of one block lowers its price, and the price recovers toward its base value when demand rests.

Configurationmarket.yml (base prices in prices.yml)
Datadata/market.yml
Modulemarket

Commands

CommandAliasesPermissionDescription
/market/mercado, /pricespulseprison.market (everyone)Price board with trends and mini charts
/market price <block>pulseprison.marketCurrent price, base price and trend of a block

Default configuration

yaml
enabled: true
update-interval-seconds: 300        # how often prices are recalculated
expected-volume-per-window: 20000   # "normal" sales per block in one window
elasticity: 0.18                    # how far oversupply lowers the price
recovery: 0.08                      # how far it returns toward the base price per window
bounds:
  minimum: 0.35                     # never below 35% of the base price
  maximum: 2.5                      # never above 250%
announce-swings: true
announce-threshold-percent: 25.0    # announce moves of 25% or more

Every sale (hand mining, auto-sell, /sellall, backpack and robots) feeds the market.

Placeholders

PlaceholderReturns
%pulseprison_market_price_<block>%Current price
%pulseprison_market_trend_<block>%Trend (rising, falling, stable)

Event for addons: MarketPriceChangeEvent.

Dynamic market | PulsePrison Core Docs