Mcreator error cannot find symbol

I was just building my project More Storage while I encountered a problem. when I build the workspace,it showed a lot "cannot find symbol" error.Why? PS: Workspace attached.It says MoreSt...

I was just building my project More Storage while I encountered a problem.
when I build the workspace,it showed a lot «cannot find symbol» error.Why?
PS:
Workspace attached.It says MoreStorageTab and BottleBlock has problem.A red «folded corner» mark appeared.
MoreStorage.zip

Executing Gradle task: build
Build info: MCreator 2020.5.43719 EAP (43719), forge-1.15.2, 64-bit, 16267 MB, Windows 7, JVM 1.8.0_265, JAVA_HOME: G:Mcreator EAP 2020.5 b43719 Windows 64bitMCreatorEAP20205b43719jdk
Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
Task :compileJava
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:21: error: cannot find symbol
public static final Block block = null;
^
symbol: class Block
location: class BottleBlockBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:35: error: cannot find symbol
public void clientLoad(FMLClientSetupEvent event) {
^
symbol: class FMLClientSetupEvent
location: class BottleBlockBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:26: error: cannot find symbol
public final List<Supplier> blocks = new ArrayList<>();
^
symbol: class Block
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:27: error: cannot find symbol
public final List<Supplier> items = new ArrayList<>();
^
symbol: class Item
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:28: error: cannot find symbol
public final List<Supplier> biomes = new ArrayList<>();
^
symbol: class Biome
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:29: error: cannot find symbol
public final List<Supplier<EntityType>> entities = new ArrayList<>();
^
symbol: class EntityType
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:30: error: cannot find symbol
public final List> enchantments = new ArrayList<>();
^
symbol: class Enchantment
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:31: error: cannot find symbol
public static Map sounds = new HashMap<>();
^
symbol: class ResourceLocation
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:50: error: package RegistryEvent does not exist
public void registerSounds(RegistryEvent.Register event) {
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:55: error: cannot find symbol
public void addNetworkMessage(Class messageType, BiConsumer encoder, Function decoder,
^
symbol: class PacketBuffer
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:55: error: cannot find symbol
public void addNetworkMessage(Class messageType, BiConsumer encoder, Function decoder,
^
symbol: class PacketBuffer
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:56: error: package NetworkEvent does not exist
BiConsumer> messageConsumer) {
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:65: error: cannot find symbol
public List> getBlocks() {
^
symbol: class Block
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:69: error: cannot find symbol
public List> getItems() {
^
symbol: class Item
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:73: error: cannot find symbol
public List> getBiomes() {
^
symbol: class Biome
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:77: error: cannot find symbol
public List>> getEntities() {
^
symbol: class EntityType
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:81: error: cannot find symbol
public List<Supplier> getEnchantments() {
^
symbol: class Enchantment
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:98: error: cannot find symbol
public void init(FMLCommonSetupEvent event) {
^
symbol: class FMLCommonSetupEvent
location: class ModElement
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:101: error: cannot find symbol
public void serverLoad(FMLServerStartingEvent event) {
^
symbol: class FMLServerStartingEvent
location: class ModElement
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:105: error: cannot find symbol
public void clientLoad(FMLClientSetupEvent event) {
^
symbol: class FMLClientSetupEvent
location: class ModElement
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:38: error: cannot find symbol
public static class CustomBlock extends Block {
^
symbol: class Block
location: class BottleBlockBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:46: error: cannot find symbol
public boolean isNormalCube(BlockState state, IBlockReader worldIn, BlockPos pos) {
^
symbol: class BlockState
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:46: error: cannot find symbol
public boolean isNormalCube(BlockState state, IBlockReader worldIn, BlockPos pos) {
^
symbol: class IBlockReader
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:46: error: cannot find symbol
public boolean isNormalCube(BlockState state, IBlockReader worldIn, BlockPos pos) {
^
symbol: class BlockPos
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:51: error: cannot find symbol
public boolean propagatesSkylightDown(BlockState state, IBlockReader reader, BlockPos pos) {
^
symbol: class BlockState
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:51: error: cannot find symbol
public boolean propagatesSkylightDown(BlockState state, IBlockReader reader, BlockPos pos) {
^
symbol: class IBlockReader
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:51: error: cannot find symbol
public boolean propagatesSkylightDown(BlockState state, IBlockReader reader, BlockPos pos) {
^
symbol: class BlockPos
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:56: error: cannot find symbol
public List getDrops(BlockState state, LootContext.Builder builder) {
^
symbol: class BlockState
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:56: error: package LootContext does not exist
public List getDrops(BlockState state, LootContext.Builder builder) {
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:56: error: cannot find symbol
public List getDrops(BlockState state, LootContext.Builder builder) {
^
symbol: class ItemStack
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:64: error: cannot find symbol
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean moving) {
^
symbol: class BlockState
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:64: error: cannot find symbol
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean moving) {
^
symbol: class World
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:64: error: cannot find symbol
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean moving) {
^
symbol: class BlockPos
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:64: error: cannot find symbol
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean moving) {
^
symbol: class BlockState
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:80: error: cannot find symbol
public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity entity, Hand hand,
^
symbol: class BlockState
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:80: error: cannot find symbol
public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity entity, Hand hand,
^
symbol: class World
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:80: error: cannot find symbol
public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity entity, Hand hand,
^
symbol: class BlockPos
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:80: error: cannot find symbol
public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity entity, Hand hand,
^
symbol: class PlayerEntity
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:80: error: cannot find symbol
public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity entity, Hand hand,
^
symbol: class Hand
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:81: error: cannot find symbol
BlockRayTraceResult hit) {
^
symbol: class BlockRayTraceResult
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:80: error: cannot find symbol
public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity entity, Hand hand,
^
symbol: class ActionResultType
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageitemgroupMoreStorageTabItemGroup.java:28: error: cannot find symbol
public static ItemGroup tab;
^
symbol: class ItemGroup
location: class MoreStorageTabItemGroup
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:25: error: cannot find symbol
@mod(«more_storage»)
^
symbol: class Mod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:29: error: cannot find symbol
public static final SimpleChannel PACKET_HANDLER = NetworkRegistry.newSimpleChannel(new ResourceLocation(«more_storage», «more_storage»),
^
symbol: class SimpleChannel
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:39: error: cannot find symbol
private void init(FMLCommonSetupEvent event) {
^
symbol: class FMLCommonSetupEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:44: error: cannot find symbol
public void serverLoad(FMLServerStartingEvent event) {
^
symbol: class FMLServerStartingEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:50: error: cannot find symbol
public void clientLoad(FMLClientSetupEvent event) {
^
symbol: class FMLClientSetupEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:55: error: package RegistryEvent does not exist
public void registerBlocks(RegistryEvent.Register event) {
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:55: error: cannot find symbol
public void registerBlocks(RegistryEvent.Register event) {
^
symbol: class Block
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:60: error: package RegistryEvent does not exist
public void registerItems(RegistryEvent.Register event) {
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:60: error: cannot find symbol
public void registerItems(RegistryEvent.Register event) {
^
symbol: class Item
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:65: error: package RegistryEvent does not exist
public void registerBiomes(RegistryEvent.Register event) {
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:65: error: cannot find symbol
public void registerBiomes(RegistryEvent.Register event) {
^
symbol: class Biome
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:70: error: package RegistryEvent does not exist
public void registerEntities(RegistryEvent.Register<EntityType> event) {
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:70: error: cannot find symbol
public void registerEntities(RegistryEvent.Register> event) {
^
symbol: class EntityType
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:75: error: package RegistryEvent does not exist
public void registerEnchantments(RegistryEvent.Register event) {
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:75: error: cannot find symbol
public void registerEnchantments(RegistryEvent.Register event) {
^
symbol: class Enchantment
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:80: error: package RegistryEvent does not exist
public void registerSounds(RegistryEvent.Register<net.minecraft.util.SoundEvent> event) {
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:20: error: incompatible types: ObjectHolder cannot be converted to Annotation
@ObjectHolder(«more_storage:bottle_block»)
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:34: error: cannot find symbol
@onlyin(Dist.CLIENT)
^
symbol: class OnlyIn
location: class BottleBlockBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:104: error: cannot find symbol
@onlyin(Dist.CLIENT)
^
symbol: class OnlyIn
location: class ModElement
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:43: error: cannot find symbol
@SubscribeEvent
^
symbol: class SubscribeEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:48: error: cannot find symbol
@SubscribeEvent
^
symbol: class SubscribeEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:49: error: cannot find symbol
@onlyin(Dist.CLIENT)
^
symbol: class OnlyIn
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:54: error: cannot find symbol
@SubscribeEvent
^
symbol: class SubscribeEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:59: error: cannot find symbol
@SubscribeEvent
^
symbol: class SubscribeEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:64: error: cannot find symbol
@SubscribeEvent
^
symbol: class SubscribeEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:69: error: cannot find symbol
@SubscribeEvent
^
symbol: class SubscribeEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:74: error: cannot find symbol
@SubscribeEvent
^
symbol: class SubscribeEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:79: error: cannot find symbol
@SubscribeEvent
^
symbol: class SubscribeEvent
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:34: error: cannot find symbol
ModFileScanData modFileInfo = ModList.get().getModFileById(«more_storage»).getFile().getScanResult();
^
symbol: class ModFileScanData
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:35: error: package ModFileScanData does not exist
Set<ModFileScanData.AnnotationData> annotations = modFileInfo.getAnnotations();
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:36: error: package ModFileScanData does not exist
for (ModFileScanData.AnnotationData annotationData : annotations) {
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageModElements.java:51: error: cannot find symbol
for (Map.Entry<ResourceLocation, net.minecraft.util.SoundEvent> sound : sounds.entrySet())
^
symbol: class ResourceLocation
location: class MoreStorageModElements
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:30: error: cannot find symbol
.add(() -> new BlockItem(block, new Item.Properties().group(MoreStorageTabItemGroup.tab)).setRegistryName(block.getRegistryName()));
^
symbol: class BlockItem
location: class BottleBlockBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:30: error: package Item does not exist
.add(() -> new BlockItem(block, new Item.Properties().group(MoreStorageTabItemGroup.tab)).setRegistryName(block.getRegistryName()));
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:36: error: cannot find symbol
RenderTypeLookup.setRenderLayer(block, RenderType.getCutout());
^
symbol: variable RenderType
location: class BottleBlockBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:36: error: cannot find symbol
RenderTypeLookup.setRenderLayer(block, RenderType.getCutout());
^
symbol: variable RenderTypeLookup
location: class BottleBlockBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:40: error: cannot find symbol
super(Block.Properties.create(Material.GLASS).sound(SoundType.GLASS).hardnessAndResistance(0.7999999999999999f, 10f).lightValue(0)
^
symbol: variable SoundType
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:40: error: package Block does not exist
super(Block.Properties.create(Material.GLASS).sound(SoundType.GLASS).hardnessAndResistance(0.7999999999999999f, 10f).lightValue(0)
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:42: error: cannot find symbol
setRegistryName(«bottle_block»);
^
symbol: method setRegistryName(String)
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:45: error: method does not override or implement a method from a supertype
@OverRide
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:50: error: method does not override or implement a method from a supertype
@OverRide
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:55: error: method does not override or implement a method from a supertype
@OverRide
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:57: error: cannot find symbol
List dropsOriginal = super.getDrops(state, builder);
^
symbol: class ItemStack
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:57: error: non-static variable super cannot be referenced from a static context
List dropsOriginal = super.getDrops(state, builder);
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:60: error: cannot find symbol
return Collections.singletonList(new ItemStack(this, 1));
^
symbol: class ItemStack
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:63: error: method does not override or implement a method from a supertype
@OverRide
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:65: error: non-static variable super cannot be referenced from a static context
super.onBlockAdded(state, world, pos, oldState, moving);
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:79: error: method does not override or implement a method from a supertype
@OverRide
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:82: error: non-static variable super cannot be referenced from a static context
super.onBlockActivated(state, world, pos, entity, hand, hit);
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:86: error: cannot find symbol
Direction direction = hit.getFace();
^
symbol: class Direction
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageblockBottleBlockBlock.java:96: error: cannot find symbol
return ActionResultType.SUCCESS;
^
symbol: variable ActionResultType
location: class CustomBlock
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageitemgroupMoreStorageTabItemGroup.java:15: error: cannot find symbol
tab = new ItemGroup(«tabmore_storage_tab») {
^
symbol: class ItemGroup
location: class MoreStorageTabItemGroup
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:29: error: cannot find symbol
public static final SimpleChannel PACKET_HANDLER = NetworkRegistry.newSimpleChannel(new ResourceLocation(«more_storage», «more_storage»),
^
symbol: class ResourceLocation
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:29: error: cannot find symbol
public static final SimpleChannel PACKET_HANDLER = NetworkRegistry.newSimpleChannel(new ResourceLocation(«more_storage», «more_storage»),
^
symbol: variable NetworkRegistry
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:34: error: cannot find symbol
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::init);
^
symbol: variable FMLJavaModLoadingContext
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:35: error: cannot find symbol
FMLJavaModLoadingContext.get().getModEventBus().register(this);
^
symbol: variable FMLJavaModLoadingContext
location: class MoreStorageMod
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:36: error: package MinecraftForge does not exist
MinecraftForge.EVENT_BUS.register(this);
^
C:UsersAdministratorMCreatorWorkspacesmore_storagesrcmainjavanetmcreatormorestorageMoreStorageMod.java:56: error: cannot find symbol
event.getRegistry().registerAll(elements.getBlocks().stream().map(Supplier::get).toArray(Block[]::new));
^
symbol: class Block
location: class MoreStorageMod
100 errors
Task :compileJava FAILED
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
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
    Use ‘—warning-mode all’ to show the individual deprecation warnings.
    See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings
    BUILD FAILED in 10s
    1 actionable task: 1 executed
    BUILD FAILED
    Task completed in 137198 milliseconds

Compiling error: cannot find symbol [. ]

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:

Hi ! (note: sry if you’re getting bad at understanding me, i’m french)

I discovered this software earlier today and i’m already having issues with compiling. While trying to export my test mod i got an error on gradle logs that say something like «cannot find symbol[. ]». I think i’ve miss something.

Btw my mod is act just an ore block that drop a gem (2 elements then) for testing thing like recipes, particles etc.

Here are the logs of gradle while compiling:

Ty by advance for helping me.

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:

Hum it looks like a bug of MCreator becuz when i create an element and then check on the «Code» Tab if my class is added, and if indeed it’s added, it works well.

When i create an element and when i check if the class is here and it isn’t, i have compilation error.

I see nothing else than a MCreator bug here.

(or maybe i missed something obvious)

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:

The «Cannot find symbol» errors generally occur when you try to reference an undeclared variable in your code. A «Cannot find symbol» error means that the compiler cannot do this. Your code appears to be referring to something that the compiler doesn’t understand.

When your code is compiled, the compiler needs to work out what each and every identifier in your code means. As the compiler is going through the code it will find something and know what to do with it or not. Your Cannot find symbol error relates to the identifiers and means that Java cannot figure out what the «symbol» means.

The general causes for a Cannot find symbol error are things like:

  • Incorrect spelling.
  • Wrong case. Halo is different from halo.
  • Improper use of acceptable identifier values (letters, numbers, underscore, dollar sign), my-class is not the same as myclass.
  • No variable declaration or variable is outside of the scope you are referencing it in.

Источник

BUILD FAILED Cannot find symbol #1910

Comments

ghost commented Oct 24, 2021

Describe the bug

I made a mob with a simple 3D model Blockbench, after saving, I gave out that this particular object creates an error, after digging around, I realized that it could not find some symbol. If anything, forgive me for my English.

Details

  • MCreator version: [2021.2]
  • Generator type: [forge-1.16.5]
  • OS: [Windows 10]

When I compiled the model, I got an error, after studying it, I corrected the model name several times, but it did not help me in any way.

Perhaps the problem is in the animation or the model itself, I rewrote the name to civilprot, but it did not help, I re-generated the code. Maybe I’m stuck and I don’t see the simplest mistake

Minimal reproducible example workspace

Executing Gradle task: build
Build info: MCreator 2021.2.36710, forge-1.16.5, 64-bit, 6026 MB, Windows 10, JVM 11.0.11, JAVA_HOME: C:Program FilesPyloMCreatorjdk

Task :compileJava
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:39: error: cannot find symbol
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation(«modid», «civilprot»), «main»);
^
symbol: class ModelLayerLocation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:40: error: cannot find symbol
private final ModelPart CP;
^
symbol: class ModelPart
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:41: error: cannot find symbol
public Modelcivilprot(ModelPart root) <
^
symbol: class ModelPart
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:45: error: cannot find symbol
public static LayerDefinition createBodyLayer() <
^
symbol: class LayerDefinition
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:76: error: cannot find symbol
public void renderToBuffer(PoseStack poseStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue,
^
symbol: class PoseStack
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:76: error: cannot find symbol
public void renderToBuffer(PoseStack poseStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue,
^
symbol: class VertexConsumer
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:23: error: constructor Modelcivilprot in class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot cannot be applied to given types;
return new MobRenderer(renderManager, new Modelcivilprot(), 0.5f) <
^
required: ModelPart
found: no arguments
reason: actual and formal argument lists differ in length
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:36: error: net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot is not abstract and does not override abstract method render(com.mojang.blaze3d.matrix.MatrixStack,com.mojang.blaze3d.vertex.IVertexBuilder,int,int,float,float,float,float) in net.minecraft.client.renderer.model.Model
public static class Modelcivilprot extends EntityModel <
^
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:39: error: cannot find symbol
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation(«modid», «civilprot»), «main»);
^
symbol: class ModelLayerLocation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:46: error: cannot find symbol
MeshDefinition meshdefinition = new MeshDefinition();
^
symbol: class MeshDefinition
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:46: error: cannot find symbol
MeshDefinition meshdefinition = new MeshDefinition();
^
symbol: class MeshDefinition
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:47: error: cannot find symbol
PartDefinition partdefinition = meshdefinition.getRoot();
^
symbol: class PartDefinition
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:48: error: cannot find symbol
PartDefinition CP = partdefinition.addOrReplaceChild(
^
symbol: class PartDefinition
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:50: error: cannot find symbol
.texOffs(24, 16).addBox(-4.0F, -4.0F, -2.0F, 4.0F, 12.0F, 4.0F, new CubeDeformation(0.0F)),
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:49: error: cannot find symbol
«CP», CubeListBuilder.create().texOffs(0, 32).addBox(0.0F, -4.0F, -2.0F, 4.0F, 12.0F, 4.0F, new CubeDeformation(0.0F))
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:49: error: cannot find symbol
«CP», CubeListBuilder.create().texOffs(0, 32).addBox(0.0F, -4.0F, -2.0F, 4.0F, 12.0F, 4.0F, new CubeDeformation(0.0F))
^
symbol: variable CubeListBuilder
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:51: error: cannot find symbol
PartPose.offset(0.0F, 16.0F, 0.0F));
^
symbol: variable PartPose
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:52: error: cannot find symbol
PartDefinition gaz = CP.addOrReplaceChild(«gaz»,
^
symbol: class PartDefinition
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:56: error: cannot find symbol
.addBox(-5.0F, -29.0F, 1.0F, 1.0F, 2.0F, 2.0F, new CubeDeformation(0.0F)),
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:55: error: cannot find symbol
.addBox(4.0F, -29.0F, 1.0F, 1.0F, 2.0F, 2.0F, new CubeDeformation(0.0F)).texOffs(0, 0)
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:54: error: cannot find symbol
.addBox(-1.0F, -28.0F, -5.0F, 2.0F, 2.0F, 1.0F, new CubeDeformation(0.0F)).texOffs(0, 4)
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:53: error: cannot find symbol
CubeListBuilder.create().texOffs(0, 0).addBox(-4.0F, -33.0F, -4.0F, 8.0F, 8.0F, 8.0F, new CubeDeformation(0.0F)).texOffs(24, 0)
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:53: error: cannot find symbol
CubeListBuilder.create().texOffs(0, 0).addBox(-4.0F, -33.0F, -4.0F, 8.0F, 8.0F, 8.0F, new CubeDeformation(0.0F)).texOffs(24, 0)
^
symbol: variable CubeListBuilder
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:57: error: cannot find symbol
PartPose.offset(0.0F, 9.0F, 0.0F));
^
symbol: variable PartPose
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:58: error: cannot find symbol
PartDefinition cube_r1 = gaz.addOrReplaceChild(«cube_r1»,
^
symbol: class PartDefinition
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:59: error: cannot find symbol
CubeListBuilder.create().texOffs(20, 16).addBox(-1.0F, -24.0F, 6.0F, 2.0F, 2.0F, 1.0F, new CubeDeformation(0.0F)),
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:59: error: cannot find symbol
CubeListBuilder.create().texOffs(20, 16).addBox(-1.0F, -24.0F, 6.0F, 2.0F, 2.0F, 1.0F, new CubeDeformation(0.0F)),
^
symbol: variable CubeListBuilder
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:60: error: cannot find symbol
PartPose.offsetAndRotation(0.0F, -1.0F, 0.0F, 0.4363F, 0.0F, 0.0F));
^
symbol: variable PartPose
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:61: error: cannot find symbol
PartDefinition body = CP.addOrReplaceChild(«body»,
^
symbol: class PartDefinition
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:66: error: cannot find symbol
.addBox(4.0F, -24.0F, -2.0F, 4.0F, 12.0F, 4.0F, new CubeDeformation(0.0F)),
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:65: error: cannot find symbol
.addBox(-8.0F, -24.0F, -2.0F, 4.0F, 12.0F, 4.0F, new CubeDeformation(0.0F)).texOffs(32, 0)
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:64: error: cannot find symbol
.addBox(-4.0F, -24.0F, 2.0F, 8.0F, 6.0F, 1.0F, new CubeDeformation(0.0F)).texOffs(16, 32)
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:63: error: cannot find symbol
.addBox(-4.0F, -24.0F, -3.0F, 8.0F, 6.0F, 1.0F, new CubeDeformation(0.0F)).texOffs(32, 32)
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:62: error: cannot find symbol
CubeListBuilder.create().texOffs(0, 16).addBox(-4.0F, -24.0F, -2.0F, 8.0F, 12.0F, 4.0F, new CubeDeformation(0.0F)).texOffs(32, 38)
^
symbol: class CubeDeformation
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:62: error: cannot find symbol
CubeListBuilder.create().texOffs(0, 16).addBox(-4.0F, -24.0F, -2.0F, 8.0F, 12.0F, 4.0F, new CubeDeformation(0.0F)).texOffs(32, 38)
^
symbol: variable CubeListBuilder
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:67: error: cannot find symbol
PartPose.offset(0.0F, 8.0F, 0.0F));
^
symbol: variable PartPose
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:68: error: cannot find symbol
return LayerDefinition.create(meshdefinition, 64, 64);
^
symbol: variable LayerDefinition
location: class net.mcreator.halflifebb.entity.renderer.CivilprotectionRenderer.Modelcivilprot
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:71: error: method does not override or implement a method from a supertype
@OverRide
^
C:MCreatorWorkspaceshalf_life_bbsrcmainjavanetmcreatorhalflifebbentityrendererCivilprotectionRenderer.java:75: error: method does not override or implement a method from a supertype
@OverRide
^
39 errors
Task :compileJava FAILED
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
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    You can use ‘—warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
    See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings
    BUILD FAILED in 16s
    1 actionable task: 1 executed
    BUILD FAILED
    Task completed in 24 seconds

The text was updated successfully, but these errors were encountered:

Источник

D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:55: error: cannot find symbol
		RenderingRegistry.registerEntityRenderingHandler(mcreator_leshen.Entityleshen.class, new RenderLiving(new mcreator_leshen.Modeln(), 0) {
		                                                                                                                         ^
  symbol:   class Modeln
  location: class mcreator_leshen
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:233: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone.cubeList.add(new ModelBox(bone, 46, 178, -2.0F, -11.0F, -1.0F, 2, 11, 2, 0.0F, false));
			                  ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:234: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone.cubeList.add(new ModelBox(bone, 40, 177, 2.0F, -11.0F, -1.0F, 2, 11, 2, 0.0F, false));
			                  ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:239: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone2.cubeList.add(new ModelBox(bone2, 46, 176, -2.0F, -17.5F, -2.7F, 2, 8, 2, 0.0F, false));
			                   ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:240: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone2.cubeList.add(new ModelBox(bone2, 45, 174, 2.0F, -17.4F, -2.7F, 2, 8, 2, 0.0F, false));
			                   ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:244: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone3.cubeList.add(new ModelBox(bone3, 93, 122, -2.2F, -29.0F, -2.4F, 6, 13, 2, 0.0F, false));
			                   ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:248: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone4.cubeList.add(new ModelBox(bone4, 82, 28, -4.1F, -8.1F, -2.0F, 2, 15, 2, 0.0F, false));
			                   ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:249: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone4.cubeList.add(new ModelBox(bone4, 82, 26, 4.0F, -8.0F, -2.0F, 2, 15, 2, 0.0F, false));
			                   ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:254: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone5.cubeList.add(new ModelBox(bone5, 10, 52, -0.6F, -3.2F, -5.0F, 3, 3, 5, 0.0F, false));
			                   ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:259: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone6.cubeList.add(new ModelBox(bone6, 6, 102, -8.0F, -2.0F, -2.0F, 8, 1, 1, 0.0F, false));
			                   ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:275: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone12.cubeList.add(new ModelBox(bone12, 79, 45, -10.0F, 1.0F, -2.0F, 7, 1, 1, 0.0F, false));
			                    ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:284: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone14.cubeList.add(new ModelBox(bone14, 17, 98, -13.0F, -0.5F, -0.7F, 9, 1, 1, 0.0F, false));
			                    ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:289: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone15.cubeList.add(new ModelBox(bone15, 24, 98, 5.0F, 0.0F, -3.0F, 6, 1, 1, 0.0F, false));
			                    ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:294: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone10.cubeList.add(new ModelBox(bone10, 9, 102, 3.0F, -1.7F, -2.3F, 6, 1, 1, 0.0F, false));
			                    ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:299: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone11.cubeList.add(new ModelBox(bone11, 0, 103, -12.4F, -1.9F, -0.8F, 10, 1, 1, 0.0F, false));
			                    ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:308: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone17.cubeList.add(new ModelBox(bone17, 2, 101, 4.3F, -2.1F, -0.4F, 9, 1, 1, 0.0F, false));
			                    ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:313: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone18.cubeList.add(new ModelBox(bone18, 1, 23, -8.8F, -0.3F, 2.0F, 3, 3, 3, 0.0F, false));
			                    ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:317: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone19.cubeList.add(new ModelBox(bone19, 100, 132, -2.0F, -1.0F, -4.0F, 2, 1, 3, 0.0F, false));
			                    ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:318: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone19.cubeList.add(new ModelBox(bone19, 105, 133, 2.0F, -1.0F, -4.0F, 2, 1, 3, 0.0F, false));
			                    ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
D:GamespyloMCreator173forgebuildsourcesjavamodmcreatormcreator_leshen.java:326: error: constructor ModelBox in class ModelBox cannot be applied to given types;
			bone21.cubeList.add(new ModelBox(bone21, 7, 24, -0.2F, -2.7F, -7.0F, 2, 2, 3, 0.0F, false));
			                    ^
  required: ModelRenderer,int,int,float,float,float,int,int,int,float
  found: ModelRenderer,int,int,float,float,float,int,int,int,float,boolean
  reason: actual and formal argument lists differ in length
20 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.

It can happen that you get gradle errors during the setup of MCreator or even later when suddenly builds stop working. Most of these errors are related to file permissions, firewalls and other OS elements that block MCreator from operating properly. To find the solution for your case, check the error log in the Console tab and look for error messages similar to the titles on this page and if you find one of these, go to the section under this title to look for the solution.

The most common solution

In most cases all Gradle errors are caused by one of these:

  • Firewall or antivirus blocking MCreator
  • Slow internet connection
  • Your ISP blocking certain websites
  • Too slow VPN or VPN with blocked domains that MCreator needs to access
  • Any other software blocking access to download repository

The most common errors from Gradle are caused by firewalls or antivirus software. If you have any issues, we recommend you to temporarily turn off this software and try again. If this works, add MCreator as an exception to your firewall or antivirus or reconfigure the software properly to not block programs such as MCreator.

It can also happen that the servers from which Gradle downloads files (Minecraft servers, Minecraft Forge repo, Maven repository) are down and you might just need to try again later in such cases.

In some cases of unstable or slow connections, running the setup multiple times and when it fails with errors related to the internet connection (timeout errors, failed to connect, failed to GET, HEAD, …) clicking re-run the setup multiple times resolves the issue as eventually, all files get properly downloaded.

The second most common solution

In some cases, Gradle caches that make sure the build process does not take too long can get corrupted. In such a case, go to:

<your user home folder>/.mcreator/gradle

In this folder, there is a folder called caches. Delete this folder and open MCreator again. Next build will take a bit longer as caches need to be rebuilt. If you can not delete all files in this folder (which is necessary), reboot the computer first to remove any potential file locks.

If this is not enough to make things work, delete the entire gradle folder, not just caches, and try again.

If even this fails, try to delete the entire <your user home folder>/.mcreator/gradle folder, create a new workspace with the same generator version as the version of the workspace failing, after the setup of this new workspace is done, open your current workspace, and click Build & run -> Build workspace, then Build & run -> Reload gradle project and then Build & run -> Regenerate code and build.

Common error types

Could not get unknown property ‘runClient’ for root project ‘forge’

The first thing to check is to do The second most common solution described above.

Another solution is to make sure MCreator can write to the folder where the workspace is stored.

If none of this helps, do The second most common solution and reinstall MCreator before opening it again.

ValidatorException: PKIX path building failed

Example of the error log in the Console tab:

Download https://jcenter.bintray.com/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
   at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
   at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
   at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
   at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
   at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
   at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
   at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
   at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
   at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)

The most common cause for this issue is Antivirus with any advanced SSL or HTTPS security turned on. Such Antiviruses can alter certificates and cause Gradle to no properly recognize them. This can be caused by a firewall too.

Could not resolve all dependencies for configuration ‘:classpath’.

Example of the error log in the Console tab:

:decompileMc FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':decompileMc'.
> Could not resolve all dependencies for configuration ':forgeGradleMcDeps'.
> Could not resolve com.paulscode:codecjorbis:20101023.
Required by:
com.yourname.modid:forge:1.0
> Could not resolve com.paulscode:codecjorbis:20101023.

This issue is resolved by The most common solution described above.

java.util.zip.ZipException: error in opening zip file

Example of the error log in the Console tab:

Exception in thread "main" java.util.zip.ZipException: error in opening zip file
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.(ZipFile.java:219)
   at java.util.zip.ZipFile.(ZipFile.java:149)
   at java.util.zip.ZipFile.(ZipFile.java:163)
   at org.gradle.wrapper.Install.unzip(Install.java:159)
   at org.gradle.wrapper.Install.access$500(Install.java:26)
   at org.gradle.wrapper.Install$1.call(Install.java:69)
   at org.gradle.wrapper.Install$1.call(Install.java:46)
   at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
   at org.gradle.wrapper.Install.createDist(Install.java:46)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

This issue is resolved by The second most common solution described above (but delete the entire gradle folder, not just the folder caches in it). You might need to restart your computer before opening MCreator again too.

Timeout of 120000 reached waiting for exclusive access to file

Example of the error log in the Console tab:

Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:Users<username>.mcreatorgradlewrapperdistsgradle-2.14-bin76oc0mnc3ieqtsukq90mp0rxkgradle-2.14-bin.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
at org.gradle.wrapper.Install.createDist(Install.java:46)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

Close MCreator and reboot your computer. Then read and do The second most common solution described above (but delete the entire gradle folder, not just the folder caches in it).

Could not connect to the Gradle daemon

Example of the error log in the Console tab:

FAILURE: Build failed with an exception.
* What went wrong:
Could not connect to the Gradle daemon.
Daemon uid: c7aac9bf-603e-4d48-8300-1ff078fbd044 with diagnostics:
Daemon pid: 600
  log file: C:UsersAloe.mcreatorgradledaemon2.14daemon-600.out.log
----- Last  20 lines from daemon log file - daemon-600.out.log -----

In most cases, this error can be fixed by rebooting MCreator. If this does not help, do The second most common solution described above.

Failed to load native library ‘native-platform.dll’ for Windows 10 amd64

Example of the error log in the Console tab:

FAILURE: Build failed with an exception.
* What went wrong:
Failed to load native library 'native-platform.dll' for Windows 10 amd64.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Go to:

<your user home folder>/.mcreator/gradle

In this folder, there is a folder called native. Delete this folder and open MCreator again. If this does not help, try reinstalling Minecraft on your computer and check your graphics card drivers (update them if there are updates).

org.lwjgl.LWJGLException: Pixel format not accelerated

Example of the error log in the Console tab:

[14:01:14] [main/ERROR]: Couldn't set pixel format
org.lwjgl.LWJGLException: Pixel format not accelerated
   at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
   at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
   at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
   at org.lwjgl.opengl.Display.createWindow(Display.java:306) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
   at org.lwjgl.opengl.Display.create(Display.java:848) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
   at org.lwjgl.opengl.Display.create(Display.java:757) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
   at net.minecraft.client.Minecraft.createDisplay(Minecraft.java:624) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.init(Minecraft.java:457) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.run(Minecraft.java:377) [Minecraft.class:?]
   at net.minecraft.client.main.Main.main(SourceFile:123) [Main.class:?]

This error usually means that you have an unsupported graphics card for Minecraft our outdated graphics card drivers. These pages could help:

  • https://help.mojang.com/customer/en/portal/articles/928791-problematic-frame-or-pixel-format-not-accelerated
  • http://hopper.minecraft.net/help/pixel-format-not-accelerated/
  • https://github.com/tryashtar/minecraft-bugs/issues/279
  • https://answers.microsoft.com/en-us/windows/forum/windows_8-gaming/minecraft-pixel-format-not-accelerated-after-win/cc02d21d-4039-412c-8b8b-84b10b32e872?auth=1

Sometimes reinstallation of Minecraft can help too.

Expected BEGIN_OBJECT but was STRING at line 1 column 1

Example of the error log in the Console tab:

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge'.
> java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

This issue is resolved by The second most common solution described above (but delete the entire gradle folder, not just the folder caches in it). You might need to restart your computer before opening MCreator again too.

Gradle task compileJava FAILED with errors of type «Override is not a repeatable annotation type»

In some cases, links to the libraries from the Gradle build system can get lost and MCreator builds will stop working. Especially some mod elements such as GUIs and dimensions are prone to this happening. When this happens, the following solution usually fixes this error:

Go to the Build & run menu and click the following two options in the given order

  1. Reload Gradle project
  2. Regenerate code and build

Wait for the workspace code to be regenerated and the error should be gone.

Gradle task compileJava FAILED with 100 errors of type «cannot find symbol»

This issue is resolved by The second most common solution described at the top of this page. After applying the solution, run the build again.

Error occurred during initialization of VM: Picked up _JAVA_OPTIONS

This error indicates there is an override for JAVA_OPTIONS defined somewhere. There are multiple possible places:

  1. Check your computer environment variables (system and user) and if there is a parameter _JAVA_OPTIONS or JAVA_OPTIONS present, remove it from the list
  2. It was reported that Razer Synapse software can override this parameter and cause compatibility problems. In this case, consider disabling or uninstalling this software

If these two do not help, make sure you are using a 64-bit version of MCreator if your computer is 64-bit, as this may cause such a problem too.

This may not be what you want to hear, but I would recommend not using mcreator, as it is a awful program with tons of bugs, among many other things (such as being a much less powerful tool that plain forge).

On top of that, you probably won’t get help as people who know how to fix these errors do not use mcreator (also many errors might be due to pylo)

From the error log, it seems that the error is probably not your fault, so you should report this to pylo.

I can’t tell you how to fix it, but if you were to show me the code (if you can do that) I probably could.

It appears that it is unable to find the class objects for your various coins «error: cannot find symbol mcreator_money … symbol: class mcreator_money», etc.

I don’t know what your reason for using mcreator is (whether it be lack of java knowledge, lack of confidence in java skills, uncertainty that despite knowledge of java minecraft modding might be really confusing), but regardless, I would strongly recommend downloading the forge mdk (available here), and following tutorials to get started, and referencing them or minecraft’s source code, or asking for help on the forums if you get stuck.

This may not be what you want to hear, but I would recommend not using mcreator, as it is a awful program with tons of bugs, among many other things (such as being a much less powerful tool that plain forge).

On top of that, you probably won’t get help as people who know how to fix these errors do not use mcreator (also many errors might be due to pylo)

From the error log, it seems that the error is probably not your fault, so you should report this to pylo.

I can’t tell you how to fix it, but if you were to show me the code (if you can do that) I probably could.

It appears that it is unable to find the class objects for your various coins «error: cannot find symbol mcreator_money … symbol: class mcreator_money», etc.

I don’t know what your reason for using mcreator is (whether it be lack of java knowledge, lack of confidence in java skills, uncertainty that despite knowledge of java minecraft modding might be really confusing), but regardless, I would strongly recommend downloading the forge mdk (available here), and following tutorials to get started, and referencing them or minecraft’s source code, or asking for help on the forums if you get stuck.

Gradle setup and build errors

It can happen that you get gradle errors during the setup of MCreator or even later when suddenly builds stop working. Most of these errors are related to file permissions, firewalls and other OS elements that block MCreator from operating properly. To find the solution for your case, check the error log in the Console tab and look for error messages similar to the titles on this page and if you find one of these, go to the section under this title to look for the solution.

The most common solution

In most cases all Gradle errors are caused by one of these:

  • Firewall or antivirus blocking MCreator
  • Slow internet connection
  • Your ISP blocking certain websites
  • Too slow VPN or VPN with blocked domains that MCreator needs to access
  • Any other software blocking access to download repository

The most common errors from Gradle are caused by firewalls or antivirus software. If you have any issues, we recommend you to temporarily turn off this software and try again. If this works, add MCreator as an exception to your firewall or antivirus or reconfigure the software properly to not block programs such as MCreator.

It can also happen that the servers from which Gradle downloads files (Minecraft servers, Minecraft Forge repo, Maven repository) are down and you might just need to try again later in such cases.

In some cases of unstable or slow connections, running the setup multiple times and when it fails with errors related to the internet connection (timeout errors, failed to connect, failed to GET, HEAD, . ) clicking re-run the setup multiple times resolves the issue as eventually, all files get properly downloaded.

The second most common solution

In some cases, Gradle caches that make sure the build process does not take too long can get corrupted. In such a case, go to:

<your user home folder>/.mcreator/gradle

In this folder, there is a folder called caches. Delete this folder and open MCreator again. Next build will take a bit longer as caches need to be rebuilt. If you can not delete all files in this folder (which is necessary), reboot the computer first to remove any potential file locks.

If this is not enough to make things work, delete the entire gradle folder, not just caches, and try again.

If even this fails, try to delete the entire <your user home folder>/.mcreator/gradle folder, create a new workspace with the same generator version as the version of the workspace failing, after the setup of this new workspace is done, open your current workspace, and click Build & run -> Build workspace, then Build & run -> Reload gradle project and then Build & run -> Regenerate code and build.

Common error types

Could not get unknown property ‘runClient’ for root project ‘forge’

The first thing to check is to do The second most common solution described above.

Another solution is to make sure MCreator can write to the folder where the workspace is stored.

If none of this helps, do The second most common solution and reinstall MCreator before opening it again.

ValidatorException: PKIX path building failed

Example of the error log in the Console tab:

The most common cause for this issue is Antivirus with any advanced SSL or HTTPS security turned on. Such Antiviruses can alter certificates and cause Gradle to no properly recognize them. This can be caused by a firewall too.

Could not resolve all dependencies for configuration ‘:classpath’.

Example of the error log in the Console tab:

This issue is resolved by The most common solution described above.

java.util.zip.ZipException: error in opening zip file

Example of the error log in the Console tab:

This issue is resolved by The second most common solution described above (but delete the entire gradle folder, not just the folder caches in it). You might need to restart your computer before opening MCreator again too.

Timeout of 120000 reached waiting for exclusive access to file

Example of the error log in the Console tab:

Close MCreator and reboot your computer. Then read and do The second most common solution described above (but delete the entire gradle folder, not just the folder caches in it).

Could not connect to the Gradle daemon

Example of the error log in the Console tab:

In most cases, this error can be fixed by rebooting MCreator. If this does not help, do The second most common solution described above.

Failed to load native library ‘native-platform.dll’ for Windows 10 amd64

Example of the error log in the Console tab:

<your user home folder>/.mcreator/gradle

In this folder, there is a folder called native. Delete this folder and open MCreator again. If this does not help, try reinstalling Minecraft on your computer and check your graphics card drivers (update them if there are updates).

org.lwjgl.LWJGLException: Pixel format not accelerated

Example of the error log in the Console tab:

This error usually means that you have an unsupported graphics card for Minecraft our outdated graphics card drivers. These pages could help:

Sometimes reinstallation of Minecraft can help too.

Expected BEGIN_OBJECT but was STRING at line 1 column 1

Example of the error log in the Console tab:

This issue is resolved by The second most common solution described above (but delete the entire gradle folder, not just the folder caches in it). You might need to restart your computer before opening MCreator again too.

Gradle task compileJava FAILED with errors of type «Override is not a repeatable annotation type»

In some cases, links to the libraries from the Gradle build system can get lost and MCreator builds will stop working. Especially some mod elements such as GUIs and dimensions are prone to this happening. When this happens, the following solution usually fixes this error:

Go to the Build & run menu and click the following two options in the given order

  1. Reload Gradle project
  2. Regenerate code and build

Wait for the workspace code to be regenerated and the error should be gone.

Gradle task compileJava FAILED with 100 errors of type «cannot find symbol»

This issue is resolved by The second most common solution described at the top of this page. After applying the solution, run the build again.

Error occurred during initialization of VM: Picked up _JAVA_OPTIONS

This error indicates there is an override for JAVA_OPTIONS defined somewhere. There are multiple possible places:

  1. Check your computer environment variables (system and user) and if there is a parameter _JAVA_OPTIONS or JAVA_OPTIONS present, remove it from the list
  2. It was reported that Razer Synapse software can override this parameter and cause compatibility problems. In this case, consider disabling or uninstalling this software

If these two do not help, make sure you are using a 64-bit version of MCreator if your computer is 64-bit, as this may cause such a problem too.

Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.

GeckoLib + MCreator | Ошибка при установке.

Столкнулся с проблемой загрузки GeckoLib в программу MCreator .

При компиляции или после перегенерации кода выскакивает ошибка:

По инструкции и гайдам требуется скачать плагин — Feder’s Geckolib 2.0.0 Plugin | MCreator и поместить его в папку plagins
после зайти во вкладку » Рабочее пространство/Настройки рабочего пространства. /Внешние API » и поставить галочку на против пункта GeckoLib API .

1648059009817.png

После чего по «сюжету» мы перегенерируем код.

Но тут же в консоли выскакивает ошибка

1648058502789.png

Все эти ссылки не работают.
На форумах пусто.
В интернете ничего нет.
Дальше forge_grable путь не сходится.

1648059503202.png

В чем может быть проблема? Есть ли те, кого всё работает? Какую версию Mc вы используете и может ли скинуть архивом папку bernie с всем содержимым?
Буду очень признателен.

Problems With MCreator? (Fix Tutorial)(OLD, MIGHT NOT HELP ANYMORE)

Hey, i tried making a mod for 1.7.10 version 1.7.3 everything goes well at first but when i try and launch the game it just crashed before the menu screen pops up, its a custom model with custom textures btw.

did not work in 1.12.2 either

Executing gradle command: cleanCache clean setupDecompWorkspace —refresh-dependencies
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:PyloMCreator176>cd forge
C:PyloMCreator176forge>SET «JAVA_HOME=C:PyloMCreator176jdk32»
C:PyloMCreator176forge>SET JAVA_EXE=%JAVA_HOME%binjava.exe
C:PyloMCreator176forge>SET PATH=%JAVA_HOME%bin;%PATH%
C:PyloMCreator176forge>gradlew -Dorg.gradle.jvmargs=»-Xms512m -Xmx1024m» cleanCache clean setupDecompWorkspace —refresh-dependencies
This mapping ‘snapshot_20170624’ was designed for MC 1.12! Use at your own peril.
#################################################
ForgeGradle 2.3-SNAPSHOT-583d1ba
github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP unknown
modcoderpack.com
by: Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
#################################################
:cleanCache
:clean
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev
:extractDependencyATs SKIPPED
:extractMcpData
:extractMcpMappings
:genSrgs
:downloadClient
:downloadServer
:splitServerJar
:mergeJars
:deobfMcSRG
Applying SpecialSource.
Applying Exceptor.
:decompileMc
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
:decompileMc FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ‘:decompileMc’.
> Process ‘command ‘C:PyloMCreator176jdk32binjava.exe» finished with non-zero exit value 1
* Try:
Run with —stacktrace option to get the stack trace. Run with —info or —debug option to get more log output.
BUILD FAILED
Total time: 2 mins 38.748 secs
C:PyloMCreator176forge>
Task completed with return code 0 in 161306 milliseconds

I have this error on Mcreator.
(This report is from the console)
for some reason the «test game» doesn’t load and sends me this report:
here it is:

/>player$444055 />

Дело в том что вылазит ошибка на Testing status of code.В чём проблема ? Очень долго в интернете рылся так и не нашел ответ на свою проблему. Может как то эту программу заменить на другую подобную можно? если да то какую)

Моя задача переделать мир на более читерский.типа
заранее спасибо всем откликнувшимся

———
я всё правильно написал гражданин ya can ru, я говорю про обычную игру Minecraft! В программе mccreator абсолютно ничего нельзя сделать в мультиплеере, это только для синглплеера. Проблема так и не решилась. Спасибо всем кто помогал!

[color=gray][size=9]Редактировалось 6 раз(а), последний 2014-02-04 19:03:31[/size][/color]

Понравилась статья? Поделить с друзьями:
  • Mcp management service не удается прочитать описание код ошибки 15100
  • Mcp error copying library jinput
  • Mcf140u dll ошибка
  • Mcedit выдает ошибку
  • Mcedit an error has occurred unhandled exception что делать