Skip to content

Commit

Permalink
Add ME output hatches+singularity cell recipe (#1090)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: Maya <10861407+serenibyss@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 14, 2024
1 parent 51763a9 commit 22e86bb
Showing 1 changed file with 27 additions and 16 deletions.
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

0 comments on commit 22e86bb

Please sign in to comment.