-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: update coil material function * docs: update recipe modifiers & PARALLEL_HATCH usage * docs: add note on bedrock ores now being up to packdevs
- Loading branch information
Showing
3 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
title: "Version 1.2.1" | ||
--- | ||
|
||
|
||
# Updating from `1.2.0` to `1.2.1` | ||
|
||
|
||
## Custom Coils | ||
|
||
The `coilMaterial` function now uses a supplier instead of taking a material directly. | ||
|
||
```js | ||
// Before: | ||
.coilMaterial(GTMaterials.get('infinity')) | ||
|
||
// After: | ||
.coilMaterial(() => GTMaterials.get('infinity')) | ||
``` | ||
|
||
|
||
## Recipe Modifiers | ||
|
||
If any of your machines had a custom recipe modifier, its syntax has changed slightly. | ||
|
||
More than one recipe modifier can now be applied, making more complex chains of modifiers easier to declare. | ||
In particular, multiblocks supporting parallel hatches now need to be declared differently: | ||
|
||
```js | ||
// Before: | ||
.recipeModifier(GTRecipeModifiers.PARALLEL_HATCH.apply(OverclockingLogic.PERFECT_OVERCLOCK, GTRecipeModifiers.ELECTRIC_OVERCLOCK)) | ||
|
||
// After: | ||
.recipeModifiers(GTRecipeModifiers.PARALLEL_HATCH, GTRecipeModifiers.ELECTRIC_OVERCLOCK.apply(OverclockingLogic.PERFECT_OVERCLOCK)) | ||
``` | ||
|
||
|
||
## Bedrock Ores | ||
|
||
Bedrock ore veins are no longer automatically generated. | ||
They are now entirely up to modpack developers to define, and offer more flexibility than the previous system. | ||
|
||
|
||
```js | ||
GTCEuServerEvents.oreVeins(event => { | ||
event.add('kubejs:my_custom_bedrock_vein', vein => { | ||
// ... | ||
}) | ||
event.modify('kubejs:other_custom_vein', vein => { | ||
// ... | ||
}) | ||
event.remove('kubejs:other_custom_vein') | ||
}) | ||
``` | ||
|
||
The documentation for how to use the add and modify events will follow soon. | ||
For now, please reference the [`BedrockOreDefinition.Builder`](https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/main/java/com/gregtechceu/gtceu/api/data/worldgen/bedrockore/BedrockOreDefinition.java#L117) class in our source code. | ||
|
This file contains 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
This file contains 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