Estecka / mc-Shifting-Wares

Villagers will occasionally reroll their trade offers
https://modrinth.com/mod/shifting-wares
European Union Public License 1.2
1 stars 0 forks source link
fabric fabricmc minecraft minecraft-mod

Shifting Wares

Causes villager to occasionally re-roll their trade offers, making them more flexible and less exploitable.

The most noticeable effects will be felt on any profession able to sell enchanted items; a single of these villager will be able to offer a much greater variety of wares over time.

Triggers

There are two gamerules that control when trades can be re-rolled. Both are enabled by default.
Disabling all rules effectively disables the mod.

Exploration map trades

Minecraft permanently saves any create map, and lock their structures from appearing on other exploration maps. To prevent daily rerolls from throwing away endless amounts of unsold maps, those trades are handled differently.

Cartographers will remember each map they sell, and offer it again it the next time the same map trade comes up. The gamerule shiftingWares.allowMapReroll (disabled by default) will allow them to forget a map, after it has been sold at least once.

The map's item name, (or preferably, its translation key), is used to tell apart different types of maps. Since 1.20.5, the item_name is preferred over the custom_name.

Technical details

For developpers

By default, shifting-Wares assumes 2 trades per level, and pulls its trade pools from the same place as Vanilla.

If you have a mod that changes any of that, Shifting-Wares has an API you can use to specify the trade pools and layout that should be used instead.