Mineuniverse
Log in Register
Mods

MekaJS

An addon for Mekanism that allow to create custom gases and infuser types with KubeJS
by frinn38
Download Claim this project
524,567 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Addons
This mod is no longer maintained
 
Use KubeJS Mekanism instead 

 

This mod is an addon for Mekanism and Kubejs.

 

It allow you to create mekanisms customs gases and infuser types using KubeJS JavaScripts.

 

You don't really need to have advanced modding knowledge to use this mod, however you must know how to use KubeJS to make a basic script. For the rest you can just copy-paste the scripts below and adapt to your needs.

 

 

Custom Gases :

To create a custom Mekanism gas, you only need a registry name (the id of the gas if you prefer), the registryname must be lowercase and without spaces and special characters (underscore and numbers are allowed).

You will also need to specify a color for the gas (if you don't the gas will be black), the color is in integer format (see this, the color you need is the "MapInfo Color").

Optionally, you can specify a custom texture for the gas (when displayed in jei or machines gui), remember that the color will be applied over the texture. You can add the texture in the kubejs folder under assets.

 

Example :

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


This will create a gas with a registry name of "test_gas", color full red and the texture dropped in kubejs/assets/kubejs/textures/gases/test_gas_texture.png
Note the texture is optional and if not specified the default fluid texture will be used.
Remember to add "gas.kubejs.test_gas":"Test Gas" in kubejs/assets/lang/en_us.json otherwise the in game name of the gas will be "gas.kubejs.test_gas".

 

Custom Infuse Types :

To create a custom Mekanism infuse type, you only need a registry name (the id of the gas if you prefer), the registryname must be lowercase and without spaces and special characters (underscore and numbers are allowed).

You will also need to specify a color for the infuser type (if you don't the gas will be black), the color is in integer format (see this, the color you need is the "MapInfo Color").

Optionally, you can specify a custom texture for the infuser type (when displayed in jei or machines gui), remember that the color will be applied over the texture. You can add the texture in the kubejs folder under assets.

 

Example :
onEvent('infuse_type.registry', event => {

    event.create("test_infuse_type").color(16711688).texture("kubejs:infuse_types/test_infuse_type_texture.png")

})

 

This will create a gas with a registry name of "test_infuse_type", color full red and the texture dropped in kubejs/assets/kubejs/textures/infuse_types/test_infuse_type_texture.png
Note the texture is optional and if not specified the default infuser type texture will be used.
Remember to add "gas.kubejs.test_infuse_type":"Test Infuser Type" in kubejs/assets/lang/en_us.json otherwise the in game name of the gas will be "gas.kubejs.test_infuse_type".

 

Issues : 

If you have any issues using this mod, please report them in the MekaJS github issue tracker.

 

Permissions :

You are allowed to use this mod in any modpack as long as you download it from this website  and don't repost it elsewhere.

 

MekaJS-1.16.5-1.2.0
MC 1.16.5, Forge, 1.16.4
Release 2021-05-25 Get

More from frinn38

Modular Magic
744,180
Custom Machinery
6,226,988
Custom Machinery Mekanism
2,756,985
Infinite Music
1,534,181
Custom Machinery PneumaticCraft
122,339

You Might Also Like

SI: Scriptified [DISCONTINUED]
DISCONTINUED
99,868
FTB Quests Entity Visualization
Adds entity visualization to FTB Quests
99,525
JEI / REI WorldGen
JEI/REI Addon for World Gen Information with universal compatibility for all mods ores by utilizing biome generation data
99,419
Pixel Blocks
Pokemon Lucky Block! When mining the pixel block a random pokemon spawns.
9,988
TFC Bonsai
Add TFC Trees to bonsai pots
9,988
Laser Eyes
A "laser eyes" addon for the Viltrumite mod.
9,968