HomeJavaModsRandomJS
RandomJS

Added a new category of block presets to KubeJS, allowing players to set custom survival rules for created blocks. (More features coming soon)

Currently added kinds:

The full list of methods is below:

Optional json statement:

Future plans:

Usage examples:

StartupEvents.registry ("block", e=> {
    e.create ("block_name", "super_block")
        .surviveType ("custom")
        .customSurviveRule (
            {
                "setFaceSturdy" : ["up", "down"],
                "setBelowBlock" : ["minecraft:stone", "minecraft:oak_log", "minecraft:campfire"]
            })
         .catchAllDirection (false)
})
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more