Your main mod file did not compile correctly.

Published by Barash08 on
Status
Fixed
Issue description

I am making a mod, but whenever I try to start it says this "Your main mod file did not compile correctly". Can you help me, please? Also, I hit the regenerate code button and it regenerated the code but still had the same error. I have attached a picture of the error below.

 

~Thanks

Barash08.

Issue comments

here is the code

 

C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfat.java:8: error: cannot find symbol
    public static CreativeTabs tab = new CreativeTabs("tabminecrfat") {
                  ^
  symbol:   class CreativeTabs
  location: class MCreatorMinecrfat
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:9: error: cannot find symbol
    public static final Block block = null;
                        ^
  symbol:   class Block
  location: class MCreatorMinecrfatCube
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:23: error: cannot find symbol
    public void registerModels(ModelRegistryEvent event) {
                               ^
  symbol:   class ModelRegistryEvent
  location: class MCreatorMinecrfatCube
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:29: error: cannot find symbol
    public void generateWorld(Random random, int chunkX, int chunkZ, World world, int dimID, IChunkGenerator cg, IChunkProvider cp) {
                                                                     ^
  symbol:   class World
  location: class MCreatorMinecrfatCube
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:29: error: cannot find symbol
    public void generateWorld(Random random, int chunkX, int chunkZ, World world, int dimID, IChunkGenerator cg, IChunkProvider cp) {
                                                                                             ^
  symbol:   class IChunkGenerator
  location: class MCreatorMinecrfatCube
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:29: error: cannot find symbol
    public void generateWorld(Random random, int chunkX, int chunkZ, World world, int dimID, IChunkGenerator cg, IChunkProvider cp) {
                                                                                                                 ^
  symbol:   class IChunkProvider
  location: class MCreatorMinecrfatCube
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:51: error: cannot find symbol
    public static class BlockCustom extends BlockFalling {
                                            ^
  symbol:   class BlockFalling
  location: class MCreatorMinecrfatCube
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:67: error: cannot find symbol
        public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
                                                     ^
  symbol:   class IBlockState
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:67: error: cannot find symbol
        public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
                                                                             ^
  symbol:   class IBlockAccess
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:67: error: cannot find symbol
        public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
                                                                                                   ^
  symbol:   class BlockPos
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:67: error: cannot find symbol
        public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos) {
               ^
  symbol:   class AxisAlignedBB
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:72: error: cannot find symbol
        public boolean isPassable(IBlockAccess worldIn, BlockPos pos) {
                                  ^
  symbol:   class IBlockAccess
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:72: error: cannot find symbol
        public boolean isPassable(IBlockAccess worldIn, BlockPos pos) {
                                                        ^
  symbol:   class BlockPos
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:77: error: cannot find symbol
        public boolean isFullCube(IBlockState state) {
                                  ^
  symbol:   class IBlockState
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:82: error: cannot find symbol
        public boolean isBeaconBase(IBlockAccess worldObj, BlockPos pos, BlockPos beacon) {
                                    ^
  symbol:   class IBlockAccess
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:82: error: cannot find symbol
        public boolean isBeaconBase(IBlockAccess worldObj, BlockPos pos, BlockPos beacon) {
                                                           ^
  symbol:   class BlockPos
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:82: error: cannot find symbol
        public boolean isBeaconBase(IBlockAccess worldObj, BlockPos pos, BlockPos beacon) {
                                                                         ^
  symbol:   class BlockPos
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:87: error: cannot find symbol
        public boolean isOpaqueCube(IBlockState state) {
                                    ^
  symbol:   class IBlockState
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:92: error: cannot find symbol
        public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player) {
                                      ^
  symbol:   class IBlockState
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:92: error: cannot find symbol
        public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player) {
                                                         ^
  symbol:   class RayTraceResult
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:92: error: cannot find symbol
        public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player) {
                                                                                ^
  symbol:   class World
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:92: error: cannot find symbol
        public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player) {
                                                                                             ^
  symbol:   class BlockPos
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:92: error: cannot find symbol
        public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player) {
                                                                                                           ^
  symbol:   class EntityPlayer
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:92: error: cannot find symbol
        public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player) {
               ^
  symbol:   class ItemStack
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:97: error: cannot find symbol
        public void getDrops(NonNullList<ItemStack> drops, IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
                             ^
  symbol:   class NonNullList
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:97: error: cannot find symbol
        public void getDrops(NonNullList<ItemStack> drops, IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
                                         ^
  symbol:   class ItemStack
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:97: error: cannot find symbol
        public void getDrops(NonNullList<ItemStack> drops, IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
                                                           ^
  symbol:   class IBlockAccess
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:97: error: cannot find symbol
        public void getDrops(NonNullList<ItemStack> drops, IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
                                                                               ^
  symbol:   class BlockPos
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:97: error: cannot find symbol
        public void getDrops(NonNullList<ItemStack> drops, IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
                                                                                             ^
  symbol:   class IBlockState
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:102: error: cannot find symbol
        public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer entity, EnumHand hand, EnumFacing side,
                                        ^
  symbol:   class World
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:102: error: cannot find symbol
        public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer entity, EnumHand hand, EnumFacing side,
                                                     ^
  symbol:   class BlockPos
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:102: error: cannot find symbol
        public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer entity, EnumHand hand, EnumFacing side,
                                                                   ^
  symbol:   class IBlockState
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:102: error: cannot find symbol
        public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer entity, EnumHand hand, EnumFacing side,
                                                                                      ^
  symbol:   class EntityPlayer
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:102: error: cannot find symbol
        public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer entity, EnumHand hand, EnumFacing side,
                                                                                                           ^
  symbol:   class EnumHand
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:102: error: cannot find symbol
        public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer entity, EnumHand hand, EnumFacing side,
                                                                                                                          ^
  symbol:   class EnumFacing
  location: class BlockCustom
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCubeOnBlockRightClicked.java:25: error: package PlayerInteractEvent does not exist
    public void onRightClickBlock(PlayerInteractEvent.RightClickBlock event) {
                                                     ^
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCubeOnBlockRightClicked.java:42: error: cannot find symbol
    public void preInit(FMLPreInitializationEvent event) {
                        ^
  symbol:   class FMLPreInitializationEvent
  location: class MCreatorMinecrfatCubeOnBlockRightClicked
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorOPPick.java:9: error: cannot find symbol
    public static final Item block = null;
                        ^
  symbol:   class Item
  location: class MCreatorOPPick
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorOPPick.java:28: error: cannot find symbol
    public void registerModels(ModelRegistryEvent event) {
                               ^
  symbol:   class ModelRegistryEvent
  location: class MCreatorOPPick
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:8: error: package GameRegistry does not exist
    @GameRegistry.ObjectHolder("minecrfat:minecrfatcube")
                 ^
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCube.java:21: error: cannot find symbol
    @SideOnly(Side.CLIENT)
     ^
  symbol:   class SideOnly
  location: class MCreatorMinecrfatCube
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorMinecrfatCubeOnBlockRightClicked.java:24: error: cannot find symbol
    @SubscribeEvent
     ^
  symbol:   class SubscribeEvent
  location: class MCreatorMinecrfatCubeOnBlockRightClicked
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorOPPick.java:8: error: package GameRegistry does not exist
    @GameRegistry.ObjectHolder("minecrfat:oppick")
                 ^
C:\Users\yasha\MCreatorWorkspaces\minecrfat\build\sources\main\java\net\mcreator\minecrfat\MCreatorOPPick.java:26: error: cannot find symbol
    @SideOnly(Side.CLIENT)
     ^
  symbol:   class SideOnly
  location: class MCreatorOPPick
44 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 35s

what do you mean by paste the contents like where do i paste it?