Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC committed Dec 31, 2024
1 parent d6d65f9 commit 139f22b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/content/Development/General-Topics/Ore-Generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ contents, etc. are not influenced by previous queries to the random generator.
It is completely and exclusively seeded from the world's seed, as well as the chunk position.

For the random ore vein offset, we also include the vein's world generation layer in the random seed.
This may need to include an additional craftingComponent in the future, in case we add support for multiple veins per chunk and worldgen-layer.
This may need to include an additional component in the future, in case we add support for multiple veins per chunk and worldgen-layer.


## Vein Generation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ title: "Modifying Crafting Components"

With KubeJS it is possible to modify the predefined components of existing GTCEu Modern machine crafting recipes.
You can replace singular entries, or do bulk modification of components.
-1 is defined as a fallback value if no other entries exist. if you modify in bulk, you **MUST** insert one if the craftingComponent expects it to exist. otherwise the game may crash when loading recipes. Other numbers correspond to tier indices. for example: `3 == GTValues.HV`
-1 is defined as a fallback value if no other entries exist. if you modify in bulk, you **MUST** insert one if the component expects it to exist. otherwise the game may crash when loading recipes. Other numbers correspond to tier indices. for example: `3 == GTValues.HV`

```js title="modification.js"
const Map = Java.loadClass("java.util.Map")
Expand All @@ -34,7 +34,7 @@ GTCEuServerEvents.craftingComponents(event => {
1. Replaces the MV circuit tag in all GT machine crafting recipes with a single block of `minecraft:dirt`.
2. Modifies all pumps in GT machine crafting recipes by replacing the pump with a robot arm, and reinserts the FALLBACK entry.
3. Replaces the EV casing with the `#minecraft:logs` tag. note the lack of `#` at the beginning of the tag!
4. Adds a new entry to the plate craftingComponent for UEV with prefix `plate` and material `gtceu:infinity`.
4. Adds a new entry to the plate component for UEV with prefix `plate` and material `gtceu:infinity`.

!!! tip "Bulk Callbacks"

Expand Down Expand Up @@ -91,9 +91,9 @@ GTCEuServerEvents.craftingComponents(event => {
})
```

1. Creates a new crafting craftingComponent with item stack entries.
2. Creates a new crafting craftingComponent with item tag entries. note the lack of `#` at the beginning of the tag!
3. Creates a new crafting craftingComponent with UnificationEntry entries.
1. Creates a new crafting component with item stack entries.
2. Creates a new crafting component with item tag entries. note the lack of `#` at the beginning of the tag!
3. Creates a new crafting component with UnificationEntry entries.


### Builtin Crafting Components
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/gregtechceu/gtceu/common/data/GTRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public class GTRecipes {
BlastProperty.GasTier.class);

static {
EBF_GASES.put(BlastProperty.GasTier.LOW, FluidIngredient.of(1000, GTMaterials.Nitrogen.getFluid()));
EBF_GASES.put(BlastProperty.GasTier.MID, FluidIngredient.of(100, GTMaterials.Helium.getFluid()));
EBF_GASES.put(BlastProperty.GasTier.HIGH, FluidIngredient.of(50, GTMaterials.Argon.getFluid()));
EBF_GASES.put(BlastProperty.GasTier.HIGHER, FluidIngredient.of(25, GTMaterials.Neon.getFluid()));
EBF_GASES.put(BlastProperty.GasTier.HIGHEST, FluidIngredient.of(10, GTMaterials.Krypton.getFluid()));
EBF_GASES.put(BlastProperty.GasTier.LOW, FluidIngredient.of(GTMaterials.Nitrogen.getFluidTag(), 1000));
EBF_GASES.put(BlastProperty.GasTier.MID, FluidIngredient.of(GTMaterials.Helium.getFluidTag(), 100));
EBF_GASES.put(BlastProperty.GasTier.HIGH, FluidIngredient.of(GTMaterials.Argon.getFluidTag(), 50));
EBF_GASES.put(BlastProperty.GasTier.HIGHER, FluidIngredient.of(GTMaterials.Neon.getFluidTag(), 25));
EBF_GASES.put(BlastProperty.GasTier.HIGHEST, FluidIngredient.of(GTMaterials.Krypton.getFluidTag(), 10));
}

public static final Set<ResourceLocation> RECIPE_FILTERS = new ObjectOpenHashSet<>();
Expand Down

0 comments on commit 139f22b

Please sign in to comment.