Repository navigation
Add operator aspect to crafting writer - #245
Merged
rubensworks merged 1 commit intoOct 11, 2026
Merged
Conversation
The writer runs the operator without inputs and crafts the recipe that it gives. The writer does not craft when the recipe is empty.
Author
|
@rubensworks Hi, just did the changes as we talked about in #76. |
Member
|
Thanks @harshverma27, looks perfect! Will publish new releases soon. |
Author
|
@rubensworks Thanks, I'll see #20 now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #76.
Changes
This PR adds a new aspect to the crafting writer: "Craft Recipe from Operator".
The aspect uses the same settings and craft logic as "Craft Recipe" (
PROP_CRAFT_RECIPE).The model uses the texture of "Craft Recipe". I did not add a new texture.
Tests
I added three game tests to
GameTestsItemsCraft:testItemsCraftChestOneOperator: the operator gives the chest recipe. The writer crafts one chest.testItemsCraftChestOneOperatorEmptyRecipe: the operator gives an empty recipe. The writer does not craft and shows no error.testItemsCraftOperatorWithInputs: the operator needs an input. The writer shows an error.To make an operator without inputs, the tests apply a recipe to the
idoperator.Validation
./gradlew buildpasses../gradlew runGameTestServerpasses all 79 required tests.