| Name | villager replenishes trade |
| Event Lines | villager replenishes trade |
| Triggers | when a villager replenishes a trade. A trade being "replenished" means its "uses" value is reset to "0". |
| Generated Examples | on villager replenishes trade:
after villager replenishes trade: |
| Contexts | <context.entity> returns the EntityTag of the villager.
<context.trade> returns the TradeTag for the trade being replenished.
<context.bonus> returns the number of bonus uses added.
|
| Determine | TradeTag to change the trade being replenished.
ElementTag(Number) to change the number of bonus uses added. |
| Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
| Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
| Group | Entity |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/entity/VillagerReplenishesTradeScriptEvent.java#L14 |