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

