Skip to content

Getting Started

ChocoBooyy edited this page Jul 8, 2026 · 4 revisions

Getting Started

Add the dependency

Cascade ships one self-contained artifact per loader (cascade-neoforge, cascade-engine). The loader artifact already bundles the engine and shared code, so depend on exactly one of them, never both.

repositories {
    maven { url 'https://raw.githubusercontent.com/ChocoBooyy/maven/main' }
}

dependencies {
    // pick the version matching your Minecraft: 1.0.0+1.21.1 or 1.0.0+26.1
    implementation 'dev.chocoboy.cascade:cascade-neoforge:1.0.0+26.1'
}

Declare cascade as a required dependency in your neoforge.mods.toml or fabric.mod.json so it loads first.

Play an effect

Effects are played from server-side code and stream to nearby clients. The quickest call plays the built-in burst:

Vfx.burst(level, pos); // level is a ServerLevel, pos a Vec3

Most effects are built fluently and finished with play:

Vfx.emitter()
        .shape(ShapeSpec.sphere(0.5f))
        .count(200).lifetime(40).speed(0.2f)
        .gradient(Easings.LINEAR, 0xFFCC33, 0xFF3300)
        .play(level, pos);

Where to go next

Clone this wiki locally