champions-alter
This is an add-on for the Champions mod, which allows you to easily control the spawn rate of champion creatures.
截图
介绍
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);
})
常见问题
champions-alter 支持哪些 Minecraft 版本?
champions-alter 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
champions-alter 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
Drowning_fish 的其他作品
查看全部 →
SilentGearJEI
Added JEI support for SilentGear.
champions-alter
This is an add-on for the Champions mod, which allows you to easily control the spawn rate of champion creatures.
ReverieGear
Add more weapons and equipment to SilentGear!
评论
登录后评论和评分