CurseForge · Minecraft mod
OpticalJS
KubeJS support for Create Optical
Quick answer
Which OpticalJS release should I use?
OpticalJS-1.20.1-1.1.1.jar targets 1.20.1 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is OpticalJS required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does OpticalJS-1.20.1-1.1.1.jar need?
OpticalJS-1.20.1-1.1.1.jar. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add OpticalJS without breaking your instance.
Built for OpticalJS-1.20.1-1.1.1.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use OpticalJS-1.20.1-1.1.1.jar. It targets 1.20.1 with Forge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside OpticalJS-1.20.1-1.1.1.jar. It opens that exact file at the source.
About this project
What does OpticalJS add?
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:
Project description from CurseForge.
Pick your setup
OpticalJS by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.20.1
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
OpticalJS versions and loaders
2.0.0 for 1.21.1 Neoforge
optical_js-2.0.0.jar
12 Sept 2026
OpticalJS-1.20.1-1.1.1.jar
1 Feb 2025
OpticalJS-1.20.1-1.0.0.jar
29 Nov 2024
Looking for an older file? The official CurseForge project page is in Resources.
