Skip to content

Releases: Reldeam/CustomVillagerTrades

1.11-SNAPSHOT

1.11-SNAPSHOT Pre-release
Pre-release

Choose a tag to compare

@Reldeam Reldeam released this 09 Mar 08:30

Change

  • Updated to Spigot API 1.18.2.R0-SNAPSHOT

1.10-SNAPSHOT

1.10-SNAPSHOT Pre-release
Pre-release

Choose a tag to compare

@Reldeam Reldeam released this 01 Mar 22:43

Features

  • Added language support
  • If vanilla trades are disabled they will be automatically removed when interacting with any villager now.

Changes

  • Default maxUses when creating a new custom trade with the in-game editor is set to 1 (0 -> 1)

Bug Fixes

  • configuration now reloads correctly when using /cvtreload and cvtenable

1.9-SNAPSHOT

1.9-SNAPSHOT Pre-release
Pre-release

Choose a tag to compare

@Reldeam Reldeam released this 10 Feb 04:44

1.8-SNAPSHOT

1.8-SNAPSHOT Pre-release
Pre-release

Choose a tag to compare

@Reldeam Reldeam released this 09 Feb 18:39

Performance Update

  • The villager data is now saved on a per-villager basis. This eliminates the need to have all of the villager data loaded in memory. This allows for scaling of the number of villagers without effecting server performance.
  • If you have a previous data file, it will be automatically converted and delete upon first load of this update.

1.7-SNAPSHOT

1.7-SNAPSHOT Pre-release
Pre-release

Choose a tag to compare

@Reldeam Reldeam released this 07 Feb 02:30

Breaking Change

  • The village data structure has been changed. This means that some pre-existing custom trades may be considered vanilla trades now. If you cannot refresh/reroll certain trades for particular villagers any more, this is probably why.

New Features

Bug Fixes

1.6-SNAPSHOT

1.6-SNAPSHOT Pre-release
Pre-release

Choose a tag to compare

@Reldeam Reldeam released this 05 Feb 21:04

New Features

  • Added an in-game editor, which can be opened with command /cvteditor (requires customvillagertrades.command.editor permission to use).
  • In-game editor includes Blueprints which allows you to apply any trade you want to a villager by using RIGHT-CLICK on them with the corresponding trade blueprint.

Bug Fixes

  • When switching between trades that used money as an ingredient, the cost was being deducted from the players account without reimbursing the player for the previous trade's ingredient(s).

1.5-SNAPSHOT

1.5-SNAPSHOT Pre-release
Pre-release

Choose a tag to compare

@Reldeam Reldeam released this 03 Feb 04:25

New Features

  • priceMultiplier field added to <custom trade> objects in the trades.yml. The priceMultiplier effects how much the cost of a trade changes depending on factors like how much the villager likes or dislikes you, or how much you have traded with that villager recently.
  • Added a plugin update notification when the server is first started to tell you if there is a new update available for this plugin.

Bug Fixes

1.4-SNAPSHOT

1.4-SNAPSHOT Pre-release
Pre-release

Choose a tag to compare

@Reldeam Reldeam released this 02 Feb 07:31

Added nbt field to the <item stack> type in the trades.yml.

USE AT OWN RISK - This will apply an NBT tag to the item before anything else. This means that all of the other properties in <item stack> will overwrite any values that may be set here. Using this property may lead to unexpected behaviour. Issues involving the use of the nbt property will be closed without investigation.

Example:

"coolThingy":
  result:
    material: GOLD_SWORD
    amount: 1
    nbt: >
      {display:{Name:'[{"text":"Cool Thingy"}]'}}
  ingredients:
    - material: EMERALD
      amount: 5
  maxUses: 4
  experience: 20
  chance: 0.3

1.3-SNAPSHOT

1.3-SNAPSHOT Pre-release
Pre-release

Choose a tag to compare

@Reldeam Reldeam released this 02 Feb 02:10

NEW FEATURES

Vault Support

  • Vault support added. You can enable economy by setting enableEconomy to true. This requires Vault and an compatible Economy plugin.
  • You can replace the <item stack> value in the trades.config with: money: <double>
  • I've made it so that money acts like regular items for trading.
  • If you set enablePhysicalCurrency to true, then you can pickup money from the trade UI just like a normal item. The money can be deposited into your account at any time by pressing the DROP (default set to Q) key while hovering over the money item in your inventory.

Automatic Custom Trade Refreshing

  • CustomTrades are now refreshed based on their unique key. That means that if you make a change to a custom key in the config, it will be reflected on all villagers that have that custom trade in the game.
  • Note that and villagers that have custom trades before this update will not have their custom trades refreshed (they will be considered vanilla trades for refresh purposes).

Disable Vanilla Trades for Certain Professions

  • If you only want to disable trades for certain professions you can choose which ones setting a list of disabled professions in the the disableVanillaTradesForProfessions field of the config.yml. Note that disableVanillaTrades must be set to false for this to work.

Checkout the README.md for more information.
This is the updated config.yml with the new options added.
And finally, this is the updated trades.yml with a lot more examples including using the new <money> option.

1.2-EXPERIMENTAL

1.2-EXPERIMENTAL Pre-release
Pre-release

Choose a tag to compare

@Reldeam Reldeam released this 01 Feb 21:35

Experimental release of Vault support

Please help with testing of this feature. If you find any bugs, please raise an issue.

Features

  • Vault support added. You can enable economy by setting enableEconomy to true. This requires Vault and an compatible Economy plugin.
  • You can replace the <item stack> value in the trades.config with: money: <double>
  • I've made it so that money acts like regular items for trading.
  • I've also added a customTradeMask field to the VillagerData that makes it possible to work out which custom trade is 'covering' which vanilla trade (as both the vanillaTrades and customTradeKeys are ordered).
  • CustomTrades are now refreshed based on the key. That means that if you make a change to a custom key in the config, it will be reflected on all villagers that have that custom trade in the game.

Checkout the README.md for more information.
This is the updated config.yml with the new options added.
And finally, this is the updated trades.yml with a lot more examples including using the new <money> option.