nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)
Shifting-Wares: VillagerConfig Addon

Shifting-Wares: VillagerConfig Addon

Mod

Compatibility addon for ShiftingWares and VillagerConfig

Server EconomyGame Mechanics

2,115 downloads
5 followers

Shifting-Wares: VillagerConfig Addon

Compatibility addon that enables ShiftingWares rerolls to use the custom trades and layouts defined by VillagerConfig.

Shifting Wares v2

In order for Shifting Ware's map caching to work properly, Exploration Map trades must use the same item-naming convention as vanilla trades. Behaviour is undefined otherwise.

Shifting Wares v3

With this addon, map persistence can be defined in the trade themselves, alongside to the costs and result:

  • shiftingwares:isPersistent: (boolean) Forcibly marks the trade as persistent. This trade's rerollability will be limited to the same conditions as for map trades.
  • shiftingwares:tradeId: (Identifier) When defined, this allows ShiftingWares to associate an existing trade to its source in the datapack, and prevent duplicates of that trade from being generated.

Example:

{
	"shiftingwares:isPersistent": true,
	"shiftingwares:tradeId": "minecraft:on_ocean_explorer_maps",
	"cost_a": { "type": "minecraft:item", "name": "minecraft:emerald" },
	"cost_b": { "type": "minecraft:item", "name": "minecraft:compass" },
	"result": {
		"type": "minecraft:item",
		"name": "minecraft:map",
		"functions": [
			{
				"decoration": "minecraft:monument",
				"destination": "minecraft:on_ocean_explorer_maps",
				"function": "minecraft:exploration_map",
				"search_radius": 100
			}
		],
	}
}

This data will not be present by default when VillagerConfig generates data from vanilla trades, however its presence is not required for map trades to be handled properly. Setting the trade Id on map trades (or any persistent trade) is still recommended to avoid duplicatas. The trade Id is not required to match the map's destination; this example is just how ShiftingWares handles them without villager config.

External resources


Project members

Estecka

Author


Technical information

License
MIT
Client side
unsupported
Server side
required
Project ID