-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Circuit Factory added and some recipes renamed some things
- Loading branch information
1 parent
c16913b
commit aae288b
Showing
16 changed files
with
151 additions
and
26 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
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
6 changes: 6 additions & 0 deletions
6
src/generated/resources/assets/compactmachines/models/block/pcb_factory_casing.json
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,6 @@ | ||
{ | ||
"parent": "minecraft:block/cube_all", | ||
"textures": { | ||
"all": "compactmachines:block/casings/solid/pcb_factory_casing" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/compactmachines/models/item/pcb_factory_casing.json
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,3 @@ | ||
{ | ||
"parent": "compactmachines:block/pcb_factory_casing" | ||
} |
3 changes: 2 additions & 1 deletion
3
src/generated/resources/data/forge/tags/blocks/mineable/wrench.json
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"values": [ | ||
"compactmachines:compact_chemical_reactor_casing", | ||
"compactmachines:pcb_factory_casing" | ||
"compactmachines:pcb_factory_casing", | ||
"compactmachines:circuit_factory_casing" | ||
] | ||
} |
3 changes: 2 additions & 1 deletion
3
src/generated/resources/data/minecraft/tags/blocks/mineable/pickaxe.json
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"values": [ | ||
"compactmachines:compact_chemical_reactor_casing", | ||
"compactmachines:pcb_factory_casing" | ||
"compactmachines:pcb_factory_casing", | ||
"compactmachines:circuit_factory_casing" | ||
] | ||
} |
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
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
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
17 changes: 17 additions & 0 deletions
17
src/main/java/com/stevee/CompactMachines/data/lang/GuiLang.java
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,17 @@ | ||
package com.stevee.CompactMachines.data.lang; | ||
|
||
import com.gregtechceu.gtceu.data.lang.LangHandler; | ||
import com.tterrag.registrate.providers.RegistrateLangProvider; | ||
|
||
public class GuiLang { | ||
|
||
|
||
public static void init(RegistrateLangProvider provider) { | ||
initGuiLang(provider); | ||
} | ||
|
||
private static void initGuiLang(RegistrateLangProvider provider) { | ||
LangHandler.replace(provider, "compactmachines.pcb_factory", "PCB Factory V1.01a1"); | ||
} | ||
|
||
} |
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
66 changes: 66 additions & 0 deletions
66
src/main/java/com/stevee/CompactMachines/data/recipes/misc/CircuitFactory.java
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,66 @@ | ||
package com.stevee.CompactMachines.data.recipes.misc; | ||
|
||
import static com.gregtechceu.gtceu.common.data.GTItems.*; | ||
import static com.gregtechceu.gtceu.api.GTValues.*; | ||
import static com.gregtechceu.gtceu.api.data.tag.TagPrefix.*; | ||
import static com.gregtechceu.gtceu.common.data.GTMaterials.*; | ||
import static com.gregtechceu.gtceu.data.recipe.CustomTags.*; | ||
|
||
import com.gregtechceu.gtceu.api.data.tag.TagPrefix; | ||
import net.minecraft.data.recipes.FinishedRecipe; | ||
|
||
import java.util.function.Consumer; | ||
|
||
import static com.stevee.CompactMachines.common.data.CMRecipeTypes.Circuit_Factory; | ||
|
||
public class CircuitFactory { | ||
|
||
public static void init(Consumer<FinishedRecipe> provider) { | ||
|
||
Circuit_Factory.recipeBuilder("microprocessor") | ||
.inputItems(PLASTIC_CIRCUIT_BOARD, 1) | ||
.inputItems(CENTRAL_PROCESSING_UNIT, 1) | ||
.inputItems(RESISTORS, 2) | ||
.inputItems(CAPACITORS, 2) | ||
.inputItems(TRANSISTORS, 2) | ||
.inputFluids(SolderingAlloy.getFluid(36)) | ||
.outputItems(PROCESSOR_MV, 2) | ||
.duration(200).EUt(VA[MV]).save(provider); | ||
|
||
Circuit_Factory.recipeBuilder("microprocessor_assembly") | ||
.inputItems(PLASTIC_CIRCUIT_BOARD, 1) | ||
.inputItems(PROCESSOR_MV, 1) | ||
.inputItems(INDUCTORS, 2) | ||
.inputItems(TRANSISTORS, 4) | ||
.inputItems(RANDOM_ACCESS_MEMORY, 2) | ||
.inputItems(wireFine, RedAlloy, 4) | ||
.inputFluids(SolderingAlloy.getFluid(72)) | ||
.outputItems(PROCESSOR_ASSEMBLY_HV) | ||
.duration(200).EUt(VA[MV]).save(provider); | ||
|
||
Circuit_Factory.recipeBuilder("microprocessor_supercomputer") | ||
.inputItems(PLASTIC_CIRCUIT_BOARD, 1) | ||
.inputItems(PROCESSOR_ASSEMBLY_HV, 1) | ||
.inputItems(DIODES, 2) | ||
.inputItems(RANDOM_ACCESS_MEMORY, 2) | ||
.inputItems(wireFine, Gold, 8) | ||
.inputItems(bolt, BlueAlloy, 8) | ||
.inputFluids(SolderingAlloy.getFluid(144)) | ||
.outputItems(WORKSTATION_EV, 1) | ||
.duration(200).EUt(VA[MV]).save(provider); | ||
|
||
Circuit_Factory.recipeBuilder("microprocessor_mainframe") | ||
.inputItems(frameGt, Aluminium, 1) | ||
.inputItems(WORKSTATION_EV, 1) | ||
.inputItems(ADVANCED_SMD_INDUCTOR, 1) | ||
.inputItems(ADVANCED_SMD_CAPACITOR, 2) | ||
.inputItems(RANDOM_ACCESS_MEMORY, 8) | ||
.inputItems(wireGtSingle, AnnealedCopper, 8) | ||
.inputFluids(SolderingAlloy.getFluid(288)) | ||
.outputItems(MAINFRAME_IV, 1) | ||
.duration(200).EUt(VA[HV]).save(provider); | ||
|
||
|
||
} | ||
|
||
} |
Binary file added
BIN
+204 Bytes
.../assets/compactmachines/textures/block/casings/solid/circuit_factory_casing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.