OpticalJS
Modby ZZZank
KubeJS support for Create Optical
Type
Mod
CurseForge Downloads
253,989
CurseForge ID
1149819
Last Updated
Sep 5, 2026
Description
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:
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Galaxy Space [Addon for GalactiCraft]
Global addon for GalactiCraft
Hud Texts
If you want UI texts with variables then this mod is for you.
Mekanism Turrets & Fences
Turrets and Fences in Mekanism!
Screenshot to Clipboard (Fabric)
Screenshots taken are copied to the clipboard. (Forge version also available)
Auto Feeder Helmet [NEOFORGE/FORGE]
Upgrade all your loved helmets, so they feed you while you do nothing
Mapmaker's Gadgets
Useful gadgets for map and modpack makers. Has a villager trade editor, a spawner editor, a potion editor, an item lore/...
