Recipe experience, entity death experience and QOL
Changelog
Recipe files now accept experience in the root of the JSON, an integer property determining the amount of experience to grant the user when crafting that recipe
Similar to how furnace recipes give experience. Though this value is optional and defaults to 0
Many default recipes were updated to include experience
Blaze rod: 3 experience points
Fermented spider eye: 2 experience points
Ghast tear: 5 experience points
Coal ore: 1 experience point
Diamond ore: 2 experience points
Emerald ore: 3 experience points
Lapis lazuli ore: 1 experience point
Redstone ore: 1 experience point
Emerald: 4 experience points
Heart of the sea: 8 experience points
Adjusted the amounts of ingots/gems required for a few of the ore recipes:
Diamond ore:2 diamonds -> 3 diamonds
Emerald ore:2 emeralds -> 3 emeralds
Lapis lazuli ore:2 lapis lazuli -> 6 lapis lazuli
Redstone ore:2 redstone -> 6 redstone
Entities that die in a cauldron will now insert the respective entity essence into the cauldron
Added Cauldron.Entities.Damage to determine whether or not entities take damage
Added Cauldron.Entities.MinEssenceOnDeath, the minimum amount of essence to generate
Added Cauldron.Entities.MaxEssenceOnDeath, the maximum amount of essence to generate
Removed Cauldron.DamageEntities. This is superseded by the aforementioned options
Stained glass panes may now be used to craft empty vials
Added Cauldron.ItemSearchInterval, a tick value to delay the time between which the cauldron checks for nearby items to consider ingredients
If you are noticing large lag spikes, you may benefit from increasing this value to 2 or higher
Beyond 5, Alchema's realism may start to decrease and become less accurate
Better support for third party plugins
Plugins that modify entity drops will now be able to manipulate entity essence drops
World protection plugins preventing entity interaction will now prevent entity essence collection
Update bStats to 2.2.1
Fixed cauldrons continuing to tick after being exploded or removed with block-changing plugins (such as WorldEdit)
API Changelog
CauldronRecipe#setComment(Optional) as well as CauldronRecipe's constructors are now deprecated
In version 1.2.0 of Alchema, CauldronRecipe will become an interface
Added CauldronRecipe.builder(), a static method to construct instances of CauldronRecipe. This should be used in place of the constructors
Added new events:
EntityDeathByCauldronEvent called when an entity dies as a result of cauldron damage
CauldronBubbleEvent called when a cauldron starts to bubble
CauldronEvent, a general-purpose abstract base event for all cauldron-related events. Not listenable. Akin to BlockEvent
Added CauldronIngredientAddEvent#getPlayerUUID() for convenience