Me Bridge Ae2 Pattern Creation #791
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PLEASE READ THE GUIDELINES BEFORE MAKING A CONTRIBUTION
The commit message are well described
Docs have been added / updated (for features or maybe bugs which were noted). If not, please update the needed documentation here. Feel free to remove this check if you don't need it
Not yet since some changes might be required
All changes have fully been tested
A new feature allowing one to create ae2 patterns using the me_bridge.
Only works if the connected me system has a pattern encoder.
Following new lua functions are added:
createCraftingPattern(resourceLocationString, allowSubstitutesBoolean, allowFluidSubstitutesBoolean)
creates all crafting patterns resulting in an item whose resourceLocation matches the given resourceLocationString (regex)
createSmeltingPattern(resourceLocationString)
creates all smelting patterns resulting in an item whose resourceLocation matches the given resourceLocationString (regex)
createBlastingPattern(resourceLocationString)
same as smelting, but for all blasting recipes
createSmokingPattern(resourceLocationString)
same as smelting, but for all smoking recipes
createSmithingPattern(resourceLocationString, allowSubstitutesBoolean)
creates all smithing patterns resulting in an item whose resourceLocation matches the given resourceLocationString (regex)
does whoever currently ignore trim patterns
also this function requires reflection to obtain the inputs of the smithingRecipe
createStonecuttingPattern(resourceLocationString, allowSubstitutesBoolean)
creates all stonecutting patterns resulting in an item whose resourceLocation matches the given resourceLocationString (regex)
and then one function that works a little differently
creates a processing pattern that takes the inputs specified in the inputs list and returns the outputs (the first output element will be considered as primary output)
parameter format:
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their scripts due to this PR?)
No, only new functions.
Other information: