JEI Crafting

Quick rating

JEI Crafting

No reviews yet

Adds a recipe type that allows players to "cheat" items from JEI list, free or costing some items.

QoL & Tweaks
Mod Loaders
NeoForge
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

About

Project Details

Type
Mod
Latest Version
JEI Crafting-1.2.0.jar
Authors

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

Resources

External Links

Source Issues Wiki Discord

About

Description

This addon adds a way to define recipes that, when a player hovers the cursor over items shown in JEI item list or bookmarks and middle clicks them, the player will be given the items while consuming some defined ingredients.

Also supports JEI+EMI or TMRV+EMI, but in some very edge cases it will have behavioral problems when true cheating is enabled.

The addon is mostly designed for modpack-making, so it is not bundled with any recipe, and modpack authors can define their own JEI crafting recipes to make certain items easier to be accessed by the player.

Usage Example

Rationale

Some recipes in Minecraft are actually annoying, and especially for colored building blocks, or cosmetic blocks that are just building materials but have a recipe that requires you to go through 2 or 3 crafting operations to get. For example, if you want to build a house with 5 different colors of concrete, then you need to prepare those dyes and get 5 types of concrete sands beforehand, and if you accidentally run out of the material, you need to find a crafting table and make some more.

Oh no…

So, as the mod proposed and provided functionality for, an easier way would just remove these recipes, and let players take the concrete of different colors out directly, while consuming some basic concrete materials. Or even more radical, just let players get the building materials for free!

The same also applies to actual machines. For example, you have propeller, brass hand, mixer… in Create, but each item only serves as the crafting ingredient in one or two machines. When you want to relocate the factory or just rebuild some part of it, your inventory is stuffed by the machines, cogwheels, belts and shafts. And this is solvable by the mod, where you can just reduce all the machines back to the raw ingredients, and turn them into other machines when you feel like to. Recipe staging and gating is still there, as you can define what kind of materials are needed to craft different machines.

Usage

The recipes provided by this mod can be defined using datapacks:

{
    "type": "jei_crafting:jei_crafting",
    "output": {
        "id": "minecraft:smoker",
        "count": 1
    },
    "ingredients": [
        {
            "ingredient": {
                "tag": "minecraft:logs"
            },
            "count": 4
        },
        {
            "ingredient": {
                "tag": "c:cobblestones"
            },
            "count": 8
        }
    ],
    "uncraftsTo": [
        {
            "id": "minecraft:oak_wood",
            "count": 4
        },
        {
            "id": "minecraft:cobblestone",
            "count": 8
        }
    ]
}

So we defined a JEI crafting recipe that converts 4 logs and 8 cobblestones to a smoker. The default config in JEI crafting crafts 8 times at once, and it is adjustable in config/jei/_crafting-client.toml.

The uncraftsTo can be omitted to disable the uncrafting of a recipe, and the ingredients can be omitted to make a recipe "free", consuming no items when the output is taken out by the player:

{
    "type": "jei_crafting:jei_crafting",
    "output": {
        "id": "minecraft:bedrock",
        "count": 1
    }
}

Free recipes are automatically uncraftable, as at that time it's not very different from putting the items into trashcan.

Finally, we will have something looks like this:

Usage Example

In v1.1.0, you can also configure the craftsInTicks field to set the crafting duration required in ticks for a craft to happen, like:

Video

We got compat for KJS that allows you to dynamically modify the recipe output in v1.2.0. However, KubeJS recipe support is not very available at the time, as the recipe component does not allow empty list, where it is inevitable when defining free or not uncraftable items :/ But it's possible to define the recipe using event.custom, like:

ServerEvents.recipes(event => {

    event.custom({
        type: "jei_crafting:jei_crafting",
        output: Item.of("minecraft:bedrock"),
        craftInTicks: 10
    })

    event.custom({
        type: "jei_crafting:jei_crafting",
        output: Item.of('minecraft:copper_block'),
        ingredients: [{
            ingredient: Ingredient.of('minecraft:copper_ingot'),
            count: 9,
        }],
        uncraftsTo: [
            Item.of('minecraft:copper_ingot', 8)
        ],
        craftInTicks: 20
    }).id('kubejs:foobar')
})

// When these events `are event.cancel()`ed, the crafting will fail and there'll be some
// notification sound
JeiCraftingEvents.itemCrafting('kubejs:foobar', event=>{
    // When the item is crafted, modify the output to Sussy baka instead
    event.recipeOutput = Item.of("minecraft:copper_block[custom_name='\"Sussy baka\"']")
})

JeiCraftingEvents.itemUncrafting('kubejs:foobar', event=>{
    // Overrides the original uncrafting list to another one
    event.recipeOutput = [Item.of("minecraft:copper_block[custom_name='\"Sussy baka\"']")]
})

Screenshots

Gallery

  • 4.webp
    4.webp 4.webp
  • 3.png
    3.png 3.png
  • 2.png
    2.png 2.png
  • 1.gif
    1.gif 1.gif

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

~2,000
Downloads
Last Updated
Created
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