Potion
Syntax¶
Potions are created using the pot constructor. Like all constructors in Terracotta, the values passed into the constructor are Expressions and can take full advantage of their features.
amplifier is 1-based: An amplifier of 1 means a potion effect level of I. amplifier is optional and will default to 1 if omitted.
duration is specified in ticks, meaning a duration of 20 is equal to one second. duration is optional and will default to infinite if omitted.
effect is the potion effect's minecraft id. The "minecraft:" prefix is not required.
Operations¶
txt + pot: txt¶
Stringifies the Potion then adds it onto the Styled Text.