Overriding a base class is when you edit a normal vanilla class file in Minecraft and add it to your mod. So for example: If you make Mob Spawners drop themselves instead of breaking, then that's overriding a base class.
I also have a problem of my own when I added a new biome :/
Error:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT ba0d32 --------
Generated 8/07/12 4:47 PM
Minecraft: Minecraft 1.2.4
OS: Windows XP (x86) version 5.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Quadro NVS 285/PCI/SSE2 version 2.1.2, NVIDIA Corporation
java.lang.NullPointerException
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:232)
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:185)
at net.minecraft.src.BiomeGenBase.decorate(BiomeGenBase.java:340)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:511)
at net.minecraft.src.ChunkProvider.populate(ChunkProvider.java:195)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1150)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:106)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:651)
at net.minecraft.src.World.getBlockId(World.java:544)
at net.minecraft.src.SpawnerAnimals.canCreatureTypeSpawnAtLocation(SpawnerAnimals.java:204)
at net.minecraft.src.SpawnerAnimals.performSpawning(SpawnerAnimals.java:118)
at net.minecraft.src.World.tick(World.java:2847)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1926)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:893)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 3e987062 ----------
I got this error when I ran the "startclient.bat" (after I loaded a world) but I have no idea why. I haven't found my biome though, it just happens when I try to find one. :/
Biome Class
package net.minecraft.src;
import java.util.List;
import java.util.Random;
public class BiomeGenWoolForest extends BiomeGenBase
{
protected WorldGenWoolTrees worldGenWoolTrees;
protected WorldGenWoolForest worldGenWoolForest;
public BiomeGenWoolForest(int par1)
{
super(par1);
spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntitySheep.class, 5, 4, 4));
biomeDecorator.treesPerChunk = 10;
biomeDecorator.grassPerChunk = 2;
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
if (par1Random.nextInt(5) == 0)
{
return worldGenWoolForest;
}
/*if (par1Random.nextInt(10) == 0)
{
return worldGenBigTree;
}*/
else
{
return worldGenWoolTrees;
}
}
}
Hey I'm having an issue with this coding. I'm on the 'Block' Tutorial and I have written the code to be nearly exactly the same yet I still get this error when recompiling MCP:
Okay I did get the problem fixed with the mob not spawning, but now I have a new problem.
When my mob walks, it's legs don't rotate. The mob has no AI set on, so I don't know why it wouldn't swing his legs.
I created the model in Techne, and there are no errors or warnings at all.
Animation isn't automatic. How would the game know what is what and where to set its rotation for animation? Look at the setRotationAngles method in ModelBiped or any of the other model classes.
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT c4daa937 --------
Generated 7-7-12 22:09
Minecraft: Minecraft 1.2.5
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_05, Oracle Corporation
VM: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce 6200 TurboCache™/PCI/SSE2 version 2.1.2, NVIDIA Corporation
java.lang.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:398)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:412)
at net.minecraft.src.mod_WilderTools.load(mod_WilderTools.java:27)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:427)
at net.minecraft.client.Minecraft.run(Minecraft.java:789)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 6c7abfdf ----------
Help please dont check the names
You are trying to use something in a recipe which hasn't yet been created. You'll have to find it yourself unless you post your code.
For some reason my mods aren't loading. Minecraft will start, and my blocks are registered(I think), but the blocks won't show up. I can't craft them or use TooManyItems to find them. Maybe there is something I missed. I have only followed the tutorials up to the block tutorial. Help!
I also have a problem of my own when I added a new biome :/
Error:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT ba0d32 --------
Generated 8/07/12 4:47 PM
Minecraft: Minecraft 1.2.4
OS: Windows XP (x86) version 5.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Quadro NVS 285/PCI/SSE2 version 2.1.2, NVIDIA Corporation
java.lang.NullPointerException
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:232)
at net.minecraft.src.BiomeDecorator.decorate(BiomeDecorator.java:185)
at net.minecraft.src.BiomeGenBase.decorate(BiomeGenBase.java:340)
at net.minecraft.src.ChunkProviderGenerate.populate(ChunkProviderGenerate.java:511)
at net.minecraft.src.ChunkProvider.populate(ChunkProvider.java:195)
at net.minecraft.src.Chunk.populateChunk(Chunk.java:1150)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:106)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:651)
at net.minecraft.src.World.getBlockId(World.java:544)
at net.minecraft.src.SpawnerAnimals.canCreatureTypeSpawnAtLocation(SpawnerAnimals.java:204)
at net.minecraft.src.SpawnerAnimals.performSpawning(SpawnerAnimals.java:118)
at net.minecraft.src.World.tick(World.java:2847)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1926)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:893)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 3e987062 ----------
I got this error when I ran the "startclient.bat" (after I loaded a world) but I have no idea why. I haven't found my biome though, it just happens when I try to find one. :/
Biome Class
package net.minecraft.src;
import java.util.List;
import java.util.Random;
public class BiomeGenWoolForest extends BiomeGenBase
{
protected WorldGenWoolTrees worldGenWoolTrees;
protected WorldGenWoolForest worldGenWoolForest;
public BiomeGenWoolForest(int par1)
{
super(par1);
spawnableCreatureList.add(new SpawnListEntry(net.minecraft.src.EntitySheep.class, 5, 4, 4));
biomeDecorator.treesPerChunk = 10;
biomeDecorator.grassPerChunk = 2;
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
if (par1Random.nextInt(5) == 0)
{
return worldGenWoolForest;
}
/*if (par1Random.nextInt(10) == 0)
{
return worldGenBigTree;
}*/
else
{
return worldGenWoolTrees;
}
}
}
I've never seen an error like that when making a biome. I haven't ever added trees though. Remove the tree generation code and see if you still get the error. Then we know if it is causing it or not and we can look for a solution.
Hey I'm having an issue with this coding. I'm on the 'Block' Tutorial and I have written the code to be nearly exactly the same yet I still get this error when recompiling MCP:
src\minecraft\net\minecraft\src\mod_block.java:3: error '{' expected
public class mod_Block extend BaseMod
^
<spoiler/>
So yeah Please HELP!!!!!!
The error says what you need to do.
'{' expected
It says that a { is expected at this line:
public class mod_Block extend BaseMod
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I've never seen an error like that when making a biome. I haven't ever added trees though. Remove the tree generation code and see if you still get the error. Then we know if it is causing it or not and we can look for a solution.
The thing is though, I often get an error like this when exploring a new biome. It doesn't happen very often, but it's only this time it's really affecting me.
I'll remove the trees in the morning, but I got to go to sleep now
Hi TechGuy! Just like to thank for your tutorials. Check out my mod here! Link. I have one question though, do you know how to generate structures but not line by line and by loops, and draws the structure room by room? And also, how do villagers spawn in an NPC village? I don't think they are spawners.
Installing the Java Development Kit is the first thing you'll need to do. Get it here. Now you'll need to set up the java path. I'm not sure how to do it on Mac, but this is how you do it on Windows. Go to My Computer, right click on 'Computer' in the left bar, and select 'Properties'. Once in properties, select 'Advanced System Settings'. Click 'Environment Variables...', then under 'System Variables', go to 'Path'. Without deleting any current path in there, add this to the end.
C:\Program Files\Java\jdk1.7.0_03\bin;
. Make sure that your version is the same and it is in that same location. Just go to your C:/ drive and in program files look for Java, all your information for this will be in there if it is different.
when will the GUI tutorial be finished? not trying to rush you or anything, just wanted to know when I should check back on this thread.
many thanks for making these tutorials too, only ones I can actually read and understand (only had 4 months of Java programming lessons :/)
Can you make a section on how to make a block react to redstone. I have tried looking through the redstone lamp file but its not really helping.
Thanks!!! Also this is great post!!
Use this:
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
{
if (!par1World.isRemote)
{
if (par1World.isBlockIndirectlyGettingPowered(par2, par3, par4))
{
//do some stuff here
}
}
}
Anyway, yeah, I tested my biome and it let me load the world when I turned of the trees. But as soon as I turn them on, I start getting "biome decorator" errors. But it's only the error I showed you which stops me from using the world (which I still get ).
Hi TechGuy! Just like to thank for your tutorials. Check out my mod here! Link. I have one question though, do you know how to generate structures but not line by line and by loops, and draws the structure room by room? And also, how do villagers spawn in an NPC village? I don't think they are spawners.
I don't know how the villager spawning works. Try looking in Village.java or something. Here are 2 examples of loops. They would just go in your generate method.
for(int x = 0; x < 1; x++){ //Generation of the X-Axis, four blocks long
for(int y = 0; y < 25; y++){ //Generation of the Y-Axis, 20 blocks high
world.setBlockWithNotify(i + x, j + y, k, Block.planks.blockID); //Creates planks at that point in a 4x20 arrangement
}
}
for(int x = 0; x < 4; x++){ //Generation of the X-Axis, four blocks long
for(int z = 0; z < 4; z++){ //Generation of the Z-Axis, four blocks long
world.setBlockWithNotify(i + x, j + 2, k + z, Block.planks.blockID); //Creates planks at that point in a 4x4 arrangment.
}
}
Oh and also i get a weird TNT texture when i grow my crops with bonemeal.. i've made all the textures i needed but it changes.. i changed the grow stage to 3 and deleted some stages so i don't get what i dit wrong
I want to make text which appears on screen like in Thaumcraft:
All rendering of ingame stuff like that is handled in GuiIngame. You can follow the Gui-Text tutorial but just do it in the GuiIngame class. As long as you are willing to edit base classes, that is.
when will the GUI tutorial be finished? not trying to rush you or anything, just wanted to know when I should check back on this thread.
many thanks for making these tutorials too, only ones I can actually read and understand (only had 4 months of Java programming lessons :/)
Anyway, yeah, I tested my biome and it let me load the world when I turned of the trees. But as soon as I turn them on, I start getting "biome decorator" errors. But it's only the error I showed you which stops me from using the world (which I still get ).
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Well, seeing as you only want to generate your trees in a specific biome, you could just follow the specific biome generation tutorial in the "Other World Generation" section.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
When I try to do the recompile, it comes up with about 30 errors saying all this crap that I need to add like a semi-colon. I don't know how to post the whole code (since cmd doesn't allow it), so I'm not sure if this could give you any way to find help. Also, after all that, it says something like "try decompiling". So I do that and it says "error, try clean up" or something and that clears everything, I think.
What should I do??? Thanks if you can figure out what I mean!
I don't know how to post the whole code (since cmd doesn't allow it), so I'm not sure if this could give you any way to find help.
Just right click and choose select-all, then click out of cmd and do ctrl+c then paste it wherever you want to paste.
I am sorry i do not know how to do the spoiler so here is the errors i got
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
> Searching for javac.exe in C:\Program Files
> Searching for javac.exe in C:\Program Files (x86)
# 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 (x86)\Java\jdk7\bin\javac" -Xlint:-options -deprecation -g -s
ource 1.6 -target 1.6...' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\telelight.java:3: error: '{' expected
public class telelight extends BaseMod,BlockDragonEgg{
^
src\minecraft\net\minecraft\src\telelight.java:5: error: illegal start of expres
sion
public telelight new telelight(150, 0).setBlockName(telelight).setHardness(3F
).setResistance(4F).setLightValue(15F);{
^
src\minecraft\net\minecraft\src\telelight.java:5: error: not a statement
public telelight new telelight(150, 0).setBlockName(telelight).setHardness(3F
).setResistance(4F).setLightValue(15F);{
^
src\minecraft\net\minecraft\src\telelight.java:5: error: ';' expected
public telelight new telelight(150, 0).setBlockName(telelight).setHardness(3F
).setResistance(4F).setLightValue(15F);{
^
src\minecraft\net\minecraft\src\telelight.java:7: error: illegal start of expres
sion
public void load()
^
src\minecraft\net\minecraft\src\telelight.java:7: error: illegal start of expres
sion
public void load()
^
src\minecraft\net\minecraft\src\telelight.java:7: error: ';' expected
public void load()
^
src\minecraft\net\minecraft\src\telelight.java:9: error: unclosed string literal
telelight.iconIndex = ModLoader.addOverride("/mods/telelighti.png)
^
src\minecraft\net\minecraft\src\telelight.java:9: error: ';' expected
telelight.iconIndex = ModLoader.addOverride("/mods/telelighti.png)
^
src\minecraft\net\minecraft\src\telelight.java:10: error: illegal start of expre
ssion
telelight.blockIndexInTexture = ModLoader.addOverride("/mods/telelightb.
png)
^
src\minecraft\net\minecraft\src\telelight.java:10: error: unclosed string litera
l
telelight.blockIndexInTexture = ModLoader.addOverride("/mods/telelightb.
png)
^
src\minecraft\net\minecraft\src\telelight.java:10: error: ';' expected
telelight.blockIndexInTexture = ModLoader.addOverride("/mods/telelightb.
png)
^
src\minecraft\net\minecraft\src\telelight.java:11: error: illegal start of expre
ssion
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: not a statement
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: not a statement
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: not a statement
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: not a statement
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: illegal start of expre
ssion
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:17: error: illegal start of expre
ssion
public String getVersion()
^
src\minecraft\net\minecraft\src\telelight.java:17: error: ';' expected
public String getVersion()
^
src\minecraft\net\minecraft\src\telelight.java:22: error: reached end of file wh
ile parsing
}
^
29 errors
And here is what i wrote
package net.minecraft.src;
public class telelight extends BaseMod,BlockDragonEgg{
{
public telelight new telelight(150, 0).setBlockName(telelight).setHardness(3F).setResistance(4F).setLightValue(15F);{
I also have a problem of my own when I added a new biome :/
Error:
I got this error when I ran the "startclient.bat" (after I loaded a world) but I have no idea why. I haven't found my biome though, it just happens when I try to find one. :/
Biome Class
<spoiler>
' "C:\Program Files\Java
jdk.7.0_05\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1.... failed : 1
==ERRORS FOUND==
src\minecraft\net\minecraft\src\mod_block.java:3: error '{' expected
public class mod_Block extend BaseMod
^
<spoiler/>
So yeah Please HELP!!!!!!
Animation isn't automatic. How would the game know what is what and where to set its rotation for animation? Look at the setRotationAngles method in ModelBiped or any of the other model classes.
You are trying to use something in a recipe which hasn't yet been created. You'll have to find it yourself unless you post your code.
Post your code.
What kind of base class are you trying to override? A block, item? If it is a block you can just use:
I've never seen an error like that when making a biome. I haven't ever added trees though. Remove the tree generation code and see if you still get the error. Then we know if it is causing it or not and we can look for a solution.
The error says what you need to do.
It says that a { is expected at this line:
together they are powerful beyond imagination."
The thing is though, I often get an error like this when exploring a new biome. It doesn't happen very often, but it's only this time it's really affecting me.
I'll remove the trees in the morning, but I got to go to sleep now
I am not rude, i'm just telling the truth, with lies you will never win ! ~ by Castielq
Mac already has the JDK installed by default.
But where? Because it says that but when I add it in it gives me more errors.
many thanks for making these tutorials too, only ones I can actually read and understand (only had 4 months of Java programming lessons :/)
Thanks!!! Also this is great post!!
Anyway, yeah, I tested my biome and it let me load the world when I turned of the trees. But as soon as I turn them on, I start getting "biome decorator" errors. But it's only the error I showed you which stops me from using the world (which I still get ).
Make me
I don't know how the villager spawning works. Try looking in Village.java or something. Here are 2 examples of loops. They would just go in your generate method.
Post your code.
Thanks
Strength has a tutorial on that. I may do one but it willl be after everything else on the list.
Post your code.
All rendering of ingame stuff like that is handled in GuiIngame. You can follow the Gui-Text tutorial but just do it in the GuiIngame class. As long as you are willing to edit base classes, that is.
I don't know. Whenever I get time to.
Well then the error is definitely with the trees.
Custom NPC tutorial
together they are powerful beyond imagination."
Well, seeing as you only want to generate your trees in a specific biome, you could just follow the specific biome generation tutorial in the "Other World Generation" section.
together they are powerful beyond imagination."
When I try to do the recompile, it comes up with about 30 errors saying all this crap that I need to add like a semi-colon. I don't know how to post the whole code (since cmd doesn't allow it), so I'm not sure if this could give you any way to find help. Also, after all that, it says something like "try decompiling". So I do that and it says "error, try clean up" or something and that clears everything, I think.
What should I do??? Thanks if you can figure out what I mean!
Just right click and choose select-all, then click out of cmd and do ctrl+c then paste it wherever you want to paste.
I am sorry i do not know how to do the spoiler so here is the errors i got
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
> Searching for javac.exe in C:\Program Files
> Searching for javac.exe in C:\Program Files (x86)
# 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 (x86)\Java\jdk7\bin\javac" -Xlint:-options -deprecation -g -s
ource 1.6 -target 1.6...' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\telelight.java:3: error: '{' expected
public class telelight extends BaseMod,BlockDragonEgg{
^
src\minecraft\net\minecraft\src\telelight.java:5: error: illegal start of expres
sion
public telelight new telelight(150, 0).setBlockName(telelight).setHardness(3F
).setResistance(4F).setLightValue(15F);{
^
src\minecraft\net\minecraft\src\telelight.java:5: error: not a statement
public telelight new telelight(150, 0).setBlockName(telelight).setHardness(3F
).setResistance(4F).setLightValue(15F);{
^
src\minecraft\net\minecraft\src\telelight.java:5: error: ';' expected
public telelight new telelight(150, 0).setBlockName(telelight).setHardness(3F
).setResistance(4F).setLightValue(15F);{
^
src\minecraft\net\minecraft\src\telelight.java:7: error: illegal start of expres
sion
public void load()
^
src\minecraft\net\minecraft\src\telelight.java:7: error: illegal start of expres
sion
public void load()
^
src\minecraft\net\minecraft\src\telelight.java:7: error: ';' expected
public void load()
^
src\minecraft\net\minecraft\src\telelight.java:9: error: unclosed string literal
telelight.iconIndex = ModLoader.addOverride("/mods/telelighti.png)
^
src\minecraft\net\minecraft\src\telelight.java:9: error: ';' expected
telelight.iconIndex = ModLoader.addOverride("/mods/telelighti.png)
^
src\minecraft\net\minecraft\src\telelight.java:10: error: illegal start of expre
ssion
telelight.blockIndexInTexture = ModLoader.addOverride("/mods/telelightb.
png)
^
src\minecraft\net\minecraft\src\telelight.java:10: error: unclosed string litera
l
telelight.blockIndexInTexture = ModLoader.addOverride("/mods/telelightb.
png)
^
src\minecraft\net\minecraft\src\telelight.java:10: error: ';' expected
telelight.blockIndexInTexture = ModLoader.addOverride("/mods/telelightb.
png)
^
src\minecraft\net\minecraft\src\telelight.java:11: error: illegal start of expre
ssion
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: not a statement
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: not a statement
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: not a statement
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: not a statement
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: ';' expected
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:11: error: illegal start of expre
ssion
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###",
"#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), B
lock.glowStone});
^
src\minecraft\net\minecraft\src\telelight.java:17: error: illegal start of expre
ssion
public String getVersion()
^
src\minecraft\net\minecraft\src\telelight.java:17: error: ';' expected
public String getVersion()
^
src\minecraft\net\minecraft\src\telelight.java:22: error: reached end of file wh
ile parsing
}
^
29 errors
And here is what i wrote
package net.minecraft.src;
public class telelight extends BaseMod,BlockDragonEgg{
{
public telelight new telelight(150, 0).setBlockName(telelight).setHardness(3F).setResistance(4F).setLightValue(15F);{
public void load()
{
telelight.iconIndex = ModLoader.addOverride("/mods/telelighti.png)
telelight.blockIndexInTexture = ModLoader.addOverride("/mods/telelightb.png)
Modloader.addRecipe(new ItemStack(Block.telelight, 8), new Object [] {"###", "#@#", "###", Character.valueOf('#'), Block.obsidian, Character.valueOf('@'), Block.glowStone});
ModLoader.registerBlock(telelight);
ModLoader.addName (telelight, "telelight");
}
public String getVersion()
{
return "1.2.5";
}
}
Sorry for the length.
I believe that Strength's is only for fixed loot, I don't think that it covers semi-random loot