promotional bannermobile promotional banner

Champions Unofficial

It's an unofficial version of Champion mod.

File Details

champions-forge-1.20.1-2.1.11.0.jar

  • R
  • Mar 3, 2025
  • 373.51 KB
  • 1.0M
  • 1.20.1
  • Forge

File Name

champions-forge-1.20.1-2.1.11.0.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:champions-unofficial-1074990:6261349")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

  • Change ChampionsEvents.register to StartupEvents.registry("champions:affix_registry_key", event => {})
StartupEvents.registry("champions:affix", event => {
        event.create('fire_aura')
            // config the affix setting
            .settings(s => {
                // enable this affix?
                s.setEnable(true)
                // .setTier({min: 2})
                .setPrefix('fire_aura')
                // must set category: cc, defense, offense
                // or game will crash
                .setCategory("defense")
            })
            // define affix behavior
            .behavior(b => {
                // on server ticking affix
                b.onServerUpdate(champion => {
                    // fire entity 3 sec every 5 sec
                    const entity = champion.getLivingEntity();
                    if (entity.tickCount % 100 === 0) {
                        entity.level.getEntities(
                            entity,
                            entity.getBoundingBox().inflate(3)
                        ).forEach(e => e.setRemainingFireTicks(20 * 3))
                    }
                })
                // on champion attacked
                    .onAttacked((champion, damageSource, amount) => {
                        console.log("fire_aura attacked " + damageSource.getType + " " + amount)
                        return true;
                    })
            })
    }
);
  • Clean some code
  • 1.20.1-2.1.11.0