Jump to content

Attempting to launch the Minecraft 1.19.2 client with forge from Intellij pops up with 9 errors.


JustBomb
 Share

Recommended Posts

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:4: error: cannot find symbol
import net.minecraft.client.Minecraft;
                           ^
  symbol:   class Minecraft
  location: package net.minecraft.client

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:5: error: cannot find symbol
import net.minecraft.world.item.CreativeModeTab;
                               ^
  symbol:   class CreativeModeTab
  location: package net.minecraft.world.item

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:6: error: cannot find symbol
import net.minecraft.world.item.Item;
                               ^
  symbol:   class Item
  location: package net.minecraft.world.item

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:7: error: cannot find symbol
import net.minecraft.world.level.block.Block;
                                      ^
  symbol:   class Block
  location: package net.minecraft.world.level.block

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:9: error: cannot find symbol
import net.minecraft.world.level.block.state.BlockBehaviour;
                                            ^
  symbol:   class BlockBehaviour
  location: package net.minecraft.world.level.block.state

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:10: error: cannot find symbol
import net.minecraft.world.level.material.Material;
                                         ^
  symbol:   class Material
  location: package net.minecraft.world.level.material

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:40: error: cannot access Block
        LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
                                                                            ^
  class file for net.minecraft.world.level.block.Block not found

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:40: error: cannot access IForgeRegistry
        LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
                                                              ^
  class file for net.minecraftforge.registries.IForgeRegistry not found

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:53: error: cannot find symbol
            LOGGER.info("MINECRAFT NAME >> {}", Minecraft.getInstance().getUser().getName());
                                                ^
  symbol:   variable Minecraft
  location: class ClientModEvents

Edited by JustBomb
Link to comment
Share on other sites

  • JustBomb changed the title to Attempting to launch the Minecraft 1.19.2 client with forge from Intellij pops up with 9 errors.

I'm not sure what I did but now it is only giving me 4 errors:

 

> Task :compileJava FAILED
D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:4: error: cannot find symbol
import net.minecraft.client.Minecraft;
                           ^
  symbol:   class Minecraft
  location: package net.minecraft.client
D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:34: error: cannot access Block
        LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
                                                                            ^
  class file for net.minecraft.world.level.block.Block not found
D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:34: error: cannot access IForgeRegistry
        LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
                                                              ^
  class file for net.minecraftforge.registries.IForgeRegistry not found
D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:47: error: cannot find symbol
            LOGGER.info("MINECRAFT NAME >> {}", Minecraft.getInstance().getUser().getName());
                                                ^
  symbol:   variable Minecraft
  location: class ClientModEvents
4 errors

Link to comment
Share on other sites

Why would you need that?

You just to need make your repository public in the "change visibility" settings.

Then post a link to it.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

 Share



×
×
  • Create New...

Important Information

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