Download KubeJS Botania — Minecraft Mods — MetaMods

KubeJS Botania

Active

Downloads

0

Last update

1 year ago
Client

KubeJS Botania - Integration with Technomagical Mod

This addon opens new possibilities for customizing the classic technomagical mod Botania through the powerful KubeJS system. You get complete control over the recipes and technologies of this popular extension.

Key Functional Capabilities

Custom Alchemy

Create your own potions, aromatic blends, and tainted amulets with unique effects and properties. The system allows you to fully control the cost, effects, and limitations of each potion you create.

Code example for startup_script.js:

onEvent("botania.brews.registry", event => {
    event.create("torrent")
        /
          Mana cost for brewing
          For Tainted Blood Pendant formula: cost / duration / effectLevel  2.5 per tick
         /
        .cost(5000)
        /
          Effects assigned to the potion,
          multiple effects can be specified simultaneously
          Parameters are similar to the /effect command,
          but duration is specified in ticks, not seconds
         /
        .effect("minecraft:water_breathing", 4800  20)
        .effect("botania:allure", 300 * 20, 0, false, false)
        /
          Prohibit use in aromatic blends
         /
        .noIncense()
        /
          Prohibit creation of amulets
         /
        .noPendant()
})

Complete Recipe Control

The system allows you to create, modify, and delete any Botania recipes, including mana infusion, elven trade, runic altar, and other crafting mechanics.

Implementation example in server_scripts.js:

onEvent("recipes", event => {
    // Removal of standard recipes
    event.remove({ output: "botania:livingrock" })

    // Creation of new recipes
    event.recipes.botania.mana_infusion("minecraft:acacia_boat", "minecraft:acacia_door", 200, "minecraft:acacia_log")
    event.recipes.botania.elven_trade(["minecraft:acacia_boat"], "minecraft:diamond")
    event.recipes.botania.pure_daisy("minecraft:acacia_button", "minecraft:acacia_leaves")
    event.recipes.botania.brew("kubejs:torrent", ["minecraft:acacia_boat"])
    event.recipes.botania.runic_altar("minecraft:acacia_boat", ["minecraft:acacia_button", "minecraft:acacia_door"], 5000)
    event.recipes.botania.orechid("minecraft:acacia_button", "minecraft:acacia_fence", 1)
})

Compatibility and Requirements

The mod fully supports both major platforms - Forge and Fabric. Please note that the "Files" tab by default shows only the latest entry, so to choose the correct version, check all available download options.

For KJS6 users, adaptation of the provided examples to the new script structure will be required.

Project members
Amygdaloideae

Amygdaloideae

Created: 11 Dec 2023

ID: 98993