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 "recipe" for Fluid Void Cell "ME Defective Fluid Digital Singularity Storage Cell" #3415

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 12 additions & 0 deletions src/main/java/gregtech/loaders/postload/ScrapboxDropLoader.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package gregtech.loaders.postload;

import static gregtech.api.enums.Mods.AE2FluidCraft;
import static gregtech.api.util.GTModHandler.getModItem;

import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
Expand All @@ -15,7 +18,9 @@ public class ScrapboxDropLoader implements Runnable {

@Override
public void run() {

GTLog.out.println("GTMod: (re-)adding Scrapbox Drops.");
makeAE2FCdrop();

GTModHandler.addScrapboxDrop(9.5F, new ItemStack(Items.wooden_hoe));
GTModHandler.addScrapboxDrop(2.0F, new ItemStack(Items.wooden_axe));
Expand Down Expand Up @@ -97,4 +102,11 @@ public void run() {
GTModHandler.addScrapboxDrop(0.05F, GTOreDictUnificator.get(OrePrefixes.gem, Materials.Emerald, 1L));
GTModHandler.addScrapboxDrop(0.05F, GTOreDictUnificator.get(OrePrefixes.gem, Materials.Diamond, 1L));
}

private void makeAE2FCdrop() {
if (!AE2FluidCraft.isModLoaded()) {
return;
}
GTModHandler.addScrapboxDrop(0.4F, getModItem(AE2FluidCraft.ID, "fluid_storage.singularity.defective", 1, 0));
}
}
Loading