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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have a custom recipe that uses JSON to work properly. And everything works right except I cant seem to figure out how to find the stack count for each ingredient of my recipe.   Recipe class: public class AlloyKilnRecipe implements Recipe<SimpleContainer> { private final ResourceLocation id; private final ItemStack output; private final NonNullList<Ingredient> ingredients; public AlloyKilnRecipe(ResourceLocation id, ItemStack output, NonNullList<Ingredient> ingredients) { this.id = id; this.output = output; this.ingredients = ingredients; } @Override public boolean matches(SimpleContainer pContainer, Level pLevel) { if (pLevel.isClientSide()) return false; return (ingredients.get(0).test(pContainer.getItem(0)) && ingredients.get(1).test(pContainer.getItem(1))) || (ingredients.get(0).test(pContainer.getItem(1)) && ingredients.get(1).test(pContainer.getItem(0))); } public int getIngAmnt(int index) { ItemStack[] stacks = ingredients.get(index).getItems(); for (ItemStack stack : stacks) { return stack.getCount(); } return 0; } @Override public NonNullList<Ingredient> getIngredients() { return ingredients; } @Override public ItemStack assemble(SimpleContainer pContainer) { return output; } @Override public boolean canCraftInDimensions(int pWidth, int pHeight) { return true; } @Override public ItemStack getResultItem() { return output.copy(); } @Override public ResourceLocation getId() { return id; } @Override public RecipeSerializer<?> getSerializer() { return Serializer.INSTANCE; } @Override public RecipeType<?> getType() { return Type.INSTANCE; } public static class Type implements RecipeType<AlloyKilnRecipe> { private Type() {} public static final Type INSTANCE = new Type(); public static final String ID = "alloy_kiln_recipe"; } public static class Serializer implements RecipeSerializer<AlloyKilnRecipe> { public static final Serializer INSTANCE = new Serializer(); public static final ResourceLocation ID = new ResourceLocation(FF.MOD_ID, "alloy_kiln_recipe"); @Override public AlloyKilnRecipe fromJson(ResourceLocation pRecipeId, JsonObject pSerializedRecipe) { ItemStack output = ShapedRecipe.itemStackFromJson(GsonHelper.getAsJsonObject(pSerializedRecipe, "output")); JsonArray ingredients = GsonHelper.getAsJsonArray(pSerializedRecipe, "ingredients"); NonNullList<Ingredient> inputs = NonNullList.withSize(2, Ingredient.EMPTY); for (int i = 0; i < ingredients.size(); i++) { inputs.set(i, Ingredient.fromJson(ingredients.get(i))); } return new AlloyKilnRecipe(pRecipeId, output, inputs); } @Override public @Nullable AlloyKilnRecipe fromNetwork(ResourceLocation pRecipeId, FriendlyByteBuf pBuffer) { NonNullList<Ingredient> inputs = NonNullList.withSize(pBuffer.readInt(), Ingredient.EMPTY); for (int i = 0; i < inputs.size(); i++) { inputs.set(i, Ingredient.fromNetwork(pBuffer)); } ItemStack output = pBuffer.readItem(); return new AlloyKilnRecipe(pRecipeId, output, inputs); } @Override public void toNetwork(FriendlyByteBuf pBuffer, AlloyKilnRecipe pRecipe) { pBuffer.writeInt(pRecipe.getIngredients().size()); for (Ingredient ing : pRecipe.getIngredients()) { ing.toNetwork(pBuffer); } pBuffer.writeItemStack(pRecipe.getResultItem(), false); } } } And here is my recipe.json { "type": "forgedfactory:alloy_kiln_recipe", "ingredients": [ { "item": "minecraft:iron_ingot", "count": 3 }, { "item": "minecraft:gold_ingot" } ], "output": { "item": "minecraft:diamond", "count": 3 } } Could someone tell me what I would have to do? The getIngAmount method just returns 1 even though I have a count defined for the iron ingots.
    • forge installer version 43.1.7 for 1.19.2 won't download the jar file, only the json 
    • Stop bumping your post. This sounds like a issue with your install. Try deleting your .minecraft folder and re-installing the launcher. Beyond that it's not something we control. As we don't control the launcher.
    • Can someone help me with this
  • Topics

×
×
  • Create New...

Important Information

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