1
I'm making a mod, and something in Block.java won't work.
So I was trying to make my first mod, and I was going to add a block to start out. This is supposed to be a solid block that looks like StoneBrick, but shines out light.
I have the lines of code surrounding it, and it itself down below.
The error, it says:
That points at the first 'o' in 'Footstep'.
If anyone has a solution, please post.
I have the lines of code surrounding it, and it itself down below.
dragonEgg = (new BlockDragonEgg(122, 167)).setHardness(3F).setResistance(15F).setStepSound(soundStoneFootstep).setLightValue(0.125F).setBlockName("dragonEgg");
// NEW BLOCKS timoteo2000
glowyBrick = (new BlockGlowstoneBrick(168, stoneBrick)).setHardness(0.3F).setResistance(10F).setStepSound(soundStoneFootstep).setLightValue(3F).setBlockName("glowyBrick");
// End new blocks timoteo2000
Item.itemsList[cloth.blockID] = (new ItemCloth(cloth.blockID-256)).setItemName("cloth");
The error, it says:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\Block.java:935: error: cannot find symbol
glowyBrick = (new BlockGlowstoneBrick(168, stoneBrick)).setHardness(0.3F
).setStepSound(soundStoneFootstep).setLightValue(3F).setBlockName("glowyBrick");
^
symbol: class BlockGlowstoneBrick
location: class Block
That points at the first 'o' in 'Footstep'.
If anyone has a solution, please post.
Create an account or sign in to comment.
13
1
Finished the mod! Well, at least the parts I wanted for now. http://www.planetminecraft.com/mod/random-blocks-mod/
1
Yes, eclipse is free, and the textures will all copy from other textures since I don't want to have to use Forge API and ML.
My brother alexlester9 helped me out with it, he cleaned up the errors.
My brother alexlester9 helped me out with it, he cleaned up the errors.
1
meh. Is eclipse free? i had EditRocket till the trial ran out.
1
can i make the textures for this mod?
1
Actually, it wasn't that the Lightness was too high...it was that I forgot the .0 on the 3F
Thanks, I'll try to recompile again.
Thanks, I'll try to recompile again.
1
Its not MCP, your just not doing it right...
Use Eclipse... it helps with the coding.
Use Eclipse... it helps with the coding.
1
Just saw this post, I am using Eclipse. It's turning up no errors, and yet the same error happened even when I removed LightValue and StepSound.
1
It is my worst enemy..the posts I find on Google are ones by people even noobier than me. And well, I put this through a .java parser..and it was fine. MCP must be broken or something.
1
Well, the only .java that I have connected to the block is the 'BlockGlowyBrick.java' and I've fixed the errors in that.
1
Look, you are going to make a cool mod, but you don't seem to get the basic parts of it... Look, there is Google, it is your best friend.
1
well...
sometimes adding a new block isn't exactly going to work... I can't exactly say whats wrong, but its probably another .java that makes the Block Render, or something...
sometimes adding a new block isn't exactly going to work... I can't exactly say whats wrong, but its probably another .java that makes the Block Render, or something...
1
I just re-read this, and now I understand. This block wouldn't work because I have one of the settings (Lightness, Hardness, etc.) set too high or too low.
1
See? told you something was wrong. :3