Mineuniverse
Log in Register
Mods

KubeJS ComputerCraft

Adding ComputerCraft peripherals from KubeJS
by Amygdaloideae
Claim this project
71,862 downloads
0 likes
Updated Jun 30, 2026
0 hypes

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

No files available for download.

More from Amygdaloideae

ProbeJS
6,826,188
Heat&Climate Tweaker
4,687
KubeJS Roots
3,723
VisualJS
3,533
PowerfulJS
2,779,109
JEI Crafting
2,318

You Might Also Like

Theurgy KubeJS
Theurgy KubeJS provides KubeJS integrations for Theurgy.
9,503,452
EntityJS
This mod uses KubeJS to dynamically register entities with full AI/Animation/Spawn Control support!
8,731,173
KubeJS TFC
KubeJS TFC integration
919,127
Forbidden Arcanus JS
Forbidden and Arcanus kubejs Compatibility
97,097
Immersive Engineering JS
kubejs compat for ie
94,624
KubeJS REI Runtime
Allows KubeJS to hide and show items from REI dynamically
89,244