Removed the trade cache and its surrounding mechanics. Older maps can no longer be resold; they can no longer be unlisted at all, until they meet the conditions to be fully discarded.
- Fixes #11
- Improves native compatibility with other mods. Custom implementations of map trades will no longer cause unsold maps to be discarded.
- Other mods can now more easily communicate data for other kinds of persistent items, without requiring a dependency on Shifting-Wares.
Upgrading a world from v2 will cause all cached maps to be discarded, even if never sold.
- Ported to MCÂ 1.21.2, marked previous branch as incompatible.
- (+1.21.3) Placeholder trades are back to looking empty, thanks to
item_model
components.
- Trade cache serialization can no longer be attempted on the render thread.
In singleplayer, this will improve performances when using Fresh Animations and some other ETF/EMF-dependent resource packs.
Ported to 1.20.5:
- Map trades caching will prioritize the
item_name
over thecustom_name
if both components are present. - Placeholder trades now display an emerald on each sides, since Minecraft no longer supports empty trades. (The change is purely cosmetic, placeholders still cannot be used.)
Upgrading an older world to 1.20.5
No particular actions should be required, but the upgrade process is partially handled by the mod, please make backups and report any oddities you may find.
The mod needs to upgrade exploration maps from the trade caches. Potential issues to look out for are: trade maps loosing their content, their name, or not being stackable with previously sold maps.
If a villager had an empty placeholder trade, Minecraft will simply delete that trade. This shouldn't cause any long term issue; the villager's trade list will naturally fix itself upon rerolling.
- Fixed a crash that would occur upon restocking if Depleted Rerolls are disabled. (Regression introduced in v1.1)
- Marked this build as incompatible with 1.20.5
- Re-implemented Trade-Rebalance support in a backward-compatible way. This lets the same jar be compatible with versions of Minecraft that don't have this feature.
- Added an API that will be used to add compatibility with other mods. In particular, this is used by the VillagerConfig addon.
- Added a gamerule that allows cartographers to generate new maps, but only if the previous one has been sold at least once. (Disabled by default)
- Trade level per slots is evaluated more accurately for each job.
The old 2-2-2-2-1 layout is no longer blindly applied to everyone; some specific jobs (e.g, fisherman and farmer) did not actually respect this layout, and some of their trades would not reroll properly. - Added support for rebalanced trade pools. (+1.20.2 branch only)
The +1.20 branch is still compatible with all MCÂ 1.20.x on every other aspect.
- Fixed world-corrupting errors from 1.0.2 and 1.0.3 (now taken down)
Do not use these versions if you downloaded them. - Fixed cartographers having trouble generating high-level trades, when the world is set to generate no structure.
- Removed cartographers' ability to generate new maps during rerolls.
This would cause issues with daily rerolls, as cartographers could generate a lot of unsold map IDs, locking nearby structure from appearing on Explorer Maps.
Fixed a crash that would occur late after a Cartographer failed to reroll a map trade in a world that generates no structure.
Initial Release