Loading...
Beta Modpages Unclaimed

KubeJS Botania

KubeJS integration for Botania

0 Likes
3207561 Downloads
Created by Amygdaloideae

Description

Adds support for Botania recipes, and custom brewing of Flasks, Incenses and Tainted Pendant.

 

Both Forge and Fabric are supported (Please check in Files tab since Recent Files will only show the latest entry).

 

For KJS6, you need to adapt code below to fit KJS6's style.

 

Examples:

 

In startup_script:

onEvent("botania.brews.registry", event => {
    event.create("torrent")
        /**
         * The cost of mana per brew.
         * For Tainted Blood Pendant, it is cost / duration / effectLevel * 2.5 per tick.
         */
        .cost(5000)
        /**
         * The effect you want to specify for the Brew,
         * can be specified for multiple times for applying
         * multiple effects at once.
         * The parameters come the same as /effect,
         * except for duration is in ticks, not seconds.
         */
        .effect("minecraft:water_breathing", 4800 * 20)
        .effect("botania:allure", 300 * 20, 0, false, false)
        /**
         * Set to deny incense for this brew.
         */
        .noIncense()
        /**
         * Set to deny pendant infusing for this brew.
         */
        .noPendant()
})
 

In server_scripts:

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

    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.elven_trade(["minecraft:acacia_boat", "minecraft:acacia_button"], ["minecraft:diamond_block", "minecraft:gold_ingot"])
   
    event.recipes.botania.pure_daisy("minecraft:acacia_button", "minecraft:acacia_leaves")
    event.recipes.botania.pure_daisy("minecraft:acacia_button", "minecraft:stone", 1)

    event.recipes.botania.brew("kubejs:torrent", ["minecraft:acacia_boat"])

    event.recipes.botania.petal_apothecary("minecraft:acacia_boat", ["minecraft:acacia_button"])

    event.recipes.botania.runic_altar("minecraft:acacia_boat", ["minecraft:acacia_button", "minecraft:acacia_door"], 5000)

    event.recipes.botania.terra_plate("minecraft:acacia_boat", ["minecraft:acacia_button", "minecraft:acacia_door"], 5000000)

    event.recipes.botania.orechid("minecraft:acacia_button", "minecraft:acacia_fence", 1)

    event.recipes.botania.orechid_ignem("minecraft:acacia_leaves", "minecraft:acacia_fence_gate", 1)

    event.recipes.botania.marimorphosis("minecraft:acacia_door", "minecraft:acacia_fence_gate", 1, ["plains"], 10)
})


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

KubeJS

Edit recipes, add new custom items, script world events, all in JavaScript!

KubeJS UI

Allows you to tweak main menu with KubeJS

MoreJS

A Minecraft mod to extend KubeJS with additional events.

LootJS: KubeJS Addon

Add functionality for packdevs to modify global loot modifications through KubeJS