Back to mods
Molecules [NeoForge] project artwork

CurseForge · Minecraft mod

Molecules [NeoForge]

This client-side only mod adds data-driven molecule drawings for GregTech chemicals. Rewritten for NeoForge.

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

Quick answer

Which Molecules [NeoForge] release should I use?

Updated 4 months ago
Latest stable file molecules-0.0.1-ALPHA.jar
Game version 1.21.1
Loader NeoForge

Molecules [NeoForge] molecules-0.0.1-ALPHA.jar targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 6 required mods have matching files.

Where it goes

Is Molecules [NeoForge] 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 NeoForge
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 Molecules [NeoForge] molecules-0.0.1-ALPHA.jar need?

molecules-0.0.1-ALPHA.jar. Change the file and its required mods may change too.

All 6 required mods have matching files

Install GregTech CEu Modern, KubeJS, Configuration, LDLib and 2 more first. We found matching files for this game-version and loader setup. 9 come through another mod in the chain.

2 listed on this file 9 pulled in by those mods
GregTech CEu Modern Needed by Molecules [NeoForge] molecules-0.0.1-ALPHA.jar
required
Matching file found Matched file: GregTech CEu 1.21.1-7.0.2
KubeJS Needed by Molecules [NeoForge] molecules-0.0.1-ALPHA.jar
required
Matching file found Matched file: KubeJS NeoForge 2101.7.2-build.381
Just Enough Items (JEI) Needed by GregTech CEu Modern
pulled in
Matching file found Matched file: 19.76.1.484 for NeoForge 1.21.1
Configuration Needed by GregTech CEu Modern
pulled in
Matching file found Matched file: configuration-neoforge-1.21.1-3.1.1
Jade 🔍 Needed by GregTech CEu Modern
pulled in
Matching file found Matched file: [NeoForge 1.21.1] 15.10.6
EMI Needed by GregTech CEu Modern
pulled in
Matching file found Matched file: emi-1.1.24+1.21.1+neoforge
LDLib Needed by GregTech CEu Modern
pulled in
Matching file found Matched file: LDLib2-1.21.1-2.2.49-neoforge
Better Advanced Tooltips Needed by KubeJS
pulled in
Matching file found Matched file: better-advanced-tooltips-2101.1.0-build.5.jar
Rhino Needed by KubeJS
pulled in
Matching file found Matched file: Rhino 2101.2.7-build.85
MezzConfig Needed by Just Enough Items (JEI)
pulled in
Matching file found Matched file: MezzConfig 0.7.1 for NeoForge 1.21.1
MezzConfigGUI Needed by Just Enough Items (JEI)
pulled in
Matching file found Matched file: MezzConfig GUI mc1.21.1-0.7.1 for NeoForge

9 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Molecules [NeoForge] without breaking your instance.

Built for Molecules [NeoForge] molecules-0.0.1-ALPHA.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use molecules-0.0.1-ALPHA.jar. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install GregTech CEu Modern, KubeJS, Configuration, LDLib and 2 more first. We found matching files for this game-version and loader setup. 9 come through another mod in the chain.

  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 molecules-0.0.1-ALPHA.jar. It opens that exact file at the source.

About this project

What does Molecules [NeoForge] add?

Molecules

This clientside only mod adds molecule drawings for organic molecules from GregTech CEu and its addons and modpacks in tooltips. It is a fork of the original, rewritten for NeoForge 1.21.1.

Examples

Color Polyethylene Polybenzimidazole Chloroform
None polyethylene tooltip screenshot polybenzimidazole tooltip screenshot chloroform tooltip screenshot
CPK polyethylene tooltip screenshot polybenzimidazole tooltip screenshot chloroform tooltip screenshot
Material polyethylene tooltip screenshot polybenzimidazole tooltip screenshot chloroform tooltip screenshot

Alloys

Mode HSS-E
By mass hss-e tooltip screenshot
Not recursive hss-e tooltip screenshot
By count hss-e tooltip screenshot

