promotional bannermobile promotional banner

Text Effects

Wonky text effect library
Showcase of three integrated text effects, from top to bottom: wobble, shake and marquee

Showcase of three integrated text effects, from top to bottom: wobble, shake and marquee

item image

Description

Text Effects

This library adds text effects which can be used by servers and mods to add unique effects to component-based text.

Integrated effects:

  • Wobble
  • Shake
  • Marquee

Usage

For developer instructions please see the mod's codeberg page, CurseForge's formatting doesn't allow for well-formatted codeblocks: https://codeberg.org/owlsys/text-effects

This mod is available for more Minecraft versions than the ones available here, but CurseForge doesn't support mods for Ornithe.

 

Apply Effects

Usage may differ slightly depending on game version.

var text = Component.literal("This is a text with effect!").withStyle(Style.EMPTY.text_effects$withEffect(TextEffects.WOBBLE));

 

Create your own effects

A few factory methods for common operations are provided in the TextEffect class.

Some pre-made effects are provided in the TextEffects class, with a few additional helper methods as well as registration handling.
If you'd like to build on top of another effect you can use TextEffect#combine.

public static TextEffect CUSTOM_EFFECT = TextEffects.register(Identifier.fromNamespaceAndPath("modid", "custom_effect"), TextEffect.constantYOffset(-2));

Effects are automatically able to be de/serialized in components using their id provided at registration.

{ text: "text with a nice effect", text-effects: "text-effects:wobble" }

This component works for 26.1, you will need to change it accordingly for minecraft versions using json components instead of snbt.

This format can also be used in commands, for example /tellraw.

The Text Effects Team

profile avatar
  • 1
    Followers
  • 5
    Projects
  • 10.6K
    Downloads

More from moehreagView all