Skip to content

Commit 13bb2a0

Browse files
Fixing the Example Turbine docs page. (#3932)
1 parent 12b144c commit 13bb2a0

File tree

1 file changed

+34
-27
lines changed

1 file changed

+34
-27
lines changed

docs/content/Modpacks/Examples/Example_Turbine.md

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ Below is an example of a multiblock using the LargeTurbineMachine class for maki
1515

1616
GTCEuStartupEvents.registry('gtceu:machine', event => {
1717
event.create('hyper_gas_turbine', 'multiblock')
18-
.machine((holder) => new $LargeTurbineMachine(holder, GTValues.LuV))
18+
.machine((holder) => new $LargeTurbineMachine(holder, GTValues.LuV)) // The value shows one rotor holder tier above the recommended minimum rotor holder. The tier of rotor holder provides a boost based on the efficiency stat.
1919
.rotationState(RotationState.NON_Y_AXIS)
2020
.recipeTypes("gas_turbine")
21-
.recipeModifiers([GTRecipeModifiers.OC_NON_PERFECT_SUBTICK, GTRecipeModifiers.BATCH_MODE])
21+
.recipeModifiers([GTRecipeModifiers.OC_NON_PERFECT_SUBTICK, GTRecipeModifiers.BATCH_MODE, (machine, recipe) => GTRecipeModifiers.LargeTurbineMachine(machine, recipe)])
2222
.appearanceBlock(GTBlocks.CASING_TITANIUM_STABLE)
2323
.pattern(definition => FactoryBlockPattern.start()
24-
.aisle("BBBBBBB", "BBBCBBB", "BBBDBBB", "BBBCBBB", "BBBBBBB")
25-
.aisle("BBBCBBB", "BBCACBB", "BBCECBB", "BBCACBB", "BBBCBBB")
26-
.aisle("BBCCCBB", "BCAAACB", "BCAEACB", "BCAEACB", "BBCCCBB")
27-
.aisle("BCCCCCB", "CAAEAAC", "CEEEEEC", "CAEEEAC", "BCCFCCB")
28-
.aisle("BBCCCBB", "BCAAACB", "BCAEACB", "BCAEACB", "BBCCCBB")
29-
.aisle("BBBCBBB", "BBCACBB", "BBCECBB", "BBCACBB", "BBBCBBB")
30-
.aisle("BBBBBBB", "BBBCBBB", "BBBGBBB", "BBBCBBB", "BBBBBBB")
24+
.aisle("BBBBBBB", "BBBCBBB", "BBBDBBB", "BBBCBBB", "BBBBBBB")
25+
.aisle("BBBCBBB", "BBCACBB", "BBCFCBB", "BBCACBB", "BBBCBBB")
26+
.aisle("BBCCCBB", "BCAAACB", "BCAFACB", "BCAFACB", "BBCCCBB")
27+
.aisle("BCCCCCB", "CAAFAAC", "CFFFFFC", "CAFFFAC", "BCCECCB")
28+
.aisle("BBCCCBB", "BCAAACB", "BCAFACB", "BCAFACB", "BBCCCBB")
29+
.aisle("BBBCBBB", "BBCACBB", "BBCFCBB", "BBCACBB", "BBBCBBB")
30+
.aisle("BBBBBBB", "BBBCBBB", "BBBGBBB", "BBBCBBB", "BBBBBBB")
3131
.where("A", Predicates.blocks("minecraft:air"))
3232
.where("B", Predicates.any())
3333
.where("C", Predicates.blocks("gtceu:stainless_steel_turbine_casing")
3434
.or(Predicates.autoAbilities(definition.getRecipeTypes()))
3535
.or(Predicates.abilities(PartAbility.MAINTENANCE).setExactLimit(1)))
3636
.where("D", Predicates.ability(PartAbility.MUFFLER).setExactLimit(1))
37-
.where("F", Predicates.ability(PartAbility.ROTOR_HOLDER).setExactLimit(1))
38-
.where("E", Predicates.blocks("gtceu:stainless_steel_frame"))
37+
.where("E", Predicates.ability(PartAbility.ROTOR_HOLDER).setExactLimit(1))
38+
.where("F", Predicates.blocks("gtceu:stainless_steel_frame"))
3939
.where("G", Predicates.controller(Predicates.blocks(definition.get())))
4040
.build())
4141
.workableCasingModel("gtceu:block/casings/mechanic/machine_casing_turbine_stainless_steel",
@@ -46,26 +46,27 @@ Below is an example of a multiblock using the LargeTurbineMachine class for maki
4646
=== "Java"
4747
```java title="MultiMachines.java"
4848
public static final MultiblockMachineDefinition HYPER_GAS_TURBINE = REGISTRATE
49-
.multiblock("hyper_gas_turbine", (holder) -> new LargeTurbineMachine(holder, 4))
49+
.multiblock("hyper_gas_turbine", (holder) -> new LargeTurbineMachine(holder, GTValues.LuV, 4)) // The value shows one rotor holder tier above the recommended minimum rotor holder. The tier of rotor holder provides a boost based on the efficiency stat.
5050
.rotationState(RotationState.NON_Y_AXIS)
5151
.recipeType(GTRecipeTypes.GAS_TURBINE_FUELS)
5252
.recipeModifiers(GTRecipeModifiers.OC_NON_PERFECT_SUBTICK, GTRecipeModifiers.BATCH_MODE)
5353
.pattern(definition -> FactoryBlockPattern.start()
54-
.aisle("BCCCB", "BBCBB", "BBCBB", "BBBBB", "BBBBB")
55-
.aisle("CDDDC", "BDBDB", "BDEDB", "BBDBB", "BBBBB")
56-
.aisle("CDDDC", "CBBBC", "CEFEC", "BDDDB", "BBGBB")
57-
.aisle("CDDDC", "BDBDB", "BDEDB", "BBDBB", "BBBBB")
58-
.aisle("BCCCB", "BBHBB", "BBCBB", "BBBBB", "BBBBB")
59-
.where('B', Predicates.any())
60-
.where('C', Predicates.blocks(GTBlocks.CASING_BRONZE_BRICKS.get()).setMinGlobalLimited(10)
61-
.or(Predicates.abilities(PartAbility.STEAM_IMPORT_ITEMS).setMaxGlobalLimited(1))
62-
.or(Predicates.abilities(PartAbility.STEAM).setMaxGlobalLimited(1))
63-
.or(Predicates.abilities(PartAbility.STEAM_EXPORT_ITEMS).setMaxGlobalLimited(1)))
64-
.where('D', Predicates.blocks(GCYMBlocks.CASING_INDUSTRIAL_STEAM.get()))
65-
.where('E', Predicates.blocks(GTBlocks.BRONZE_BRICKS_HULL.get()))
66-
.where('F', Predicates.blocks(GTBlocks.FIREBOX_BRONZE.get()))
67-
.where('G', Predicates.blocks(GTBlocks.BRONZE_HULL.get()))
68-
.where('H', Predicates.controller(Predicates.blocks(definition.get())))
54+
.aisle("BBBBBBB", "BBBCBBB", "BBBDBBB", "BBBCBBB", "BBBBBBB")
55+
.aisle("BBBCBBB", "BBCACBB", "BBCECBB", "BBCACBB", "BBBCBBB")
56+
.aisle("BBCCCBB", "BCAAACB", "BCAEACB", "BCAEACB", "BBCCCBB")
57+
.aisle("BCCCCCB", "CAAEAAC", "CEEEEEC", "CAEEEAC", "BCCFCCB")
58+
.aisle("BBCCCBB", "BCAAACB", "BCAEACB", "BCAEACB", "BBCCCBB")
59+
.aisle("BBBCBBB", "BBCACBB", "BBCECBB", "BBCACBB", "BBBCBBB")
60+
.aisle("BBBBBBB", "BBBCBBB", "BBBGBBB", "BBBCBBB", "BBBBBBB")
61+
.where("A", Predicates.blocks("minecraft:air"))
62+
.where("B", Predicates.any())
63+
.where("C", Predicates.blocks("gtceu:stainless_steel_turbine_casing")
64+
.or(Predicates.autoAbilities(definition.getRecipeTypes()))
65+
.or(Predicates.abilities(PartAbility.MAINTENANCE).setExactLimit(1)))
66+
.where("D", Predicates.ability(PartAbility.MUFFLER).setExactLimit(1))
67+
.where("F", Predicates.ability(PartAbility.ROTOR_HOLDER).setExactLimit(1))
68+
.where("E", Predicates.blocks("gtceu:stainless_steel_frame"))
69+
.where("G", Predicates.controller(Predicates.blocks(definition.get())))
6970
.build())
7071
.workableCasingModel(GTCEu.id("block/casings/steam/bronze/bottom"),
7172
GTCEu.id("block/machines/compressor"))
@@ -85,3 +86,9 @@ Below is an example of a multiblock using the LargeTurbineMachine class for maki
8586

8687

8788

89+
90+
91+
92+
93+
94+

0 commit comments

Comments
 (0)