MonitoringMinecraft MonitoringMinecraft

champions-alter

Мод NeoForge

This is an add-on for the Champions mod, which allows you to easily control the spawn rate of champion creatures.

1к скачиваний 2 подписчика
Оцените первым

This mod allows you to dynamically control the spawn rates of champion mobs through Kubejs. You can find the configurations for the spawn rates of champion mobs provided by various stages in champions-server.toml and configure them via Kubejs.

(KubeJS is optional, but if you don't install KubeJS for modifications, this mod will have no effect!)

By default, you can apply new stages in Kubejs to control the spawn rate of champions.

You can refer to the images below for partial script tutorials.

For example, if I set the stage to Kether, a large number of high-star creatures will spawn in the world (if possible)

This mod was created for the Reverie Foundry modpack!

// Visit the wiki for more info - 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);
})
Смотри также

Похожие подборки моды — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
180 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
CLOUDWORLD
0 онлайн
1.16.5 — 1.21.11 версия
Пвп, Арены, Дуэли, Кейсы, донаты, /free, приваты, спавн,
Battle Mine
Battle Mine Java + BE
1 онлайн
1.21.4 — 26.2 версия
ОТКРЫТИЕ! 20 + различных ивентов, 10+ различных боссов, много интересных механник
MigosMc
MigosMc Java + BE
340 онлайн
1.8 — 26.2 версия
🌿 MigosMc.net | Гриферский сервер с войс-чатом | Награды за онлайн ⭐ ВЫЖИВАНИЕ⭐ ОДИНБЛОК⭐ МИНИ-ИГРЫ
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.8. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат