这个 Mod 允许你使用 KubeJS 创建血魔法的配方。
支持的配方类型和写法
Blood Altar
event.recipes.bloodmagic.altar(output, input)
event.recipes.bloodmagic.altar(output, input).upgradeLevel(int)
event.recipes.bloodmagic.altar(output, input).upgradeLevel(int).drainRate(int)
event.recipes.bloodmagic.altar(output, input).upgradeLevel(int).drainRate(int).consumptionRate(int)
event.recipes.bloodmagic.altar(output, input).upgradeLevel(int).drainRate(int).consumptionRate(int).altarSyphon(int)
Arcane Ashes
event.recipes.bloodmagic.array(output, baseInput, addedInput)
event.recipes.bloodmagic.array(output, baseInput, addedInput).texture(string)
Hellfire Forge
event.recipes.bloodmagic.soulforge(output, input)
event.recipes.bloodmagic.soulforge(output, input).drain(double)
event.recipes.bloodmagic.soulforge(output, input).minimumDrain(double).drain(double)
Alchemical Reaction Chamber
event.recipes.bloodmagic.arc(output, input, tool)
event.recipes.bloodmagic.arc(output, input, tool).consumeIngredient(boolean)
Alchemy Table
event.recipes.bloodmagic.alchemytable(output, [input])
event.recipes.bloodmagic.alchemytable(output, [input]).syphon(int)
event.recipes.bloodmagic.alchemytable(output, [input]).syphon(int).ticks(int)
event.recipes.bloodmagic.alchemytable(output, [input]).syphon(int).ticks(int).upgradeLevel(int)
代码示例文件
文件位置:kubejs/server_scripts/bloodmagic.js
ServerEvents.recipes((event) => {
event.recipes.bloodmagic.altar('minecraft:apple', 'minecraft:dirt')
event.recipes.bloodmagic.altar('minecraft:iron_ingot', 'minecraft:coal').upgradeLevel(0).altarSyphon(2500)
event.recipes.bloodmagic.alchemytable('minecraft:apple', ['minecraft:stick', 'minecraft:dirt'])
event.recipes.bloodmagic.alchemytable('minecraft:stick', ['minecraft:oak_planks']).syphon(250).ticks(200)
event.recipes.bloodmagic.array('minecraft:apple', 'minecraft:oak_sapling', 'minecraft:dirt')
event.recipes.bloodmagic.arc('minecraft:golden_apple', 'minecraft:apple', 'minecraft:water_bucket', [{fluid: 'minecraft:water', amount: 100}])
event.recipes.bloodmagic.soulforge('minecraft:apple', 'minecraft:oak_sapling', 'minecraft:stick', 'minecraft:dirt').drain(3.5).minimumDrain(400.0)
})