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.

Revisions

  1. sirtony revised this gist May 7, 2025. 1 changed file with 1 addition and 23 deletions.
    24 changes: 1 addition & 23 deletions more_mekanism.js
    Original file line number Diff line number Diff line change
    @@ -1,26 +1,4 @@
    /*
    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 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
  2. sirtony revised this gist May 7, 2025. 1 changed file with 40 additions and 8 deletions.
    48 changes: 40 additions & 8 deletions more_mekanism.js
    Original file line number Diff line number Diff line change
    @@ -36,34 +36,66 @@ SOFTWARE.
    Only tested on Minecraft 1.21.1
    */

    ServerEvents.recipes(event => {
    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
    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
    false,
    );

    // Enrich amethyst block to get 4 amethyst shards
    event.recipes.mekanism.enriching(
    "4x minecraft:amethyst_shard",
    "1x minecraft:amethyst_block"
    "1x minecraft:amethyst_block",
    );

    // Infuse refined obsidian into a nether quartz to get 2 amethyst shards
    // Infuse refined obsidian into a nether quartz to get 4 amethyst shards
    event.recipes.mekanism.metallurgic_infusing(
    "2x minecraft:amethyst_shard",
    "4x minecraft:amethyst_shard",
    "1x minecraft:quartz",
    "10x #mekanism:refined_obsidian",
    false
    false,
    );
    });
    });
  3. sirtony created this gist Dec 12, 2024.
    69 changes: 69 additions & 0 deletions more_mekanism.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,69 @@
    /*
    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 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 2 amethyst shards
    event.recipes.mekanism.metallurgic_infusing(
    "2x minecraft:amethyst_shard",
    "1x minecraft:quartz",
    "10x #mekanism:refined_obsidian",
    false
    );
    });