跳到正文

KOBB(KubeJS Otherworld Block Builder)

作者:misterplus_cn

A simple KubeJS plugin that enables adding new blocks that adapt the third eye effect from Occultism.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

A simple KubeJS plugin that enables adding new blocks that adapt the third eye effect from Occultism.

Adds a new block registry type, and four new methods available only in that type.

The below example registers a block that looks like a stone block without the effect, and with the effect, looks like a gold ore. You can also set the block’s harvesting tier so it may require a higher level of otherworld tool to harvest (the uncovered version).

By default, any newly registered otherworld block will use the loot tables from both the covered block and the uncovered block. If you wish to use a custom loot table json, you need to call useCustomLoot() in the registry event.

Example

StartupEvents.registry('block', event => {
    // Use the type 'otherworld' to register a otherworld block
    event.create('custom_otherworld_block', 'otherworld')
        .hardness(1)
        .resistance(1)
        .requiresTool(true)
        .tagBlock('minecraft:mineable/pickaxe')
        .tagBlock('minecraft:needs_iron_tool')
        // Additional methods provided by KOBB
        // Mandatory
        .uncoveredBlock('minecraft:gold_ore')
        .coveredBlock('minecraft:stone')
        .tier(1)
        // Optional
        .useCustomLoot()
})

常见问题

KOBB(KubeJS Otherworld Block Builder) 支持哪些 Minecraft 版本?

KOBB(KubeJS Otherworld Block Builder) 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

KOBB(KubeJS Otherworld Block Builder) 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

misterplus_cn 的其他作品

查看全部 →