KubeJS Mystical Agriculture

Quick rating

KubeJS Mystical Agriculture

No reviews yet

Add KubeJS Support for Mystical Agriculture

Magic
API/Library
Economy & Trade Systems
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
GNU Lesser General Public License v3.0 or later
Latest Version
kubejs_mystical_agriculture-0.1.0.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

KubeJS Mystical Agriculture

the project has 2 goals, substitute mystical customization and add support for all mystical agriculture recipe types.

with this project you can add awakening recipes, enchanter recipes, infusion recipes, seed reprocessor recipes, soul extraction recipes and soulium spawner recipes.

this mod has startup events for crops and mob soul types allowing access to the respective registry, this means you can add crops and mob souls.

Adding Recipes

ServerEvents.recipes(event => {
const {awakening,enchanter,infusion,reprocessor,soul_extraction,soulium_spawner} = event.recipes.mysticalagriculture;

    // awakening
    awakening(
        "minecraft:gold_ingot", // result
        "minecraft:iron_ingot", // item in the middle
        [
            Item.of("minecraft:yellow_dye",40), // may contain count
            Item.of("minecraft:yellow_dye",40),
            Item.of("minecraft:yellow_dye",40),
            Item.of("minecraft:yellow_dye",40)
        ], // items in essence vessels 
        [
            "#minecraft;flowers",
            "#minecraft;flowers",
            "#minecraft;flowers",
            "#minecraft;flowers",
        ] // items in pedestal
    );
    // enchanter
    enchanter(
        "minecraft:sharpness", //result enchantment which will be produced
        [
            Item.of("minecraft:flint",3),
            Item.of("minecraft:iron_ingot",2)
        ] // array of 1-2 items may contain count
    );
    // infusion
    infusion(
        "minecraft:emerald", // result
        "minecraft:diamond", // item in middle
        [
            Item.of("minecraft:green_dye",4) // count is unwrapped into multiple items
        ] // items in pedestals
    );
    // reprocessor
    reprocessor(
        "minecraft:iron_ingot", // result
        "minecraft:compass" // input item
    );
    // soul extractor
    // constructor 1
    soul_extraction(
        {
            type:"mysticalagriculture:blaze", 
            souls:30
        }, // mob souls
        "minecraft:magma_cream" // input item
    );
    // constructor 2
    soul_extraction(
        "mysticalagriculture:zombie", // mob soul type
        0.5, //souls count
        "minecraft:diamond" // input item
    );
    // soulium spawner
    soulium_spawner(
        [
            { 
                entity:"minecraft:zombie",
                weight:100
            },
            {
                entity:"minecraft:iron_golem",
                // weight if not defined will be 1
            }
        ], // entities
        [
            Item.of("minecraft:emerald",4) // may contain count
        ] // input items
    );
});

Adding Crops

in startup_scripts

MysticalAgricultureStartupEvents.crop(event => {
    // here you can access the crop registry as event.registry
    /* methods 
    void register(Crop crop);
    void registerTier(CropTier tier);
    void registerType(CropType type);
    List<Crop> getCrops();
    Crop getCropById(ResourceLocation id);
    Crop getCropByName(String name);
    List<CropTier> getTiers();
    CropTier getTierById(ResourceLocation id);
    List<CropType> getTypes();
    CropType getTypeById(ResourceLocation id);
    */
    // note that you can't unregister a crop but you can disable them
    // to register a crop you need a Crop object
    const kubium = new Crop(
        "kubejs:kubium", // id of crop
        "mysticalagriculture:5", // crop tier id or object
        "mysticalagriculture:resource", // crop type id or object
        new CropTextures(
            "mysticalagriculture:block/flower_ingot",// flower texture
            "mysticalagriculture:item/essence_ingot" // essence texture
            // you may also set a texture for the seed by passing an extra argument
        ), // textures
        "#forge:ingots/kubium" // ingredient, note that this is a custom object used by mystical agriculture so it must be either a tag or item 
    );
    const red = new Crop(
        "kubejs:red",
        CropTier.ONE,
        CropType.RESOURCE,
        CropTextures.DUST_CROP_TEXTURES,
        16711680,// color in decimal
        "minecraft:red_dye"
    );
    // after creating crops register them
    event.register(kubium);
    red.setDisplayName(Text.ofString("RED").red());
    event.register(red);
});

