1
0
Fork
You've already forked text-effects
0
Wonky text effects integrated into vanilla components
  • Java 100%
2026年06月16日 18:19:45 +02:00
buildSrc impl 1.15.2 2026年05月11日 16:40:43 +02:00
gradle/wrapper (fabric only) bump to 26.2-rc-2 2026年06月13日 16:30:34 +02:00
src/main (fabric only) bump to 26.2-rc-2 2026年06月13日 16:30:34 +02:00
.gitattributes initial commit 2026年05月08日 17:49:55 +02:00
.gitignore remove fabric-1.14.4 as it didn't build correctly 2026年05月16日 00:35:09 +02:00
build.gradle.kts (fabric only) bump to 26.2-rc-2 2026年06月13日 16:30:34 +02:00
gradle.properties bump version 2026年05月13日 20:40:39 +02:00
gradlew (fabric only) bump to 26.2-rc-2 2026年06月13日 16:30:34 +02:00
gradlew.bat (fabric only) bump to 26.2-rc-2 2026年06月13日 16:30:34 +02:00
LICENSE initial commit 2026年05月08日 17:49:55 +02:00
README.md (fabric only) bump to 26.2-rc-2 2026年06月13日 16:30:34 +02:00
settings.gradle.kts bump neoforge to 26.2 2026年06月16日 18:19:45 +02:00
stonecutter.gradle.kts (fabric only) bump to 26.2-rc-2 2026年06月13日 16:30:34 +02:00
stonecutter.properties.toml bump neoforge to 26.2 2026年06月16日 18:19:45 +02:00

Text Effects

Modrinth: https://modrinth.com/mod/text-effects
CurseForge: https://curseforge.com/minecraft/mc-mods/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

Add Dependency

build.gradle.kts:

repositories {
 // ...
 maven("https://maven.axolotlclient.com/releases")
}
dependencies {
 // ...
 
 // use modImplementation for versions <26.1 if on fabric
 implementation("io.github.moehreag:text-effects:<VERSION>")
}

Apply Effects

// A few other pre-made effects are available in the `TextEffects` class.// Usage may differ slightly depending on game version.vartext=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.

publicstaticTextEffectCUSTOM_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.