KubeJS Addon - Blood Magic
This mod provides the ability to create custom recipes for the popular Blood Magic mod using the KubeJS scripting engine.
Supported Recipe Types
Blood Altar
For configuring item creation on the Blood Altar, the following functions are used:
- Upgrade level setting
- Consumption rate configuration
- Life essence cost adjustment
- Syphon rate control
Arcane Rune Array
Ability to create special magical constructs with unique textures and properties.
Hellfire Forge
Creating recipes for the hellish forge with customizable soul consumption.
Alchemical Reaction Chamber
Configuring multi-component transformations with catalyst usage option.
Alchemy Table
Creating complex potions and substances with fine-tuning of all preparation parameters.
Usage Example
In the file kubejs/server_scripts/bloodmagic.js, you can write the following code:
ServerEvents.recipes(event => {
// Creating apple from dirt on Blood Altar
event.recipes.bloodmagic.altar('minecraft:apple', 'minecraft:dirt')
// Creating iron ingot from coal with parameter customization
event.recipes.bloodmagic.altar('minecraft:iron_ingot', 'minecraft:coal').upgradeLevel(0).altarSyphon(2500)
// Recipes for Alchemy Table
event.recipes.bloodmagic.alchemytable('minecraft:apple', ['minecraft:stick', 'minecraft:dirt'])
event.recipes.bloodmagic.alchemytable('minecraft:stick', ['minecraft:oak_planks']).syphon(250).ticks(200)
// Arcane Array configuration
event.recipes.bloodmagic.array('minecraft:apple', 'minecraft:oak_sapling', 'minecraft:dirt')
// Recipes for Alchemical Reaction Chamber
event.recipes.bloodmagic.arc('minecraft:golden_apple', 'minecraft:apple', 'minecraft:water_bucket', [{fluid: 'minecraft:water', amount: 100}])
// Hellfire Forge configuration
event.recipes.bloodmagic.soulforge('minecraft:apple', 'minecraft:oak_sapling', 'minecraft:stick', 'minecraft:dirt').drain(3.5).minimumDrain(400.0)
})
With this addon, you get full control over Blood Magic's magical processes and the ability to create unique material transformation mechanisms through KubeJS.