Project matrix room:https://matrix.to/#/!JWjgXbzJNbNspnvzKJ:matrix.org?via=matrix.org

KubeJS Mystical Agriculture

the project has 2 goals, substitute mystical customization and add support for all mystical agriculture recipe types.

with this project you can add awakening recipes, enchanter recipes, infusion recipes, seed reprocessor recipes, soul extraction recipes and soulium spawner recipes.

this mod has startup events for crops and mob soul types allowing access to the respective registry, this means you can add crops and mob souls.

Adding Recipes

ServerEvents.recipes(event => {
const {awakening,enchanter,infusion,reprocessor,soul_extraction,soulium_spawner} = event.recipes.mysticalagriculture;

    // awakening
    awakening(
        "minecraft:gold_ingot", // result
        "minecraft:iron_ingot", // item in the middle
        [
            Item.of("minecraft:yellow_dye",40), // may contain count
            Item.of("minecraft:yellow_dye",40),
            Item.of("minecraft:yellow_dye",40),
            Item.of("minecraft:yellow_dye",40)
        ], // items in essence vessels 
        [
            "#minecraft;flowers",
            "#minecraft;flowers",
            "#minecraft;flowers",
            "#minecraft;flowers",
        ] // items in pedestal
    );
    // enchanter
    enchanter(
        "minecraft:sharpness", //result enchantment which will be produced
        [
            Item.of("minecraft:flint",3),
            Item.of("minecraft:iron_ingot",2)
        ] // array of 1-2 items may contain count
    );
    // infusion
    infusion(
        "minecraft:emerald", // result
        "minecraft:diamond", // item in middle
        [
            Item.of("minecraft:green_dye",4) // count is unwrapped into multiple items
        ] // items in pedestals
    );
    // reprocessor
    reprocessor(
        "minecraft:iron_ingot", // result
        "minecraft:compass" // input item
    );
    // soul extractor
    // constructor 1
    soul_extraction(
        {
            type:"mysticalagriculture:blaze", 
            souls:30
        }, // mob souls
        "minecraft:magma_cream" // input item
    );
    // constructor 2
    soul_extraction(
        "mysticalagriculture:zombie", // mob soul type
        0.5, //souls count
        "minecraft:diamond" // input item
    );
    // soulium spawner
    soulium_spawner(
        [
            { 
                entity:"minecraft:zombie",
                weight:100
            },
            {
                entity:"minecraft:iron_golem",
                // weight if not defined will be 1
            }
        ], // entities
        [
            Item.of("minecraft:emerald",4) // may contain count
        ] // input items
    );
});

Adding Crops

in startup_scripts

MysticalAgricultureStartupEvents.crop(event => {
    // here you can access the crop registry as event.registry
    /* methods 
    void register(Crop crop);
    void registerTier(CropTier tier);
    void registerType(CropType type);
    List<Crop> getCrops();
    Crop getCropById(ResourceLocation id);
    Crop getCropByName(String name);
    List<CropTier> getTiers();
    CropTier getTierById(ResourceLocation id);
    List<CropType> getTypes();
    CropType getTypeById(ResourceLocation id);
    */
    // note that you can't unregister a crop but you can disable them
    // to register a crop you need a Crop object
    const kubium = new Crop(
        "kubejs:kubium", // id of crop
        "mysticalagriculture:5", // crop tier id or object
        "mysticalagriculture:resource", // crop type id or object
        new CropTextures(
            "mysticalagriculture:block/flower_ingot",// flower texture
            "mysticalagriculture:item/essence_ingot" // essence texture
            // you may also set a texture for the seed by passing an extra argument
        ), // textures
        "#forge:ingots/kubium" // ingredient, note that this is a custom object used by mystical agriculture so it must be either a tag or item 
    );
    const red = new Crop(
        "kubejs:red",
        CropTier.ONE,
        CropType.RESOURCE,
        CropTextures.DUST_CROP_TEXTURES,
        16711680,// color in decimal
        "minecraft:red_dye"
    );
    // after creating crops register them
    event.register(kubium);
    red.setDisplayName(Text.ofString("RED").red());
    event.register(red);
});

Project matrix room:https://matrix.to/#/!JWjgXbzJNbNspnvzKJ:matrix.org?via=matrix.org

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~160,000
Total Downloads
CurseForge
~150,000
Modrinth
~14,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works