Jump to content

java.lang.reflect.InvocationTargetException: null


Recommended Posts

I'm currently developing a very barebones Forge mod on 1.18.2.

I'm trying to make my own ore and after I added a get icon (see *) function, it suddenly doesn't work.

LOG: https://gist.github.com/TheCodingPlace/343fc4ce00a93d70408bc31aa67760a6

 

*

package com.example.gfm.setup;

import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;

public class ModSetup {

    public static final String TAB_NAME = "Generic Forge Mod";

    public static final CreativeModeTab ITEM_GROUP = new CreativeModeTab(TAB_NAME) {
        @Override
        public ItemStack makeIcon() { return new ItemStack(Items.NETHERITE_INGOT); }
    };


    public static void init(FMLCommonSetupEvent event) {

    }
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.