Additional content support

MolDraw comes out of the box with support for not only most of the organic materials and alloys from base GTCEu, but also a bunch of addons and modpacks. The currently supported extensions are:

  • Monifactory
  • Star Technology
  • Cosmic Frontiers
  • Phoenix Forge Technologies
  • TerraFirmaGreg
  • GT--
  • GregTech Community Additions
  • Gregicality Rocketry

What people say about this mod

Probably the coolest thing I've ever seen anyone do with tooltips.

My daily reminder that basically all organic chemistry is benzene with bits sticking out.

The only thing I have to say is that it's peak.

Now I can appreciate how complex the polymers I'm building are.

This was already so cool and colors made it even better!

I should be allowed to give Michelin stars to Gregtech add-ons because Madeline is cooking things right.

Incredibly useless, and yet incredibly cool!

yay aro representation

Adding your own molecules

Molecules are stored in resource packs under assets/<namespace>/molecules/<compound>.json, corresponding to the GT material with ID <namespace>:<compound>.

Molecules follow this schema:

// ARGB color or RGB hex string, which will always be used, or an object with the same and a specification of whether it's disableable by config
type ElementColor = number | string | {
  color: number | string;
  optional: boolean;
};

// Just a symbol, which can be used for normal atoms, or an object specifying a symbol, whether it's invisible, and the color
type Element = string | {
  symbol: string;
  invisible?: boolean; // New invisible elements that are intended to have different colors will still need a different symbol than the empty string; it will not be shown either way
  color?: ElementColor;
  material?: string; // The ID of the GregTech material associated with this element, used for the color by material setting.
}; 

// Amount of atoms defaults to 1
type CountedElement = string | [string, number];

interface AtomCommon {
  type: 'atom';
  index: number; // The identifier used for referring to this atom
  element?: CountedElement; // The main element of the atom, not present if the atom should be an invisible carbon
  above?: CountedElement; // An element to show above the main one
  right?: CountedElement; // etc
  below?: CountedElement;
  left?: CountedElement;
  spin_group?: number; // Atoms with the same group spin at the same rate, if it's a valid index in the molecule's spin property
}

// An atom can either specify X and Y coordinates...
interface AtomXY extends AtomCommon {
  x: number;
  y: number;
}

// or U and V coordinates, which are unit vectors tilted 30 degrees respectively anticlockwise and clockwise from the positive X semiaxis...
interface AtomUV extends AtomCommon {
  u: number;
  v: number;
}

// or the full 3D X, Y and Z coordinates.
interface AtomXYZ extends AtomCommon {
  x: number;
  y: number;
  z: number;
}

// Inward and outward bonds grow in size towards the second atom.
type Line = 'solid' | 'dotted' | 'inward' | 'outward' | 'thick';

interface Bond {
  type: 'bond';
  a: number; // The first atom of the bond
  b: number; // The second atom of the bond
  centered?: boolean // True if the lines can be offset by half an unit to center them
  lines: Line[];
}

// Parens are square brackets around certain atoms that show subscripts and/or superscripts.
interface Parens {
  type: 'parens';
  sup?: string; // Superscript text
  sub?: string; // Subscript text
  atoms: number[]; // List of atoms that are to be surrounded
}

// A circle drawn inside a cycle of atoms; automatically centered to their centroid.
interface CircleCommon {
  type: 'circle';
  atoms: number[];
}

// An axis-aligned circle scaled by x and y.
interface CircleXY extends CircleCommon {
  x: number;
  y: number;
}

// A linear trasformation applied to the unit circle.
interface CircleMatrix extends CircleCommon {
  a00: number;
  a01: number;
  a10: number;
  a11: number;
}

// A benzene ring
interface BenzeneCommon {
  type: 'benzene';
  start_index: number; // The index of the first atom in the ring
  clockwise?: boolean; // Whether the ring runs clockwise or counterclockwise (defaults to clockwise)
  spin_group?: number; // Spin group of the atoms in the ring
}

