When I click the Run option in Eclipse, i get this error at the bottom under the Console tab
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredField(Unknown Source)
at Start.main(Start.java:12)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more
What should I do? There are no errors in any of the classes I edited or anything.
When I click the Run option in Eclipse, i get this error at the bottom under the Console tab
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredField(Unknown Source)
at Start.main(Start.java:12)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more
What should I do? There are no errors in any of the classes I edited or anything.
Don't compile with eclipse, use mcp's recompile & startclient .bat files (.sh if your on mac)
Don't compile with eclipse, use mcp's recompile & startclient .bat files (.sh if your on mac)
What if when i recompile i get this error:
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
# found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa
ram csvs, astyle, astyle config
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files\Java\jdk1.7.0_04\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\mod_MoreSwords.java:7: error: <identifier> expected
GlassSword.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/
glasssword.png");
^
src\minecraft\mod_MoreSwords.java:8: error: <identifier> expected
ModLoader.addName(GlassSword, "Glass Sword");
^
src\minecraft\mod_MoreSwords.java:8: error: <identifier> expected
ModLoader.addName(GlassSword, "Glass Sword");
^
src\minecraft\mod_MoreSwords.java:8: error: illegal start of type
ModLoader.addName(GlassSword, "Glass Sword");
^
src\minecraft\mod_MoreSwords.java:9: error: <identifier> expected
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: illegal start of type
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: ')' expected
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: ';' expected
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: <identifier> expected
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: <identifier> expected
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: illegal start of type
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: <identifier> expected
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: ';' expected
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: illegal start of type
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: <identifier> expected
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:9: error: ';' expected
ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[]
^
src\minecraft\mod_MoreSwords.java:11: error: illegal start of type
" * ", " * ", " X ",
^
src\minecraft\mod_MoreSwords.java:11: error: <identifier> expected
" * ", " * ", " X ",
^
src\minecraft\mod_MoreSwords.java:11: error: ';' expected
" * ", " * ", " X ",
^
src\minecraft\mod_MoreSwords.java:11: error: illegal start of type
" * ", " * ", " X ",
^
src\minecraft\mod_MoreSwords.java:11: error: <identifier> expected
" * ", " * ", " X ",
^
src\minecraft\mod_MoreSwords.java:11: error: <identifier> expected
" * ", " * ", " X ",
^
src\minecraft\mod_MoreSwords.java:12: error: illegal start of type
'X', Item.stick, '*', Block.glass
^
src\minecraft\mod_MoreSwords.java:12: error: ';' expected
'X', Item.stick, '*', Block.glass
^
src\minecraft\mod_MoreSwords.java:12: error: <identifier> expected
'X', Item.stick, '*', Block.glass
^
src\minecraft\mod_MoreSwords.java:12: error: <identifier> expected
'X', Item.stick, '*', Block.glass
^
src\minecraft\mod_MoreSwords.java:12: error: illegal start of type
'X', Item.stick, '*', Block.glass
^
src\minecraft\mod_MoreSwords.java:12: error: ';' expected
'X', Item.stick, '*', Block.glass
^
src\minecraft\mod_MoreSwords.java:12: error: <identifier> expected
'X', Item.stick, '*', Block.glass
^
src\minecraft\mod_MoreSwords.java:13: error: illegal start of type
}));
^
src\minecraft\mod_MoreSwords.java:13: error: <identifier> expected
}));
^
31 errors
==================
!! Can not find server sources, try decompiling !!
Press any key to continue . . .
yes, i am trying to make my own swords mod, but I'm not planning to release it for download cause people will complain that I "copied" the More Swords Mod already made. And also, I didn't copy his mod, i just thought it was a good idea and wanted to try to make my own.
Whenever I run minecraft (startclient.bat) It crashes and says "Image Fuse.png Not Found". I got all the code right, and I put Fuse.png in the mcp/eclipse/client directory, but it still can't find it.
Whenever I run minecraft (startclient.bat) It crashes and says "Image Fuse.png Not Found". I got all the code right, and I put Fuse.png in the mcp/eclipse/client directory, but it still can't find it.
Well, If I helped anyone today, that little green button of mine is always up for some clicks also, anyone can feel free to message me for help with stuff, and I'll try my best to help!
Well, If I helped anyone today, that little green button of mine is always up for some clicks also, anyone can feel free to message me for help with stuff, and I'll try my best to help!
I'll click dat little button of yours if you want to help me with the problem I got earlier today...
If you do, I'll be glad to click the green button with the arrow pointing up on it!
The problem is on the following quote:
I got a problem (again). I wanted to generate a block the same way as pumpkins does, so I used the WorldGenPumpkin class file and I changed the pumpkin for the block I wanted to use. I remembered that it worked in 1.8.1 when I modded minecraft without modloader and I thought that it would work again. I get no errors when I recompile, but the block is nowhere to be seen!
Here's the code:
package net.minecraft.src;
import java.util.Random;
public class WorldGenStarBlock extends WorldGenerator
{
public WorldGenStarBlock()
{
}
public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5)
{
for (int i = 0; i < 64; i++)
{
int j = (par3 + par2Random.nextInt(8)) - par2Random.nextInt(8);
int k = (par4 + par2Random.nextInt(4)) - par2Random.nextInt(4);
int l = (par5 + par2Random.nextInt(8)) - par2Random.nextInt(8);
if (par1World.isAirBlock(j, k, l) && par1World.getBlockId(j, k - 1, l) == Block.grass.blockID && mod_DatMod.StarBlock.canPlaceBlockAt(par1World, j, k, l))
{
par1World.setBlockAndMetadata(j, k, l, mod_DatMod.StarBlock.blockID, par2Random.nextInt(4));
}
}
return true;
}
}
I'll click dat little button of yours if you want to help me with the problem I got earlier today...
If you do, I'll be glad to click the green button with the arrow pointing up on it!
The problem is on the following quote:
...Hmm I would suggest also adding the block the way techguy has shown on the tutorial, and then trying, the worldgen may be not placing the block due to the fact that the block hasn't been defined as a block yet...
...Hmm I would suggest also adding the block the way techguy has shown on the tutorial, and then trying, the worldgen may be not placing the block due to the fact that the block hasn't been defined as a block yet...
It's already defined as a block, since I get no error while recompiling. If it wasn't, I would get an error like: 'cannot find symbol'.
...I think.
I see... What if you added the rest of the code from the tut? or is it already there?
I took everything I need for my block from the block tutorial, though I took everything from the pumpkin generation class and changed it so it could generate the Star Block. I used a test recipe to craft the block and it works like it should. It's like if there's something that is supposed to activate the WorldGenStarBlock.
I even tried with the old code (changing the necessary stuff).
I took everything I need for my block from the block tutorial, though I took everything from the pumpkin generation class and changed it so it could generate the Star Block. I used a test recipe to craft the block and it works like it should. It's like if there's something that is supposed to activate the WorldGenStarBlock.
I even tried with the old code (changing the necessary stuff).
hmm... wish I could help you more, but I haven't done more than skim over the tutorial for generation, but if you look in it, there might be something... sorry I couldn't be of more assistance...
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
What should I do? There are no errors in any of the classes I edited or anything.
package net.minecraft.src; public class mod_test extends BaseMod { public static final Block TestBlock = new Block(160, 0).setBlockName("Test Block").setHardness(3F).setResistance(4F).setLightValue(1F); public void load() { ModLoader.addName(testblock,"Test Block"); ModLoader.registerBlock(testblock); testblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/russo/testblock.png"); ModLoader.addRecipe(new ItemStack(testblock,1), new Object []{ "X", Character.valueOf('X'), Block.dirt}); } public String getVersion() { return "1.2.5"; } }It is saying that it cannot find the variable ''testblock'', but am I using it as variable ? I didn't understand...
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDon't compile with eclipse, use mcp's recompile & startclient .bat files (.sh if your on mac)
the issue is in this line
public static final Block TestBlock = new Block(160, 0).setBlockName("Test Block").setHardness(3F).setResistance(4F).setLightValue(1F);it should be more along the lines of
public static final Block TestBlock = new BlockStone(160, 0).setBlockName("Test Block").setHardness(3F).setResistance(4F).setLightValue(1F);-
View User Profile
-
View Posts
-
Send Message
Curse PremiumBlockStone is just something I used, it could be BlockWood, BlockDirt, BlockIron, it just depends what you want the material to be
What if when i recompile i get this error:
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) == # found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa ram csvs, astyle, astyle config == Recompiling client == > Cleaning bin > Recompiling '"C:\Program Files\Java\jdk1.7.0_04\bin\javac" -Xlint:-options -deprecation -g - source 1.6 -target 1....' failed : 1 == ERRORS FOUND == src\minecraft\mod_MoreSwords.java:7: error: <identifier> expected GlassSword.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/ glasssword.png"); ^ src\minecraft\mod_MoreSwords.java:8: error: <identifier> expected ModLoader.addName(GlassSword, "Glass Sword"); ^ src\minecraft\mod_MoreSwords.java:8: error: <identifier> expected ModLoader.addName(GlassSword, "Glass Sword"); ^ src\minecraft\mod_MoreSwords.java:8: error: illegal start of type ModLoader.addName(GlassSword, "Glass Sword"); ^ src\minecraft\mod_MoreSwords.java:9: error: <identifier> expected ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: illegal start of type ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: ')' expected ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: ';' expected ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: <identifier> expected ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: <identifier> expected ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: illegal start of type ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: <identifier> expected ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: ';' expected ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: illegal start of type ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: <identifier> expected ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:9: error: ';' expected ModLoader.addRecipe(new ItemStack(GlassSword, 1, new Object[] ^ src\minecraft\mod_MoreSwords.java:11: error: illegal start of type " * ", " * ", " X ", ^ src\minecraft\mod_MoreSwords.java:11: error: <identifier> expected " * ", " * ", " X ", ^ src\minecraft\mod_MoreSwords.java:11: error: ';' expected " * ", " * ", " X ", ^ src\minecraft\mod_MoreSwords.java:11: error: illegal start of type " * ", " * ", " X ", ^ src\minecraft\mod_MoreSwords.java:11: error: <identifier> expected " * ", " * ", " X ", ^ src\minecraft\mod_MoreSwords.java:11: error: <identifier> expected " * ", " * ", " X ", ^ src\minecraft\mod_MoreSwords.java:12: error: illegal start of type 'X', Item.stick, '*', Block.glass ^ src\minecraft\mod_MoreSwords.java:12: error: ';' expected 'X', Item.stick, '*', Block.glass ^ src\minecraft\mod_MoreSwords.java:12: error: <identifier> expected 'X', Item.stick, '*', Block.glass ^ src\minecraft\mod_MoreSwords.java:12: error: <identifier> expected 'X', Item.stick, '*', Block.glass ^ src\minecraft\mod_MoreSwords.java:12: error: illegal start of type 'X', Item.stick, '*', Block.glass ^ src\minecraft\mod_MoreSwords.java:12: error: ';' expected 'X', Item.stick, '*', Block.glass ^ src\minecraft\mod_MoreSwords.java:12: error: <identifier> expected 'X', Item.stick, '*', Block.glass ^ src\minecraft\mod_MoreSwords.java:13: error: illegal start of type })); ^ src\minecraft\mod_MoreSwords.java:13: error: <identifier> expected })); ^ 31 errors ================== !! Can not find server sources, try decompiling !! Press any key to continue . . .yes, i am trying to make my own swords mod, but I'm not planning to release it for download cause people will complain that I "copied" the More Swords Mod already made. And also, I didn't copy his mod, i just thought it was a good idea and wanted to try to make my own.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIt would seem you've forgotten to add the resources (textures for the block) but I could tell better the issue if I saw the code you have written.
that's all i can tell from the error log though, if that doesn't fix the issue, then we may need to get some more experienced help
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumtry mcp/eclipse/client/bin/RestOfYourPath/Fuse.png
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'll click dat little button of yours if you want to help me with the problem I got earlier today...
If you do, I'll be glad to click the green button with the arrow pointing up on it!
The problem is on the following quote:
I have made an enderdragon spawn egg, but want it only usable in the end. I found where to put the code, I just a need a boolean for the world.
edit: Sorry about the wording in this post it all seems awkward.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium...Hmm I would suggest also adding the block the way techguy has shown on the tutorial, and then trying, the worldgen may be not placing the block due to the fact that the block hasn't been defined as a block yet...
It's already defined as a block, since I get no error while recompiling. If it wasn't, I would get an error like: 'cannot find symbol'.
...I think.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'd try anyways... just to be sure...
It's there, line 14 in the mod_*** class:
public static final Block StarBlock = new BlockStar(168, 0).setBlockName("starblock").setHardness(60F).setResistance(3000F).setLightValue(1F);-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm sorry to hear that, I encourage you to keep trying, Mods don't always happen over night...
I see... What if you added the rest of the code from the tut? or is it already there?
I took everything I need for my block from the block tutorial, though I took everything from the pumpkin generation class and changed it so it could generate the Star Block. I used a test recipe to craft the block and it works like it should. It's like if there's something that is supposed to activate the WorldGenStarBlock.
I even tried with the old code (changing the necessary stuff).
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumhmm... wish I could help you more, but I haven't done more than skim over the tutorial for generation, but if you look in it, there might be something... sorry I couldn't be of more assistance...