MekaJS Mod extends Mekanism and KubeJS with custom gases and infuser types. This addon lets you make your own Mekanism gases and infuse types using simple JavaScript files. You do not need advanced modding skills to use it, only a basic idea of how to write a KubeJS script. You can copy, paste, and change the sample scripts to match what you need in your game.

Features:

  • Custom Gases: Lets you create new Mekanism gases with a custom registry ID, an integer color, and an optional texture.
  • Custom Infuse Types: Allows you to make new Mekanism infuser types with a custom registry ID, an integer color, and an optional texture.
  • Accepts lowercase letters, numbers, and underscores for registry names, with no spaces or special characters.
  • Applies your chosen integer color (MapInfo Color format) directly over the gas or infuser type texture, turning it black if no color is set.
  • Uses the default fluid texture for custom gases and the default infuser type texture for custom infuse types when you do not add a texture file.
  • Shows your custom gas and infuser type textures inside JEI and machine menus.
  • Supports custom display names in the en_us.json language file so your creations show clean names in the game.

Configuration:

Custom Gas Script Example:

onEvent('gas.registry', event => {
    event.create("test_gas").color(16711688).texture("kubejs:gases/test_gas_texture.png")
})

This script creates a full red gas with the ID test_gas and loads its texture from kubejs/assets/kubejs/textures/gases/test_gas_texture.png.

Custom Infuse Type Script Example:

onEvent('infuse_type.registry', event => {
    event.create("test_infuse_type").color(16711688).texture("kubejs:infuse_types/test_infuse_type_texture.png")
})

This script creates a full red infuser type with the ID test_infuse_type and loads its texture from kubejs/assets/kubejs/textures/infuse_types/test_infuse_type_texture.png.

How to Use:

  1. Create a basic KubeJS script and copy one of the example scripts above, using gas.registry for a gas or infuse_type.registry for an infuser type.
  2. Give your gas or infuser type a registry name inside event.create(...) using only lowercase letters, numbers, and underscores, with no spaces or special characters.
  3. Set an integer color value (MapInfo Color format) inside .color(...) so your gas or infuser type shows the color you want instead of turning black.
  4. Optionally, drop a custom PNG texture into kubejs/assets/kubejs/textures/gases/ or kubejs/assets/kubejs/textures/infuse_types/ and link it with .texture(...). If you skip this, the game uses the default fluid or infuser type texture.
  5. Add a display name entry like "gas.kubejs.test_gas":"Test Gas" or "gas.kubejs.test_infuse_type":"Test Infuser Type" inside kubejs/assets/lang/en_us.json so it shows a clean name instead of the raw ID in the game.

MekaJS Mod Download Links

For Minecraft 1.16.5

Forge version: Download from Server 1 – Download from Server 2

For Minecraft 1.15.2

Forge version: Download from Server 1

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

Which item and recipe viewer mod do you prefer to have in your game?

28 responses · See the full results →