promotional bannermobile promotional banner

KOBB(KubeJS Otherworld Block Builder)

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()
})

The KOBB(KubeJS Otherworld Block Builder) Team

profile avatar
  • 11
    Followers
  • 5
    Projects
  • 1.1M
    Downloads

More from misterplus_cnView all

  • FictionCraft: Atomic Space project image

    FictionCraft: Atomic Space

    • 33.3K
    • Modpacks

    You woke up on an unfimilar place full of ice, and radiation... [Expert-Level plot based modpack]

    • 33.3K
    • November 4, 2021
    • Modpacks
    • +4
  • Levitated project image

    Levitated

    • 442.1K
    • Modpacks

    An exploration themed modpack which lets you rebuild the world.

    • 442.1K
    • February 18, 2021
    • Modpacks
    • +4
  • Create 101 project image

    Create 101

    • 27.6K
    • Modpacks

    Automation-themed pack centered around Create & Mekanism in 1.15.2

    • 27.6K
    • November 8, 2020
    • Modpacks
    • +3
  • Scanner project image

    Scanner

    • 5.0M
    • Mods

    Scans void chunks for terrain!

    • 5.0M
    • October 31, 2020
    • Mods
    • +4
  • FictionCraft: Atomic Space project image

    FictionCraft: Atomic Space

    • 33.3K
    • Modpacks

    You woke up on an unfimilar place full of ice, and radiation... [Expert-Level plot based modpack]

    • 33.3K
    • November 4, 2021
    • Modpacks
    • +4
  • Levitated project image

    Levitated

    • 442.1K
    • Modpacks

    An exploration themed modpack which lets you rebuild the world.

    • 442.1K
    • February 18, 2021
    • Modpacks
    • +4
  • Create 101 project image

    Create 101

    • 27.6K
    • Modpacks

    Automation-themed pack centered around Create & Mekanism in 1.15.2

    • 27.6K
    • November 8, 2020
    • Modpacks
    • +3
  • Scanner project image

    Scanner

    • 5.0M
    • Mods

    Scans void chunks for terrain!

    • 5.0M
    • October 31, 2020
    • Mods
    • +4