Random Recipes

Random Recipes

Seed-based crafting recipe randomizer — every world, a new puzzle.

by
2 Downloads
fabricgame-mechanics
Rent Server with this Mod

Screenshots

奇怪的铁斧配方

About this Mod

Random Recipes

Deterministic crafting recipe shuffler for Fabric — every world, a new puzzle.

Enter a world, and all crafting table recipes are shuffled using the world seed as the random source. Same seed = same recipes forever. Different seeds = completely different recipes. Perfect for SMP — every player in the same world sees identical shuffled recipes.

Features

  • Seed- deterministic shuffling — a single world seed controls all randomization, using Java Random for reproducibility
  • Three-layer recipe transformation:
    1. Fisher-Yates shuffle on ingredient positions (non-empty slots only)
    2. Ingredient addition, removal (shapeless only), or replacement — 1 to 2 changes per recipe
    3. Automatic duplicate detection & conflict resolution after shuffling
  • Global item pool — single-material recipes (shears, iron nuggets, pressure plates, etc.) pull candidates from every item that appears across all crafting recipes, preventing "replace iron with iron" no-ops
  • Three protected defaults — wooden, stone, and iron pickaxes are always kept unchanged so the game remains playable
  • Config-file extensionconfig/random-recipes.json lets you protect additional items by ID or specific recipe IDs
  • Cross-mod compatible — automatically processes crafting recipes registered by other mods
  • /reload friendly — edit the config and run /reload; changes apply instantly, no restart needed

How it works

Step What happens
1. Scan All recipes of type RecipeType.CRAFTING are collected at server startup
2. Filter Protected items (three pickaxes + config entries) are skipped
3. Build pool Every item appearing in any crafting recipe is collected into a global pool
4. Shuffle Each non-protected recipe gets its ingredients shuffled, then modified 1-2 times
5. Deduplicate The final list is checked for identical (output + ingredient set) pairs; conflicts are auto-resolved

Installation

  1. Install Fabric Loader ≥ 0.15
  2. Install Fabric API
  3. Place the jar in .minecraft/mods/
  4. Launch Minecraft 1.20.1

Configuration

Generated automatically on first run at config/random-recipes.json:

{
  "protected_output_items": [
    "minecraft:wooden_pickaxe",
    "minecraft:stone_pickaxe",
    "minecraft:iron_pickaxe"
  ],
  "protected_recipe_ids": []
}
Field Purpose Example
protected_output_items Protect all recipes that output a specific item "minecraft:diamond_sword"
protected_recipe_ids Protect a specific recipe by its namespace ID "mymod:special_item"

Build from source

git clone https://github.com/Annieif/random-recipes.git
cd random-recipes
./gradlew build

Artifacts are in build/libs/random-recipes-*.jar.

Screenshots

Shuffled iron axe recipe
Protected iron pickaxe (unchanged)
Shuffled oak slab recipe

Links

License

MIT

Available Versions

Random Recipes 1.0.2release
MC 1.20.1fabric
June 14, 2026

How to Install Random Recipes on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Random Recipes". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.20.1

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Random Recipes server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.

Is Random Recipes compatible with fabric?

Random Recipes officially supports fabric for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Random Recipes – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Random Recipes consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Random Recipes with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.20.1