-
Notifications
You must be signed in to change notification settings - Fork 11
Text Animations
Jason edited this page Oct 23, 2020
·
8 revisions
These animations can be used in any Boss/Action Bars and Titles/Subtitles in the plugin. You can use multiple animations in one text to create unique messages for your players. You can test these animations with the /announcerplus parse
commands.
On each frame of the Text Animation, the animation tokens in the message will be replaced with the appropriate text. For example, if we include an animation such as {animate:flash:H:He:Hel:Hell:Hello:10}
, that animation token will be replaced with H
, then He
, Hel
, and etc.
The animation token syntax is as follows: {animation:type:args...}
, where type
is replaced with the type for the desired animation, and the content of args...
varies by animation.
- This animation will cycle through the given texts, with an interval of the amount of ticks provided. If tick speed is not provided, it will default to 10.
- Syntax/Usage:
{animate:flash:text...:ticks}
(ticks optional)- Ex:
-
{animate:flash:H:He:Hel:Hell:Hello:Hello!:Hello!!}
{animate:flash:-:--:---:----:-----:40}
-
<{animate:flash:#FFFD00:green:blue:20}>Color Flashing Text!</{animate:flash:#FFFD00:green:blue:20}> White Text!
-
- Ex:
- This is used to pulse the color of text, calculating the in-between colors for a smooth transition. The ticks provided is the time it takes to transition colors. If tick speed is not provided, it will default to 10.
- Syntax/Usage:
{animate:pulse:colors...:ticks}
(ticks optional)- Meant for use inside of MiniMessage color/gradient tags, i.e. to replace
color
in<color>
with an animation - Ex:
<{animate:pulse:red:white:blue:20}>Color Pulse Text!
-
<{animate:pulse:red:white}>Test</{animate:pulse:red:white}><{animate:pulse:white:red}>Inverted Test
<gradient:white:{animate:pulse:#FF1A00:green}>|||||||||||||||||||||||||||
- Meant for use inside of MiniMessage color/gradient tags, i.e. to replace
- This animation can be used to give gradients an infinite scrolling effect. The value provided is the percent to increment the gradient forwards each tick. If no increment value is provided, 0.1 (10%) will be used. Acceptable increment values are 0.00-1.00, with 0.00 being not moving, and 1.00 being maximum speed. (values close to 1.00 will probably be too fast to be useful)
- Syntax/Usage:
{animate:scroll:increment}
(increment optional)- Meant for use inside of MiniMessage gradient tags as the phase, i.e.
phase
in<gradient:colors...:phase>
- Ex:
<gradient:green:blue:green:{animate:scroll}>|||||||||||||||||||||||||||||||||||||||||
<gradient:white:red:{animate:scroll:0.01}>|||||||||||||||||||||||||||||||||||||||||
-
<gradient:red:yellow:{animate:scroll:0.05}>|||||||||||||||||||||||||||||||||||||||||
- Meant for use inside of MiniMessage gradient tags as the phase, i.e.
- This animation will take a long text and scroll through it with a defined "window" size, which is the amount of characters showed from the text at a time. It also takes an optional ticks value for the animation speed, defaulting to 4.
- Syntax/Usage:
{animate:scrolltext:Text to scroll:windowSize:ticks}
(ticks optional)- Ex:
-
<blue>-| <white>{animate:scrolltext:Hello there this is some very long text being displayed in a scrolling window!! =):20:2}</white> |-
-
- Ex:
- This animation will take text and type it out letter by letter. There is an optional ticks value which sets the delay between each letter, defaulting to 6.
- Syntax/Usage:
{animate:type:Text to type:ticks}
(ticks optional)- Ex:
-
{animate:type:This is a test... typing...:6}
-
- Ex:
- This animation will create a Flashing Text or Pulsing Text Color animation with randomized colors. If tick speed is not provided it will default to 10.
- Syntax/Usage:
{animate:randomcolor:flash/pulse:ticks}
(ticks optional)- Ex:
-
<{animate:randomcolor:pulse:20}>||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-
<{animate:randomcolor:flash:8}>||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-
- Tip: add extra unused data to get more than one random color, i.e.
-
<{animate:randomcolor:pulse:20}>|||||||||||||||||||||<{animate:randomcolor:pulse:20:useless}>||||||||||||||||||||
-
- Ex: