Mineuniverse
Mods
KubeJS ComputerCraft

KubeJS ComputerCraft

MOD
Adding ComputerCraft peripherals from KubeJS
by Amygdaloideae
Download Claim this project
79,906 downloads
0 likes
Updated Oct 14, 2026
0 hypes
KubeJS
Advertisement Remove ads with Premium →

Adds support for KubeJS to add peripherals to any block.

 

Both Forge and Fabric are supported (Please check in Files tab since Recent Files will only show the latest entry)

 

Examples:

 

In startup_scripts:

 

onEvent("computercraft.peripheral", event => {
    event.registerPeripheral("furnace", "furnace")
        //This limits the method to 1 tick/call,
        //as the method is scheduled on main thread.
        .mainThreadMethod("burnTime", (container, direction, arguments) => {
            return container.entityData.getInt("BurnTime")
        })
        //This has no limit on calling,
        //however, the method can't access most of the in-world data.
        //For example, accessing the NBT of a tile entity
        .method("say_hi", (container, direction, arguments) => {
            container.up.set("diamond_block")
            return "hi, here's your diamond block"
        })
})
 
kjscc-1.0.1-fabric.jar
MC Fabric, 1.18.2
Release 2022-07-18 Get
kjscc-1.0.1-forge.jar
MC 1.18.2, Forge
Release 2022-07-18 Get
kjscc-1.0.0-fix.jar
MC 1.18.2, Forge
Release 2022-07-11 Get
kjscc-1.0.0-fabric.jar
MC Fabric, 1.18.2
Release 2022-07-02 Get
kjscc-1.0.0-forge.jar
MC 1.18.2, Forge
Release 2022-07-02 Get

More from Amygdaloideae

Advertisement Remove ads with Premium →

You Might Also Like