So I'm somewhat new to forge mod developing. I have watched some guides on how to create Items, everything works but the RegistryEvent.Register doesn't work. This is the error Code I get from the RegistryEvent.Register: RegistryEvent.Register cannot be resolved to a type.
I am using the forge 1.14 mdk
Dont know what that means, would be nice if someone could explain that to me.
@Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD)
public static class RegistryEvent{
@SubscribeEvent
public static void registerItems(final RegistryEvent.Register<Item> event){
ItemList.TestItem = new Item(new Item.Properties().group(ItemGroup.TOOLS).addToolType(ToolType.PICKAXE, 15)).setRegistryName(new ResourceLocation(modid, "Pickaxe"));
Logger.info("Items loaded");
}
}
0
So I'm somewhat new to forge mod developing. I have watched some guides on how to create Items, everything works but the RegistryEvent.Register doesn't work. This is the error Code I get from the RegistryEvent.Register: RegistryEvent.Register cannot be resolved to a type.
I am using the forge 1.14 mdk
Dont know what that means, would be nice if someone could explain that to me.