Skip to content

Commit b42db5e

Browse files
Merge pull request #27 from DancingSnow0517/update_ae2
update ae2 to 19.0.26, fix crash with newest ae2 version
2 parents bf4dde8 + 452e3fa commit b42db5e

File tree

7 files changed

+66
-32
lines changed

7 files changed

+66
-32
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
build/
22
*.ipr
3+
run/
34
runs/
45
*.iws
56
out/

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ mod_authors= DancingSnow
1212
mod_description = A mod added more ae cells and so on.
1313
mod_license = MIT
1414
mod_url = https://github.com/GregTech-Exploring-Pioneer/BiggerAE2
15-
mod_version = 1.4.4
15+
mod_version = 1.4.5
1616

1717
maven_group = cn.dancingsnow.bigger_ae2

gradle/scripts/dependencies.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies {
2626
// JEI
2727
jeiCompileOnly(forge.jei.common.api) { transitive = false }
2828
jeiCompileOnly(forge.jei.forge.api) { transitive = false }
29-
jeiCompileOnly(forge.jei.forge.impl) { transitive = false }
29+
jeiImplementation(forge.jei.forge.impl) { transitive = false }
3030

3131
// REI
3232
reiCompileOnlyApi(forge.rei.plugin)
@@ -42,11 +42,11 @@ dependencies {
4242
// AE2
4343
// maven haven't uploaded.
4444
// ae2Implementation(forge.ae2) { transitive = false }
45-
ae2Implementation("curse.maven:ae2-223794:5662490")
45+
ae2Implementation("curse.maven:applied-energistics-2-223794:5979641")
4646

4747
// applied flux
48-
implementation("curse.maven:glodium-957920:5614731")
49-
implementation("curse.maven:applied-flux-965012:5639620")
48+
implementation("curse.maven:glodium-957920:5821676")
49+
implementation("curse.maven:applied-flux-965012:5946853")
5050

5151
// lombok
5252
compileOnly 'org.projectlombok:lombok:1.18.30'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"type": "ae2:storage_cell_disassembly",
3+
"cell": "bigger_ae2:quantum_fluid_storage_cell",
4+
"cell_disassembly_items": [
5+
{
6+
"count": 1,
7+
"id": "bigger_ae2:quantum_cell_component"
8+
},
9+
{
10+
"count": 1,
11+
"id": "bigger_ae2:advanced_fluid_cell_housing"
12+
}
13+
]
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"type": "ae2:storage_cell_disassembly",
3+
"cell": "bigger_ae2:quantum_item_storage_cell",
4+
"cell_disassembly_items": [
5+
{
6+
"count": 1,
7+
"id": "bigger_ae2:quantum_cell_component"
8+
},
9+
{
10+
"count": 1,
11+
"id": "bigger_ae2:advanced_item_cell_housing"
12+
}
13+
]
14+
}

src/main/java/cn/dancingsnow/bigger_ae2/init/ModItems.java

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import appeng.items.materials.MaterialItem;
99
import appeng.items.materials.StorageComponentItem;
1010
import appeng.items.storage.BasicStorageCell;
11+
import appeng.recipes.game.StorageCellDisassemblyRecipe;
1112

1213
import net.minecraft.data.recipes.RecipeCategory;
1314
import net.minecraft.data.recipes.ShapedRecipeBuilder;
@@ -17,6 +18,8 @@
1718
import com.tterrag.registrate.providers.RegistrateRecipeProvider;
1819
import com.tterrag.registrate.util.entry.ItemEntry;
1920

21+
import java.util.List;
22+
2023
import static cn.dancingsnow.bigger_ae2.BiggerAE2Mod.REGISTRATE;
2124

2225
public class ModItems {
@@ -65,38 +68,40 @@ public class ModItems {
6568
.item(
6669
"quantum_item_storage_cell",
6770
p -> new BasicStorageCell(
68-
p.stacksTo(1),
69-
QUANTUM_CELL_COMPONENT,
70-
ADVANCED_ITEM_CELL_HOUSING,
71-
20,
72-
(1 << 28 - 1) / 1024,
73-
65536,
74-
1,
75-
AEKeyType.items()))
76-
.recipe((ctx, provider) -> ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, ctx.get())
77-
.requires(QUANTUM_CELL_COMPONENT)
78-
.requires(ADVANCED_ITEM_CELL_HOUSING)
79-
.unlockedBy("has_item", RegistrateRecipeProvider.has(ADVANCED_ITEM_CELL_HOUSING))
80-
.save(provider))
71+
p.stacksTo(1), 20, (1 << 28 - 1) / 1024, 65536, 1, AEKeyType.items()))
72+
.recipe((ctx, provider) -> {
73+
ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, ctx.get())
74+
.requires(QUANTUM_CELL_COMPONENT)
75+
.requires(ADVANCED_ITEM_CELL_HOUSING)
76+
.unlockedBy("has_item", RegistrateRecipeProvider.has(ADVANCED_ITEM_CELL_HOUSING))
77+
.save(provider);
78+
provider.accept(
79+
ctx.getId().withPrefix("cell_upgrade/"),
80+
new StorageCellDisassemblyRecipe(
81+
ctx.get(),
82+
List.of(QUANTUM_CELL_COMPONENT.asStack(1), ADVANCED_ITEM_CELL_HOUSING.asStack(1))),
83+
null);
84+
})
8185
.register();
8286

8387
public static final ItemEntry<BasicStorageCell> QUANTUM_FLUID_CELL = REGISTRATE
8488
.item(
8589
"quantum_fluid_storage_cell",
8690
p -> new BasicStorageCell(
87-
p.stacksTo(1),
88-
QUANTUM_CELL_COMPONENT,
89-
ADVANCED_FLUID_CELL_HOUSING,
90-
20,
91-
(1 << 28 - 1) / 1024,
92-
65536,
93-
1,
94-
AEKeyType.fluids()))
95-
.recipe((ctx, provider) -> ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, ctx.get())
96-
.requires(QUANTUM_CELL_COMPONENT)
97-
.requires(ADVANCED_FLUID_CELL_HOUSING)
98-
.unlockedBy("has_item", RegistrateRecipeProvider.has(ADVANCED_FLUID_CELL_HOUSING))
99-
.save(provider))
91+
p.stacksTo(1), 20, (1 << 28 - 1) / 1024, 65536, 1, AEKeyType.fluids()))
92+
.recipe((ctx, provider) -> {
93+
ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, ctx.get())
94+
.requires(QUANTUM_CELL_COMPONENT)
95+
.requires(ADVANCED_FLUID_CELL_HOUSING)
96+
.unlockedBy("has_item", RegistrateRecipeProvider.has(ADVANCED_FLUID_CELL_HOUSING))
97+
.save(provider);
98+
provider.accept(
99+
ctx.getId().withPrefix("cell_upgrade/"),
100+
new StorageCellDisassemblyRecipe(
101+
ctx.get(),
102+
List.of(QUANTUM_CELL_COMPONENT.asStack(1), ADVANCED_FLUID_CELL_HOUSING.asStack(1))),
103+
null);
104+
})
100105
.register();
101106

102107
public static final ItemEntry<MaterialItem> SINGULARITY_CELL_COMPONENT = REGISTRATE

src/main/resources/META-INF/neoforge.mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ license="${mod_license}"
3434
[[dependencies."${mod_id}"]]
3535
modId="ae2"
3636
type="required"
37-
versionRange="[19.0.0,)"
37+
versionRange="[19.0.26,)"
3838
ordering="AFTER"
3939
side="BOTH"
4040
[dependencies."${mod_id}".mc-publish]

0 commit comments

Comments
 (0)