介绍
介绍由机器翻译自 CurseForge 原页面,仅供参考。
为 Botania 配方以及烧瓶、熏香和污秽吊坠的自定义酿造添加支持。
支持 Forge 和 Fabric(请查看 Files 选项卡,因为 Recent Files 只会 显示最新条目)。
对于 KJS6,你需要调整下面的代码,使其符合 KJS6 的风格。
示例:
在 startup_script 中:
onEvent(“botania.brews.registry”, event => {
event.create(“torrent”)
/**
* The cost of mana per brew.
* For Tainted Blood Pendant, it is cost / duration / effectLevel * 2.5 per tick.
*/
.cost(5000)
/**
* The effect you want to specify for the Brew,
* can be specified for multiple times for applying
* multiple effects at once.
* The parameters come the same as /effect,
* except for duration is in ticks, not seconds.
*/
.effect(“minecraft:water_breathing”, 4800 * 20)
.effect(“botania:allure”, 300 * 20, 0, false, false)
/**
* Set to deny incense for this brew.
*/
.noIncense()
/**
* Set to deny pendant infusing for this brew.
*/
.noPendant()
})
在 server_scripts 中:
onEvent(“recipes”, event => {
event.remove({ output: “botania:livingrock” })
event.recipes.botania.mana_infusion(“minecraft:acacia_boat”, “minecraft:acacia_door”, 200, “minecraft:acacia_log”)
event.recipes.botania.elven_trade([“minecraft:acacia_boat”], “minecraft:diamond”)
event.recipes.botania.elven_trade([“minecraft:acacia_boat”, “minecraft:acacia_button”], [“minecraft:diamond_block”, “minecraft:gold_ingot”])
event.recipes.botania.pure_daisy(“minecraft:acacia_button”, “minecraft:acacia_leaves”)
event.recipes.botania.pure_daisy(“minecraft:acacia_button”, “minecraft:stone”, 1)
event.recipes.botania.brew(“kubejs:torrent”, [“minecraft:acacia_boat”])
event.recipes.botania.petal_apothecary(“minecraft:acacia_boat”, [“minecraft:acacia_button”])
event.recipes.botania.runic_altar(“minecraft:acacia_boat”, [“minecraft:acacia_button”, “minecraft:acacia_door”], 5000)
event.recipes.botania.terra_plate(“minecraft:acacia_boat”, [“minecraft:acacia_button”, “minecraft:acacia_door”], 5000000)
event.recipes.botania.orechid(“minecraft:acacia_button”, “minecraft:acacia_fence”, 1)
event.recipes.botania.orechid_ignem(“minecraft:acacia_leaves”, “minecraft:acacia_fence_gate”, 1)
event.recipes.botania.marimorphosis(“minecraft:acacia_door”, “minecraft:acacia_fence_gate”, 1, [“plains”], 10)
})
常见问题
KubeJS Botania 支持哪些 Minecraft 版本?
KubeJS Botania 支持 Minecraft Java 版 1.18.2–1.20.1,共 3 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
KubeJS Botania 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Amygdaloideae 的其他作品
查看全部 →PowerfulJS
by Amygdaloideae
为 Forge 的 Capability 系统提供 KubeJS 集成,支持 Curios、植物魔法、FE 和流体处理。
338.6万
1 年前
CurseForge
Custom Disc
by Amygdaloideae
一个简单的模组,用于在1.12.2中添加自定义唱片
30.8万
7 年前
CurseForge
Dynamic Trees Create Compat
by Amygdaloideae
(Deprecated) Unofficial mixin mod to re-add compat for Mechanical Saw to cut Dynamic Trees
12万
2 年前
CurseForge
KubeJS ComputerCraft
by Amygdaloideae
Adding ComputerCraft peripherals from KubeJS
8.1万
4 年前
CurseForge
评论
登录后评论和评分