Mineuniverse
Log in Register
Mods

OpticalJS

KubeJS support for Create Optical
by ZZZank
Download Claim this project
191,435 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Addons API and Library KubeJS

OpticalJS

is a Create Optical addon that adds KubeJS support for it.

With OpticalJS, you can add Create Optical focusing recipe without having to interact with json style custom recipe.

Currently (Optical JS 1.0.0) supports Create Optical 0.2.1 and KubeJS 2001.6.5-build.16.

How To Use

code example:

ServerEvents.recipes(event => {
    event.recipes.create_optical.focusing(
        ["create:brass_door"],
        ["create:copper_door"]
    )
    event.recipes.create_optical.focusing(
        ["create:analog_lever"],
        ["minecraft:lever"],
        10,
        0
    )

    // after 0.1.1, you can use enum name directly
    event.recipes.create_optical.focusing(
        ["create:analog_lever"],
        ["minecraft:lever"],
        10,
        'gamma'
    )
})

This will create three focusing recipes.

The first recipe requires a "create:copper_door", and produces "create:brass_door" after 40 ticks.

The second recipe requires a Lever and exposure under radio light, and produces an Analog Lever after 10 ticks.

The third recipe requires a Lever and exposure under gamma light, and produces an Analog Lever after 10 ticks.

The 0 in the second recipe stands for required_beam_type, where 0 is "radio", 1 is "microwave", 2 is "visible light", 3 is "gamma", 4 is "none".

Image example:

example.png

OpticalJS-1.20.1-1.1.1.jar
MC Client, 1.20.1, Forge, Server
Release 2025-02-01 Get

More from ZZZank

Open In Inventory
9,161
KubeJEI
844
DataStructium
78,326
JEI Area Fixer
768,276
HUD Config Proxy
487
Logic Chips
413,232

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