promotional bannermobile promotional banner

KubeJS ComputerCraft

Adding ComputerCraft peripherals from KubeJS

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

The KubeJS ComputerCraft Team

profile avatar
  • 18
    Followers
  • 11
    Projects
  • 16.3M
    Downloads

More from AmygdaloideaeView all

  • ProbeJS Legacy project image

    ProbeJS Legacy

    • 31.9K
    • Mods

    Unofficial continuation of ProbeJS for versions abandoned by official ProbeJS

    • 31.9K
    • May 31, 2026
    • Mods
    • +2
  • ProbeJS project image

    ProbeJS

    • 6.7M
    • Mods

    Greatly enhances your KubeJS scripting experience by adding VSCode support.

    • 6.7M
    • May 21, 2026
    • Mods
    • +1
  • KubeJS Create project image

    KubeJS Create

    • 45.9M
    • Mods

    KubeJS Create integration

    • 45.9M
    • November 12, 2025
    • Mods
  • PowerfulJS project image

    PowerfulJS

    • 2.6M
    • Mods

    KubeJS integration for Forge's Capability system, including Curios, Botania, FE and fluid handling.

    • 2.6M
    • October 14, 2025
    • Mods
    • +2
  • ProbeJS Legacy project image

    ProbeJS Legacy

    • 31.9K
    • Mods

    Unofficial continuation of ProbeJS for versions abandoned by official ProbeJS

    • 31.9K
    • May 31, 2026
    • Mods
    • +2
  • ProbeJS project image

    ProbeJS

    • 6.7M
    • Mods

    Greatly enhances your KubeJS scripting experience by adding VSCode support.

    • 6.7M
    • May 21, 2026
    • Mods
    • +1
  • KubeJS Create project image

    KubeJS Create

    • 45.9M
    • Mods

    KubeJS Create integration

    • 45.9M
    • November 12, 2025
    • Mods
  • PowerfulJS project image

    PowerfulJS

    • 2.6M
    • Mods

    KubeJS integration for Forge's Capability system, including Curios, Botania, FE and fluid handling.

    • 2.6M
    • October 14, 2025
    • Mods
    • +2