KubeJS Blood Magic

Mods
8,361,539 Downloads Last Updated: Sep 5, 2021 Game Version: 1.16.5   +5

Allows KubeJS to edit and create Blood Magic recipes. See Recipes page for more info.

Supported recipe types:

- altar

event.recipes.bloodmagic.altar(output, input)
event.recipes.bloodmagic.altar(output, input).upgradeLevel(int).altarSyphon(int).consumptionRate(int).drainRate(int)

- array

event.recipes.bloodmagic.array(output, baseInput, addedInput)
event.recipes.bloodmagic.array(output, baseInput, addedInput).texture(string)

- soulforge

event.recipes.bloodmagic.soulforge(output, [input])
event.recipes.bloodmagic.soulforge(output, [input]).minimumDrain(double).drain(double)

- arc

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)

- alchemytable

 

event.recipes.bloodmagic.alchemytable(output, [input])

event.recipes.bloodmagic.alchemytable(output, [input]).syphon(int).ticks(int).upgradeLevel(int)

 

Example kubejs/server_scripts/blood_magic.js:

 

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)

})