Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ME output hatches+singularity cell recipe #1090

Merged
merged 4 commits into from
Dec 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2098,24 +2098,14 @@ public void run() {

for (int i = 0; i <= 7; i++) {
ItemStack modifiedHatch = ItemList.Hatch_Output_ME.get(1L);
NBTTagCompound hatchNBT = modifiedHatch.getTagCompound();
if (hatchNBT != null) {
hatchNBT.setLong("baseCapacity", capacities[i]);
} else {
hatchNBT = new NBTTagCompound();
hatchNBT.setLong("baseCapacity", capacities[i] * 256);
modifiedHatch.setTagCompound(hatchNBT);
}
NBTTagCompound hatchNBT = new NBTTagCompound();
hatchNBT.setLong("baseCapacity", capacities[i] * 256);
modifiedHatch.setTagCompound(hatchNBT);

ItemStack modifiedBus = ItemList.Hatch_Output_Bus_ME.get(1L);
NBTTagCompound busNBT = modifiedBus.getTagCompound();
if (busNBT != null) {
busNBT.setLong("baseCapacity", capacities[i]);
} else {
busNBT = new NBTTagCompound();
busNBT.setLong("baseCapacity", capacities[i]);
modifiedBus.setTagCompound(busNBT);
}
NBTTagCompound busNBT = new NBTTagCompound();
busNBT.setLong("baseCapacity", capacities[i]);
modifiedBus.setTagCompound(busNBT);

GTModHandler.addShapelessCraftingRecipe(
modifiedHatch,
Expand All @@ -2124,6 +2114,27 @@ public void run() {
modifiedBus,
new Object[] { ItemList.Hatch_Output_Bus_ME.get(1L), itemComponents[i] });
}
final ItemStack SINGULARITY = GTModHandler
.getModItem(AppliedEnergistics2.ID, "item.ItemExtremeStorageCell.Singularity", 1);
final ItemStack FLUID_SINGULARITY = GTModHandler
.getModItem(AE2FluidCraft.ID, "fluid_storage.singularity", 1, 0);

ItemStack modifiedHatch = ItemList.Hatch_Output_ME.get(1L);
NBTTagCompound hatchNBT = new NBTTagCompound();
hatchNBT.setLong("baseCapacity", Long.MAX_VALUE);
modifiedHatch.setTagCompound(hatchNBT);

ItemStack modifiedBus = ItemList.Hatch_Output_Bus_ME.get(1L);
NBTTagCompound busNBT = new NBTTagCompound();
busNBT.setLong("baseCapacity", Long.MAX_VALUE);
modifiedBus.setTagCompound(busNBT);

GTModHandler.addShapelessCraftingRecipe(
modifiedBus,
new Object[] { ItemList.Hatch_Output_Bus_ME.get(1L), SINGULARITY });
GTModHandler.addShapelessCraftingRecipe(
modifiedHatch,
new Object[] { ItemList.Hatch_Output_ME.get(1L), FLUID_SINGULARITY });

// Pre-add planet block to EOH controller
for (String dimAbbreviation : DimensionHelper.DimNameDisplayed) {
Expand Down
Loading