Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/estecka/mc-shiftingwares-villagerconfig-addon
Compatibility addon for ShiftingWares and VillagerConfig
https://github.com/estecka/mc-shiftingwares-villagerconfig-addon
fabricmc minecraft minecraft-mod
Last synced: 15 days ago
JSON representation
Compatibility addon for ShiftingWares and VillagerConfig
- Host: GitHub
- URL: https://github.com/estecka/mc-shiftingwares-villagerconfig-addon
- Owner: Estecka
- License: mit
- Created: 2024-01-17T14:52:33.000Z (about 1 year ago)
- Default Branch: 1.21.3
- Last Pushed: 2024-11-09T00:04:15.000Z (3 months ago)
- Last Synced: 2024-11-19T07:11:52.317Z (3 months ago)
- Topics: fabricmc, minecraft, minecraft-mod
- Language: Java
- Homepage: https://modrinth.com/mod/shiftingwares-villagerconfig-addon
- Size: 178 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Shifting-Wares: VillagerConfig Addon
Compatibility addon that enables ShiftingWares rerolls to use the custom trades and layouts defined by VillagerConfig. With this addon, those trades accept additional data, next 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:
```json
{
"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 trade, 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.