KubeJS Nature's Aura - Enhanced Modification Capabilities
This addon opens new horizons for customizing the Nature's Aura mod through the powerful KubeJS system. You gain complete control over creating recipes, items, and even modifying the aura of dimensions.
Creating Custom Recipes
In server scripts, you can easily add custom recipes for various Nature's Aura mechanisms:
ServerEvents.recipes((event) => {
const { naturesaura } = event.recipes
// Natural Altar (output, input, aura-optional, time-optional, catalyst-optional)
naturesaura.altar('bedrock', 'stone')
naturesaura.altar('bedrock', 'stone', 5000)
naturesaura.altar('bedrock', 'stone', 5000, 60)
naturesaura.altar('bedrock', 'stone', 5000, 60, 'naturesaura:conversion_catalyst')
// Altar of Birthing (entity, input, aura-optional, time-optional)
naturesaura.animal_spawner('creeper', ['gunpowder', 'green_dye'])
naturesaura.animal_spawner('creeper', ['gunpowder', 'green_dye'], 10000)
naturesaura.animal_spawner('creeper', ['gunpowder', 'green_dye'], 10000, 120)
// Offering Table (output, input, start-item)
naturesaura.offering('diamond', 'coal', 'bedrock')
// Tree Ritual (output, input, sapling-optional, time-optional)
naturesaura.tree_ritual('nether_star', ['blaze_powder', 'obsidian', 'diamond'])
naturesaura.tree_ritual('nether_star', ['blaze_powder', 'obsidian', 'diamond'], 'oak_sapling')
naturesaura.tree_ritual('nether_star', ['blaze_powder', 'obsidian', 'diamond'], 'oak_sapling', 200)
})
Configuring Aura Types
In startup scripts, you can create custom aura types and modify existing ones:
NaturesAuraEvents.init((event) => {
// create custom aura type (aura type, dimension, aura color, priority-optional)
event.custom('kubejs:aether', 'aether:the_aether', 0xb0c4de)
// modify dimension's aura type (dimension, aura type)
event.modify('minecraft:overworld', 'kubejs:aether')
})
Creating Custom Items
Register unique items with extended functionality:
StartupEvents.registry('item', (event) => {
// custom aura cache (items that can store aura)
event.create('custom_aura_cache', 'naturesaura:aura_cache').setMaxAura(10000)
// custom structure finder item
event
.create('custom_structure_finder', 'naturesaura:structure_finder')
.setStructure('minecraft:village_plains')
.setColor(0xba2800)
.setRadius(2048)
})
Additional Features
Working with aura at various levels:
BlockEvents.rightClicked((event) => {
const { block, item, level } = event
AuraBlock.getStoredAura(block.entity)
AuraBlock.drainAura(block.entity, 100000, false)
AuraBlock.storeAura(block.entity, 100000, false)
AuraItem.getStoredAura(item)
AuraItem.drainAura(item, 100000, false)
AuraItem.storeAura(item.entity, 100000, false)
AuraChunk.getAuraInArea(level, block.pos, 16)
AuraChunk.drainAura(level, block.pos, 100000)
AuraChunk.storeAura(level, block.pos, 100000)
})