Skip to content

Allow multistep recipes in Java Edition and make the Bedrock Edition search more advanced.#101

Open
simon-glitch wants to merge 20 commits intomc-wiki:mainfrom
simon-glitch:main
Open

Allow multistep recipes in Java Edition and make the Bedrock Edition search more advanced.#101
simon-glitch wants to merge 20 commits intomc-wiki:mainfrom
simon-glitch:main

Conversation

@simon-glitch
Copy link
Contributor

@simon-glitch simon-glitch commented Nov 16, 2025

This also improves the algorithm for finding a recipe for a given target color (the one used in /src/tools/armorColor/worker.ts).

Problem: I don't know exactly what the UI should look like.

simon-glitch and others added 13 commits November 14, 2025 10:46
… Entries.g_recipe since that makes things simpler; make colorToRecipeJava actually check for 4 recipes and then use the best one;
git ignore update is important bc i've added a workspace here
…aking it larger might be helpful; i doubt so though
…l server can handle way bigger numbers; feel free to change these for your system or whatever tho since we still need to sort out what the UI will look like;
this way it will do as big of a search as it can;
@simon-glitch
Copy link
Contributor Author

All of these notes relate to functions in /src/utils/color/index.ts.

Okay, so some notes. search_je has a few magic numbers:

  • mix_u.dyemax_limit = 8;
  • mix_u.dyec_limit = 16;
  • mix_u.craftc_limit = 4;
    This means search for recipes in Java Edition using 1 to 8 dyes per craft, up to 16 dyes total, and up to 4 crafts total.

Also, search_be_filler is optional. So you could remove the call to it in search_be. It simply adds more Bedrock Edition recipes.

  • There is a variable called splits which determines how many recipes are checked per color in search_be_filler. Making the numbers in splits smaller will make it take less time. And making them bigger will make it take more time but discover more recipes.

Finally, in class MixU_BE, there is this line:

  • max_dyes: number = 6;
    This tells the server to do a search for all 1 to 6 dye recipes in Bedrock Edition. This could probably be expanded to 7 or 8. 7 literally takes 16 times as long to search, and 8 literally takes 256 times as long.

…file; and also make it so search_be_filler only searches for a few colors (mostly ones that it can probably actually get);
…thers spots in the code; reverse black to white colors, since the app uses them in the opposite order; also, the more complex recipes seem to just ''not'' get used;
…; it should not give better results without compromising much on speed;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant