Описание
Refresh Trades adds a dedicated reroll button to the merchant screen so you can refresh current offers without closing the trade UI.
The mod is built around server-side validation, configurable payment rules and clear client feedback. The button updates its state in real time, shows when payment is missing, displays cooldown information and provides a detailed tooltip with merchant info, level, cost and availability.
## Current Features
- Refresh villager trades directly from the merchant screen.
- Refresh wandering trader trades directly from the same UI.
- Optional paid refresh with configurable item payment.
- Configurable payment item for villagers and wandering traders separately.
- Configurable cooldown for villagers and wandering traders separately.
- Configurable number of generated villager offers per unlocked level.
- Configurable number of common and rare wandering trader offers.
- Live button state preview before pressing.
- Detailed tooltip with status, merchant name, level, cost and available payment amount.
- Cooldown tracking that uses both player and merchant state for more predictable multiplayer behavior.
- Safer reroll generation for modpacks with broken, custom or unusual trade listings.
- Clear block reasons such as cooldown, missing payment, invalid config item or unavailable offers.
## Server Config
Villagers (`refresh_trades`):
- `paid_refresh` enables or disables payment.
- `emerald_cost` sets how many items are required for one refresh.
- `payment_item` sets which item is consumed as payment.
- `offers_per_level` sets how many offers are rolled for each unlocked villager level.
- `cooldown_ticks` sets the villager refresh cooldown (`20` ticks = `1` second).
Wandering trader (`refresh_wandering_trades`):
- `enabled` enables or disables wandering trader refresh.
- `paid_refresh` enables or disables payment.
- `emerald_cost` sets how many items are required for one refresh.
- `payment_item` sets which item is consumed as payment.
- `common_offers` sets how many common offers are rolled.
- `rare_offers` sets how many rare offers are rolled.
- `cooldown_ticks` sets the wandering trader refresh cooldown (`20` ticks = `1` second).
## Localization
- English (`en_us`)
- Russian (`ru_ru`)