Back to mods
OpticalJS project artwork

CurseForge · Minecraft mod

OpticalJS

KubeJS support for Create Optical

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which OpticalJS release should I use?

Updated today
Latest stable file OpticalJS-1.20.1-1.1.1.jar
Game version 1.20.1
Loader Forge

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.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

No extra mods listed for this file

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.

  1. 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.

  2. 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.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 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:

example.png

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.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

OpticalJS versions and loaders

3 of 3 releases match

Looking for an older file? The official CurseForge project page is in Resources.