interface BenzeneXY extends BenzeneCommon {
  x0: number; // X coordinate of the first atom
  y0: number; // Y coordinate of the first atom
  x1: number; // X coordinate of the second atom
  y1: number; // Y coordinate of the second atom
}

interface BenzeneUV extends BenzeneCommon {
  u0: number; // U coordinate of the first atom
  v0: number; // V coordinate of the first atom
  u1: number; // U coordinate of the second atom
  v1: number; // V coordinate of the second atom
}

interface BenzeneXYZ extends BenzeneCommon {
  x0: number; // X coordinate of the first atom
  y0: number; // Y coordinate of the first atom
  z0: number; // Z coordinate of the first atom
  x1: number; // X coordinate of the second atom
  y1: number; // Y coordinate of the second atom
  z1: number; // Z coordinate of the second atom
}

type SpinSpec
  = boolean // Enable spinning with the default speed
  | number // Enable spinning and set a speed
  | number[]; // Set speeds for multiple groups

type MoleculeElement = AtomXY | AtomUV | AtomXYZ | Bond | Parens | CircleXY | CircleMatrix | BenzeneXY | BenzeneUV | BenzeneXYZ;

// A molecule JSON file is of type Molecule.
interface Molecule {
  contents: MoleculeElement[];
  spin?: SpinSpec;
}

An atom's position can either be stored as a pair of x and y coordinates or a pair of u and v coordinates, which are the unit vectors tilted 30 degrees respectively anticlockwise and clockwise from the positive horizontal semiaxis. Most often, encoding positions with u and v is easier since organic compounds' skeletal diagrams follow a hexagonal grid as much as possible.

For example, this is the encoding of benzene, if it didn't use the benzene component:

{
  "contents": [
    {
      "type": "atom",
      "index": 0,
      "u": 0.0,
      "v": 0.0
    },
    {
      "type": "atom",
      "index": 1,
      "u": -1.0,
      "v": 1.0
    },
    {
      "type": "atom",
      "index": 2,
      "u": -1.0,
      "v": 2.0
    },
    {
      "type": "atom",
      "index": 3,
      "u": 0.0,
      "v": 2.0
    },
    {
      "type": "atom",
      "index": 4,
      "u": 1.0,
      "v": 1.0
    },
    {
      "type": "atom",
      "index": 5,
      "u": 1.0,
      "v": 0.0
    },
    {
      "type": "bond",
      "a": 0,
      "b": 1
    },
    {
      "type": "bond",
      "a": 1,
      "b": 2,
      "lines": ["solid", "solid"]
    },
    {
      "type": "bond",
      "a": 2,
      "b": 3
    },
    {
      "type": "bond",
      "a": 3,
      "b": 4,
      "lines": ["solid", "solid"]
    },
    {
      "type": "bond",
      "a": 4,
      "b": 5
    },
    {
      "type": "bond",
      "a": 5,
      "b": 0,
      "lines": ["solid", "solid"]
    }
  ]
}

Adding your own alloys

Similarly, alloys are stored in resource packs under assets/<namespace>/alloys/<compound>.json, corresponding to the GT material with ID <namespace>:<compound>.

In the simplest case, a material just needs to be marked as being an alloy, and then its composition can be computed automatically via GregTech's material composition system. In that case, just put the following file in the correct place:

{
  "derive": true
}

If you want to specify components manually, such as to indicate impurities not present in the material composition, alloys follow this simple schema:

// A material ID and an integer amount, which defaults to 1
type Datum = string | [string, number];

// An alloy JSON file is of type Alloy
interface Alloy {
  components: Datum[];
}

Project description from CurseForge.

Pick your setup

Molecules [NeoForge] by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

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

Recent files

Molecules [NeoForge] versions and loaders

1 of 1 releases match

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