Skip to content

Instantly share code, notes, and snippets.

@sirtony
Last active May 7, 2025 16:02
Show Gist options
  • Save sirtony/4a5b63d891e36a38d59b48e82d768055 to your computer and use it in GitHub Desktop.
Save sirtony/4a5b63d891e36a38d59b48e82d768055 to your computer and use it in GitHub Desktop.
Adds some (hopefully) balanced recipes to Mekanism.
// This script by Tony King is marked with CC0 1.0 Universal. To view a copy of this license, visit https://creativecommons.org/publicdomain/zero/1.0/
/*
This is a KubeJS server script that adds a few recipes to Mekanism
to make it easier to get some resources that are otherwise
annoying to farm in large quantities.
Requirements:
KubeJS - https://www.curseforge.com/minecraft/mc-mods/kubejs
Mekanism - https://www.curseforge.com/minecraft/mc-mods/mekanism
KubeJS Mekanism Addon - https://www.curseforge.com/minecraft/mc-mods/kubejs-mekanism
Only tested on Minecraft 1.21.1
*/
ServerEvents.recipes((event) => {
// Infuse carbon into stone to get deepslate
event.recipes.mekanism.metallurgic_infusing(
"1x minecraft:deepslate",
"1x minecraft:stone",
"10x #mekanism:carbon",
false,
);
// Infuse carbon into cobblestone to get cobbled deepslate
event.recipes.mekanism.metallurgic_infusing(
"1x minecraft:cobbled_deepslate",
"1x minecraft:cobblestone",
"10x #mekanism:carbon",
false,
);
// Infuse carbon into deepslate to get blackstone
event.recipes.mekanism.metallurgic_infusing(
"1x minecraft:blackstone",
"1x minecraft:deepslate",
"10x #mekanism:carbon",
false,
);
// Infuse carbon into deepslate to get blackstone
event.recipes.mekanism.metallurgic_infusing(
"1x minecraft:blackstone",
"1x minecraft:cobbled_deepslate",
"10x #mekanism:carbon",
false,
);
// Infuse redstone into a gold ingot to get 2 glowstone dust
event.recipes.mekanism.metallurgic_infusing(
"2x minecraft:glowstone_dust",
"1x minecraft:gold_ingot",
"10x #mekanism:redstone",
false,
);
// Infuse gold into redstone to get 2 glowstone dust
event.recipes.mekanism.metallurgic_infusing(
"2x minecraft:glowstone_dust",
"1x minecraft:redstone",
"10x #mekanism:gold",
false,
);
// Enrich amethyst block to get 4 amethyst shards
event.recipes.mekanism.enriching(
"4x minecraft:amethyst_shard",
"1x minecraft:amethyst_block",
);
// Infuse refined obsidian into a nether quartz to get 4 amethyst shards
event.recipes.mekanism.metallurgic_infusing(
"4x minecraft:amethyst_shard",
"1x minecraft:quartz",
"10x #mekanism:refined_obsidian",
false,
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment