diff --git a/docs/Modpacks/Changes/v1.2.1.md b/docs/Modpacks/Changes/v1.2.1.md new file mode 100644 index 0000000..3831ff0 --- /dev/null +++ b/docs/Modpacks/Changes/v1.2.1.md @@ -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. + diff --git a/docs/Modpacks/Examples/Ore-Processing-Plant.md b/docs/Modpacks/Examples/Ore-Processing-Plant.md index a5793ae..c5f941d 100644 --- a/docs/Modpacks/Examples/Ore-Processing-Plant.md +++ b/docs/Modpacks/Examples/Ore-Processing-Plant.md @@ -26,7 +26,7 @@ GTCEuStartupEvents.registry('gtceu:machine', event => { event.create('ore_processing_plant', 'multiblock') .rotationState(RotationState.NON_Y_AXIS) .recipeType('ore_processing_plant') - .recipeModifier(GTRecipeModifiers.PARALLEL_HATCH.apply(OverclockingLogic.PERFECT_OVERCLOCK, GTRecipeModifiers.ELECTRIC_OVERCLOCK)) + .recipeModifiers(GTRecipeModifiers.PARALLEL_HATCH, GTRecipeModifiers.ELECTRIC_OVERCLOCK.apply(OverclockingLogic.PERFECT_OVERCLOCK)) .appearanceBlock(GTBlocks.CASING_TUNGSTENSTEEL_ROBUST) .pattern(definition => FactoryBlockPattern.start() .aisle(' AAA ', ' FFF ', ' FFF ', ' F ', ' ', ' ', ' ') diff --git a/docs/Modpacks/Other-Topics/Custom-Coils.md b/docs/Modpacks/Other-Topics/Custom-Coils.md index 6df2fcc..36308e4 100644 --- a/docs/Modpacks/Other-Topics/Custom-Coils.md +++ b/docs/Modpacks/Other-Topics/Custom-Coils.md @@ -12,7 +12,7 @@ StartupEvents.registry('block', event => { .level(0) .energyDiscount(1) // (1) .tier(10) - .coilMaterial(GTMaterials.get('infinity')) + .coilMaterial(() => GTMaterials.get('infinity')) .texture('kubejs:block/example_block') .hardness(5) .requiresTool(true)