介绍
Unofficial KubeJS Roots compatibility fork for Minecraft 1.21.1 / NeoForge and KubeJS
Based on KubeJS Roots by Prunoideae. This fork adapts recipe-component registration and related API/schema calls for the target KubeJS version. It retains the original mod ID as a drop-in replacement. Do not install it alongside the original mod.
Original project and source:
KubeJS Roots Curseforge
KubeJS Roots Github
Unofficial fork, not endorsed by the original author.
I wanted to do this fork to use it in the development of my modpack Cap’s Create RPG 2: Divine Redemption.
If you want to see all the legal documents and stuff, enter the discord and go to the channel related to this.
How to use it (All the text in this category is copied from the original mod’s description):
Adds support for Roots Classic in 1.21 including recipes, and custom rituals, spells, and mutations.
Recipes
ServerEvents.recipes(event => {
let { rootsclassic } = event.recipes
// Creates a ritual recipe for the grow ritual
rootsclassic.ritual('rootsclassic:grow',
['bone_meal', 'apple'], // Input ingredients
['bone', 'porkchop'], // Incense items to burn
0, '#aabbcc' // Altar level and color
)
// Creates a mortar recipe
rootsclassic.component(
'minecraft:tnt', // Output item
['gunpowder', 'gunpowder',
'gunpowder', 'gunpowder'],// Input ingredients
)
// and a spell powder recipe
rootsclassic.component(
'rootsclassic:spell_powder', // Spell powder item to record effect data
["oak_button", "oak_button",
"oak_button", "oak_button"],// Input ingredients
'kubejs:boom', // The spell to apply to the powder
true // Needs to be true for spell recipes
)
})
Custom Ritual
StartupEvents.registry('rootsclassic:ritual', event => {
event.create('big_boom')
// The effect that will be run when the ritual is completed
.ritualEffect(context => {
let { level, pos } = context;
level.createExplosion(pos.x, pos.y, pos.z)
.strength(8)
.explosionMode('tnt')
.causesFire(true)
.explode()
})
})
When you perform a ritual in the altar, it runs with the following steps:
- Started count down for the progress time (Think it as some kind of CD or process time)
- Run the ritual effect
Custom Spell
StartupEvents.registry('rootsclassic:component', event => {
event.create('boom')
.sourceItem('acacia_boat')
.manaCost(8) // 2 leaves in the bar
.spellEffect(context => { // The effect that will be run when the spell is cast
let { caster, level } = context
level.createExplosion(caster.x, caster.y, caster.z)
.strength(4)
.causesFire(true)
.explode()
})
})
Custom Mutation
RootsEvents.mutagen(event => {
// Mutating a dandelion into a TNT block
event.add('kubejs:test', "minecraft:tnt", "minecraft:dandelion", builder => {
// Extra items to be thrown near the dandelion
builder.inputs('acacia_button')
// The effect that will be run if the mutation is successful
builder.onCrafted((block, player) => player.potionEffects.add('regeneration', 1000, 0))
// Additional conditions to be met for the mutation to be successful
builder.matches((items, block, player) => player.xpLevel > 10)
})
})
常见问题
KubeJS Roots Compatibility Fork 支持哪些 Minecraft 版本?
KubeJS Roots Compatibility Fork 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
KubeJS Roots Compatibility Fork 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
CapSargrento 的其他作品
查看全部 →Cap’s Create RPG
终极 RPG 冒险体验,让你充分发挥机械动力的潜力。
Tech Tide
Explore the endless sea, full of dangers and pirates, advance your technology to create complex vehicles and conquer the 6 cubic seas
Hands on Adventure
A modpack created to spend a good time with friends or alone, the goal is to get to the end while fighting any obstacle in your way and create powerful equipment (with create)
Cap’s Create RPG II – Divine Redemption
The sequel to Create RPG, journey across infinite dimensions and fix the problem your previous-self caused!
评论
登录后评论和评分