Hello,
I have the above mentioned issue. Here is my log:
[14Okt2020 21:43:49.779] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20200911.084530, --fml.mcVersion, 1.16.3, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 34.1.0, --version, MOD_DEV, --assetIndex, 1.16, --assetsDir, C:\Users\peers\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}]
[14Okt2020 21:43:49.844] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 7.0.1+78+master.e9771d8 starting: java version 1.8.0_201 by Oracle Corporation
[14Okt2020 21:43:52.625] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[14Okt2020 21:43:52.674] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.1 Source=file:/C:/Users/peers/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.8.1/3099ac85bce29d37a22d3561073d01eb99b0cf4b/mixin-0.8.1.jar Service=ModLauncher Env=CLIENT
[14Okt2020 21:43:55.110] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\peers\.gradle\caches\forge_gradle\assets, --assetIndex, 1.16, --username, Dev, --accessToken, ????????, --userProperties, {}]
[14Okt2020 21:44:10.768] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD'
[14Okt2020 21:44:10.885] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
[14Okt2020 21:44:11.237] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.2.2 build 10
[14Okt2020 21:44:18.671] [modloading-worker-0/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 34.1.0, for MC 1.16.3 with MCP 20200911.084530
[14Okt2020 21:44:18.672] [modloading-worker-0/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v34.1.0 Initialized
[14Okt2020 21:44:19.189] [Render thread/INFO] [deepaffection/]: Blocks registred.
[14Okt2020 21:44:19.204] [Render thread/INFO] [deepaffection/]: Items registred.
[14Okt2020 21:44:19.426] [Render thread/ERROR] [net.minecraft.util.Util/]: No data fixer registered for heart_entity
[14Okt2020 21:44:19.428] [Render thread/ERROR] [net.minecraft.util.Util/]: No data fixer registered for shooting_star_entity
[14Okt2020 21:44:21.967] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
[14Okt2020 21:44:22.149] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, Mod Resources
[14Okt2020 21:44:22.822] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: java.lang.reflect.InvocationTargetException
[14Okt2020 21:44:22.822] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[14Okt2020 21:44:22.822] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[14Okt2020 21:44:22.822] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[14Okt2020 21:44:22.822] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at java.lang.reflect.Method.invoke(Unknown Source)
[14Okt2020 21:44:22.822] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at peer.deepaffection.lists.PotionList.addMix(PotionList.java:28)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at peer.deepaffection.lists.PotionList.addBrewingRecipes(PotionList.java:35)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at peer.deepaffection.DeepAffection.setup(DeepAffection.java:80)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at net.minecraftforge.eventbus.EventBus.post(EventBus.java:297)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at net.minecraftforge.fml.ModContainer.lambda$null$4(ModContainer.java:112)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$5(ModContainer.java:112)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at java.util.concurrent.CompletableFuture$AsyncRun.exec(Unknown Source)
[14Okt2020 21:44:22.823] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
[14Okt2020 21:44:22.824] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
[14Okt2020 21:44:22.824] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
[14Okt2020 21:44:22.824] [Worker-Main-4/INFO] [STDERR/]: [peer.deepaffection.lists.PotionList:addMix:30]: at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
[14Okt2020 21:44:22.824] [Worker-Main-4/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]: Caused by: java.lang.NullPointerException
[14Okt2020 21:44:22.824] [Worker-Main-4/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]: at net.minecraft.potion.PotionBrewing$MixPredicate.<init>(PotionBrewing.java:222)
[14Okt2020 21:44:22.824] [Worker-Main-4/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]: at net.minecraft.potion.PotionBrewing.addMix(PotionBrewing.java:211)
[14Okt2020 21:44:22.824] [Worker-Main-4/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]: ... 19 more
[14Okt2020 21:44:22.826] [Worker-Main-4/INFO] [deepaffection/]: Setup method registred.
[14Okt2020 21:44:22.997] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[14Okt2020 21:44:23.811] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: UP_TO_DATE Current: 34.1.0 Target: null
[14Okt2020 21:44:32.567] [Worker-Main-8/INFO] [deepaffection/]: Entity render registerd.
[14Okt2020 21:44:32.575] [Worker-Main-8/INFO] [deepaffection/]: clientRegistries method registred.
[14Okt2020 21:44:33.588] [Worker-Main-6/ERROR] [net.minecraft.client.renderer.texture.AtlasTexture/]: Using missing texture, unable to load deepaffection:textures/item/nectar.png : java.io.FileNotFoundException: deepaffection:textures/item/nectar.png
[14Okt2020 21:44:33.698] [Worker-Main-6/ERROR] [net.minecraft.client.renderer.texture.AtlasTexture/]: Using missing texture, unable to load deepaffection:textures/block/bellbird.png : java.io.FileNotFoundException: deepaffection:textures/block/bellbird.png
[14Okt2020 21:44:33.749] [Worker-Main-6/ERROR] [net.minecraft.client.renderer.texture.AtlasTexture/]: Using missing texture, unable to load deepaffection:textures/item/bellbird.png : java.io.FileNotFoundException: deepaffection:textures/item/bellbird.png
[14Okt2020 21:44:39.522] [Render thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized.
[14Okt2020 21:44:39.524] [Render thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started
[14Okt2020 21:44:40.124] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
[14Okt2020 21:44:40.582] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas
[14Okt2020 21:44:40.584] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
[14Okt2020 21:44:40.594] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
[14Okt2020 21:44:40.612] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
[14Okt2020 21:44:40.625] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
[14Okt2020 21:44:40.640] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[14Okt2020 21:44:41.882] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
[14Okt2020 21:44:41.895] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
[14Okt2020 21:44:41.898] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas
[14Okt2020 21:44:42.672] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient/]: Could not authorize you against Realms server: Invalid session id
[14Okt2020 21:45:40.986] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[14Okt2020 21:45:40.988] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[14Okt2020 21:45:40.989] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[14Okt2020 21:45:40.990] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[14Okt2020 21:45:40.992] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[14Okt2020 21:45:40.996] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, main, forge-1.16.3-34.1.0_mapped_snapshot_20200514-1.16-recomp.jar
As you can see, the launcher catches an InvocationTargetException in my PotionList class, but my class looks like this:
package peer.deepaffection.lists;
import net.minecraft.entity.ai.attributes.AttributeModifier;
import net.minecraft.entity.ai.attributes.Attributes;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.potion.Effect;
import net.minecraft.potion.EffectInstance;
import net.minecraft.potion.EffectType;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionUtils;
import net.minecraft.potion.Potions;
import net.minecraftforge.common.brewing.BrewingRecipeRegistry;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import peer.deepaffection.DeepAffection;
public class PotionList {
public static Potion love_potion;
public static Effect love_effect;
public static void addBrewingRecipes() {
System.out.println("PotionList: Brewing Recipes called.");
BrewingRecipeRegistry.addRecipe(Ingredient.fromStacks(PotionUtils.addPotionToItemStack(ItemStack.EMPTY, Potions.AWKWARD)), Ingredient.fromStacks(new ItemStack(ItemList.nectar)), PotionUtils.addPotionToItemStack(ItemStack.EMPTY, PotionList.love_potion));
}
public static final DeferredRegister<Potion> POTIONS = DeferredRegister.create(ForgeRegistries.POTION_TYPES, DeepAffection.modid);
public static final DeferredRegister<Effect> EFFECTS = DeferredRegister.create(ForgeRegistries.POTIONS, DeepAffection.modid);
//Potions
public static final RegistryObject<Potion> LOVE = POTIONS.register("love", () -> new Potion(new EffectInstance(PotionList.love_effect, 3600)));
//Effects
public static final RegistryObject<Effect> LOVE_EFFECT = EFFECTS.register("love", () -> new ModEffect(EffectType.BENEFICIAL, 0xc98fff).addAttributesModifier(Attributes.field_233821_d_, "55FCED67-E92A-486E-9800-B47F202C4386", (double)0.34F, AttributeModifier.Operation.MULTIPLY_TOTAL));
public static void init (){
EFFECTS.register(FMLJavaModLoadingContext.get().getModEventBus());
POTIONS.register(FMLJavaModLoadingContext.get().getModEventBus());
PotionList.addBrewingRecipes();
}
public static class ModEffect extends Effect{
public ModEffect(EffectType typeIn, int liquidColorIn) {
super(typeIn, liquidColorIn);
}
}
}
Yes, I'm pretty sure the register part isn't right yet, but the main problem is that the code that causes the exception isn't even there anymore. I deleted it a while ago. To be precise: Since this exception first occured, it seems like nothing I'm coding get's added to the mod. I already tried refreshing and gradlew Eclipse but nothing works. Also, everytime I want to execute the launcher, Eclipse tells me that there are errors existing in the project but there are no errors anywhere.
I would appreciate your help and thank you in advance.
Stay healthy