champions-alter 图标

champions-alter

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.21.1-2.1.11.8-alter
本资源为搬运资源,原资源地址: https://modrinth.com/mod/champions-alter
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: adventure mobs worldgen

资源介绍

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);
})
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Cotton Compat

价格:0 墨喵币
下载量:0

查看详情
Vanilla(+)

价格:0 墨喵币
下载量:0

查看详情
Numbered Hotbar

价格:0 墨喵币
下载量:0

查看详情
Nyelon's Vanilla Purple Edit

价格:0 墨喵币
下载量:0

查看详情