ExpensiveTradesOptions

@Serializable
data class ExpensiveTradesOptions(var enabled: Boolean = true, var priceMultiplierMultiplier: Float = 3.0f, var startingDemand: Int = 5, var restockMinimumDemand: Int = 5, var ignoreDiscounts: Boolean = true) : ModuleOptions

Constructors

Link copied to clipboard
constructor(enabled: Boolean = true, priceMultiplierMultiplier: Float = 3.0f, startingDemand: Int = 5, restockMinimumDemand: Int = 5, ignoreDiscounts: Boolean = true)

Properties

Link copied to clipboard
open override var enabled: Boolean

Whether the module is enabled or not. This is used to determine if the module should be loaded and its features activated.

Link copied to clipboard

If true, the recipe will ignore discounts from villagers. This should be set to true to ensure that trades remain expensive. This ignores discounts from the hero of the village effect, and curing a zombie villager.

Link copied to clipboard

Multiplier for the price of trades. Higher values make the price changer more quickly. Note this price change on itself goes both ways, meaning non-frequent trades (low demand) would be very cheap. Use the startingDemand and restockMinimumDemand options to control the demand for trades. Where high demand means high prices.

Link copied to clipboard

The minimum demand for trades to be restocked. If the demand is below this value, the recipe will not be restocked. This is to prevent trades from becoming too cheap.

Link copied to clipboard

High demand for trades means higher prices. This only affects the initial demand for trades. To keep high prices, the demand has to stay high by trading frequently.