promotional bannermobile promotional banner

Champions Unofficial

It's an unofficial version of Champion mod.
Back to Files

champions-forge-1.20.1-2.1.11.0.jar

File namechampions-forge-1.20.1-2.1.11.0.jar
Uploader
KyogiKyogi
Uploaded
Mar 3, 2025
Downloads
1.0M
Size
373.5 KB
Mod Loaders
Forge
File ID
6261349
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:champions-unofficial-1074990:6261349")

Learn more about Curse Maven

What's new

  • 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

This mod has no additional files