Compatibility
Minecraft: Java Edition
1.21.1
1.20.4
1.20.1
1.19.2
Platforms
Supported environments
Creators
Details
Licensed MIT
Published 2 years ago
Updated 2 months ago
Adds support for Nature's Aura recipes, custom aura cache item, structure finder item, and custom or modify the aura type of dimension.
Examples: Add recipe: in server_scripts
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)
})
Register items: in startup_scripts
NaturesAuraEvents.init((event) => {
// custom aura type (aura type, dimension, aura colour, priority-optional)
event.custom('kubejs:aether', 'aether:the_aether', 0xb0c4de)
// modify the aura type of the dimension (dimension, aura type)
event.modify('minecraft:overworld', 'kubejs:aether')
})
Customize or modify the aura type of dimension: in startup_scripts
StartupEvents.registry('item', (event) => {
// custom aura cache (items that can store aura)
event.create('custom_aura_cache', 'naturesaura:aura_cache').setMaxAura(10000)
// custom item similar to the Eye of Ender (find the specified range of structure)
event
.create('custom_structure_finder', 'naturesaura:structure_finder')
.setStructure('minecraft:village_plains')
.setColor(0xba2800)
.setRadius(2048)
})
Other features:
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)
})



