New Features
This update introduces a new effects system, allowing for more elaborate brews. Ever wanted to have a potion that has one effect now, but a different one later? You can do that! This also lays the foundation for future features to come for even more elaborate brew effects.
In configs, when you used to have
Code (YAML):
effects
:
- WEAKNESS/80
- CONFUSION/27
you can now replace ingredients with more elaborate effects, such as follows:
Code (YAML):
effects:
- type
: repeat
times
: 2
pause-between
: 2
effect:
type
: sequence
pause-between
: 2
steps:
- type
: potion
effect
: HEAL/1
- type
: potion
effect
: WATER_BREATHING/1
There are four types of new-style effects:
Potion Effect
Allows you to specify a potion in the new-style syntax. The text for [code single]effect[/code] is the same as what you would have used before.
Code (YAML):
- type
: potion
effect
: HEAL/1
Delay Effect
Allows you to specify an effect to run after a certain delay. [code single]effect[/code] must be a new-style effect; an old one will not work.
Code (YAML):
- type
: delay
duration
: 5
# this is in seconds
effect:
type
: potion
effect
: HEAL/1
Sequence effect
Allows you to specify effects to run sequentially. [code single]effects[/code] must be new-style effects; old ones will not work.
Code (YAML):
- type
: sequence
pause-between
: 2
# in seconds, allows you to specify time between effects
effects:
- type
: potion
effect
: HEAL/1
Repeat effect
Allows you to specify an effect to repeat a number of given times. [code single]effect[/code] must be a new-style effect; old ones will not work.
Code (YAML):
- type
: repeat
pause-between
: 2
# in seconds, allows you to specify time between repetitions
times
: 5
# how many times to repeat the effect
effects:
- type
: potion
effect
: HEAL/1
Bug fixes
Fixes bug
#4 (an infinite brew bug).