- Rename methods in wanderer trading event to match villager trading event
- Added
MoreJS.postUpdateOffers
event which triggers after a Villager updates their offers
- Fix removing of potion brewing
- Fix enchantments not being applied to the item in the enchantment table
- Rename some functions in VillagerUtils to fit other functions.
- Fix trade cache does not get cleared after reload.
- Refactor potion brewing event to use a filter object for removing brewing recipes
- Update to 1.21
- Add
setRewardExp
andisRewardingExp
for offers
- Add
.replaceItems(ingredient, item)
when working with offers similar to.replaceEmeralds
- Fix a bug that rare trades from wanderer are not detected on update events
- Add
event.clickedButton
,event.costs
,event.enchantments
,event.enchantmentIds
toMoreJSEvents.enchantmentTableEnchant
event
- Add
removeContainer
andaddContainerRecipe
to potion event
- Fix #9
- Added utility to
VillagerUtils
.setAbstractTrades(tradeMap, level, trades)
.getAbstractTrades(tradeMap, level)
.getVillagerTrades(profession)
.getVillagerTrades(profession, level)
.getRandomVillagerTrade(profession)
.getRandomVillagerTrade(profession, level)
.getWandererTrades(level)
.getRandomWandererTrade(level)