介绍
介绍由机器翻译自 Modrinth 原页面,仅供参考。
添加对 Nature’s Aura 配方、自定义魔力缓存物品、结构查找器物品的支持,并可自定义或修改维度的魔力类型。
示例:
添加配方:在 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)
})
注册物品:在 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')
})
自定义或修改维度的魔力类型:在 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)
})
其他功能:
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)
})
常见问题
KubeJS Nature’s Aura 支持哪些 Minecraft 版本?
KubeJS Nature’s Aura 支持 Minecraft Java 版 1.19.2–1.21.1,共 4 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
KubeJS Nature’s Aura 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分