Download champions-alter — Minecraft Mods — MetaMods
champions-alter

champions-alter

Active

Downloads

0

Last update

2 months ago

Versions

1.21.1
Client and server
Neoforge
Adventure
Mobs
Addons

champions-alter

This mod provides the ability to dynamically control the spawn frequency of champion mobs using KubeJS. Spawn settings for various champion stages are located in the champions-server.toml file and can be modified through KubeJS.

(Important: KubeJS is an optional component, but without its installation this mod will not function!)

By default, KubeJS allows the application of new stages to control champion spawn frequency.

Below are script examples to familiarize yourself with the functionality:

// Additional information is available in the wiki - https://kubejs.com/
// console.info('Hello, World! (Loaded server example script)')
//
const ChampionHelper = Java.loadClass("top.theillusivec4.champions.common.util.ChampionHelper")
const ChampionAttachment = Java.loadClass("top.theillusivec4.champions.common.capability.ChampionAttachment")
const List = Java.loadClass("java.util.List")

ChampionsJs.addSephiahName(event => {

  let entity = event.getEntity()
  let entityName = entity.getName().getString()
  let entityId = event.getMobId()
  let sephiahName = event.getName()
  console.log(entityName)
  console.log(sephiahName)
  console.log(entityId)
  if (entityId === "minecraft:zombie") {
    event.setName("Hod")
    console.log("after set sephirahName")
    console.log(event.getName())
  }

  // event.setCanceled(true);
})
// ChampionsJs.preSpawn(event =>{
//
//   console.log("/tp Dev "+ event.getEntity().position().x()+ " " + event.getEntity().position().y()+ " " + event.getEntity().position().z())
//   console.log(event.getEntity().name)
//   // event.setCanceled(true);
// })
ChampionsJs.postSpawn(event => {


  console.log("/tp Dev " + event.getEntity().position().x() + " " + event.getEntity().position().y() + " " + event.getEntity().position().z())
  ChampionAttachment.getAttachment(event.getEntity()).ifPresent(champion => {
    console.log(event.getEntity().name.getString() + ": " + ChampionHelper.isValidChampion(event.getChampion().getServer()))
  })
  // event.setCanceled(true);
})

For example, when setting the stage to "Kether", a large number of high-star creatures will spawn in the world (if possible).

Project members
Hypocisy

Hypocisy

Developer

Drowningfish233

Drowningfish233

Drowning_fish

Drowning_fish

Developer

Created: 3 Sep 2025

ID: 264556