该模组允许使用 KubeJS 脚本编辑和创建 Blood Magic 的配方。
支持配方与写法如下:
- 祭坛
event.recipes.bloodmagic.altar(output, input)
event.recipes.bloodmagic.altar(output, input).upgradeLevel(int).altarSyphon(int).consumptionRate(int).drainRate(int)
- 炼金矩阵
event.recipes.bloodmagic.array(output, baseInput, addedInput)
event.recipes.bloodmagic.array(output, baseInput, addedInput).texture(string)
- 狱火熔炉
event.recipes.bloodmagic.soulforge(output, [input])
event.recipes.bloodmagic.soulforge(output, [input]).minimumDrain(double).drain(double)
- 奥术粉灰
event.recipes.bloodmagic.arc(output, input, tool)
event.recipes.bloodmagic.arc(output, input, tool, [addedOutput])
event.recipes.bloodmagic.arc(output, input, tool, [addedOutput]).consumeIngredient(boolean).outputFluid(fluid)
- 炼金术桌
event.recipes.bloodmagic.alchemytable(output, [input])
event.recipes.bloodmagic.alchemytable(output, [input]).syphon(int).ticks(int).upgradeLevel(int)
例:
onEvent('recipes', event => {
const { altar, array, soulforge, arc, alchemytable } = event.recipes.bloodmagic
altar('minecraft:carrot', 'minecraft:apple')
array('minecraft:spruce_planks', 'minecraft:oak_planks', 'minecraft:birch_planks')
soulforge('minecraft:stone', ['minecraft:gold_ore', 'minecraft:diamond_ore', 'minecraft:iron_ore']).drain(1.0)
arc('minecraft:netherite_ingot', 'minecraft:iron_ingot', 'minecraft:iron_pickaxe', [Item.of('minecraft:cobblestone').chance(0.4)])
alchemytable('minecraft:gold_ingot', ['minecraft:iron_ingot', 'minecraft:iron_ingot', 'minecraft:iron_ingot', 'minecraft:iron_ingot']).upgradeLevel(2)
})
//syphon=LP数值
//altarLevel/orbLevel=等级
//consumptionRate=LP消耗率(速度)
//drainRate=LP流失率(损耗)
//tick=速度(20tick=1s)
//count=数量
//minimumDrain=恶魔意志最小值
//drain=恶魔意志消耗值