Create x KubeJS Recipes Compat

Further compatibility between Create and KubeJS
Screenshot Create x KubeJS Recipes Compat (1).png

Screenshot Create x KubeJS Recipes Compat (1).png

Screenshot Create x KubeJS Recipes Compat (2).png

Screenshot Create x KubeJS Recipes Compat (2).png

Screenshot Create x KubeJS Recipes Compat (3).png

Screenshot Create x KubeJS Recipes Compat (3).png

Description

Create x KubeJS Recipes Compat

This mod and its JAR were generated with AI. I made it for my own modpack, but it should also work in other modpacks that meet the requirements below.

Features

  • Adds chance-based output recipes for Create fan blasting and fan smoking.
  • Adds the KubeJS item type create_krecipes:sequenced_assembly, which uses Create's SequencedAssemblyItem and displays its familiar progress bar.

Chance-based fan recipes

Use create_krecipes:fan_blasting or create_krecipes:fan_smoking as the recipe type. Add each possible output to results with a chance from 0 to 1—for example, 0.4 means 40%.

ServerEvents.recipes((event) => {
  event.custom({
    type: "create_krecipes:fan_blasting",
    ingredients: [{ tag: "minecraft:saplings" }],
    results: [
      { id: "dndesires:coal_piece", chance: 0.4 },
      { id: "dndesires:coal_piece", chance: 0.1 },
    ],
  });
});

Use tag for a tag ingredient or item for a single item ingredient. Outputs use id and chance, for example { id: "mod:item", chance: 0.5 }.

For fan smoking, use create_krecipes:fan_smoking with the same ingredients and results format. Recipes appear in the KRecipes JEI categories.

Sequenced Assembly items

Register the incomplete item in a startup script with the create_krecipes:sequenced_assembly builder type:

StartupEvents.registry("item", (event) => {
  event
    .create("incomplete_creative_filling_tank", "create_krecipes:sequenced_assembly")
    .displayName("Incomplete Creative Filling Tank")
    .texture("kubejs:item/incomplete_creative_filling_tank");
});

Use the registered item as the transitional item in your Sequenced Assembly recipe.

Tested with

  • Minecraft 1.21.1
  • NeoForge 21.1
  • Create 6.x (tested with 6.0.10)
  • KubeJS 2101.7.2-build.377

JEI is optional, but is needed to browse the addon's recipe categories.

Create x KubeJS Recipes Compat Team

profile avatar
Owner
  • 3
    Projects
  • 393
    Downloads

More from Curlo