Skip to content

Instantly share code, notes, and snippets.

@sirtony
Last active May 7, 2025 16:02
Show Gist options
  • Select an option

  • Save sirtony/4a5b63d891e36a38d59b48e82d768055 to your computer and use it in GitHub Desktop.

Select an option

Save sirtony/4a5b63d891e36a38d59b48e82d768055 to your computer and use it in GitHub Desktop.
Adds some (hopefully) balanced recipes to Mekanism.
/*
MIT License
Copyright (c) 2024 SirTony
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
/*
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