You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+33-2Lines changed: 33 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,40 @@ Once you're happy, commit these changes and make a pull request for us to review
26
26
If you come back to work on the docs, you can use a codespace again. You might need to `pull` to bring your codespace up to date, which you can do by pressing this button in the `Source Control` tab.
To find an updated list of all the methods for models, look at [MachineBuilder.java](https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/main/java/com/gregtechceu/gtceu/api/registry/registrate/MachineBuilder.java) for singleblocks, and [MultiblockMachineBuilder.java](https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/main/java/com/gregtechceu/gtceu/api/registry/registrate/MultiblockMachineBuilder.java) for multiblocks. Most methods have kept a similar name, replacing `renderer` with `model`.
- has overridden base textures when part of a formed structure (fluid hatch coloring for say an EBF),
12
+
- doesn't use any of the builtin model methods that set it,
13
+
14
+
in the MachineDefinition, you need to add `.modelProperty(GTMachineModelProperties.IS_FORMED, false)`
15
+
16
+
## Ranged inputs/outputs
17
+
In recipes, you can now use:
18
+
-`.itemInputsRanged(..., min, max)`
19
+
-`.itemOutputssRanged(..., min, max)`
20
+
-`.fluidInputsRanged(..., min, max)`
21
+
-`.fluidOutputsRanged(..., min, max)`
22
+
23
+
Where the inputs or outputs will be rolled inclusively from min to max.
24
+
25
+
## Rock breaker conditions
26
+
Previously, rock breaker recipes used the `addData("fluidA", ...)` methods.
27
+
28
+
Now, they work by AdjacentFluidConditions, added with the `adjacentFluid(Fluid...)` methods. See [our other condition builder methods](https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/main/java/com/gregtechceu/gtceu/integration/kjs/recipe/GTRecipeSchema.java#L894).
29
+
30
+
## Recipe Conditions
31
+
We have moved away from the .serialize, .deserialize, .toNetwork and .fromNetwork calls on the RecipeCondition, and we now exclusively use the codecs registered in GTRecipeConditions.
When adding rock breaker recipes you will need to manually define the fluids the rock breaker will use.
183
-
(might change in the future)
181
+
Rock breaker recipes use AdjacentFluidConditions.
182
+
183
+
To add a condition, you can use the `adjacentFluid(Fluid...)` methods, see [our other condition builder methods](https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/main/java/com/gregtechceu/gtceu/integration/kjs/recipe/GTRecipeSchema.java#L894).
0 commit comments