1

I'm making a mod, and something in Block.java won't work.

timoteo2000's Avatar timoteo20002/19/12 8:49 am
2/19/2012 11:36 am
timoteo2000's Avatar timoteo2000
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.
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.
Posted by timoteo2000's Avatar
timoteo2000
Level 46 : Master Technomancer
46

Create an account or sign in to comment.

13

1
02/19/2012 11:36 am
Level 46 : Master Technomancer
timoteo2000
timoteo2000's Avatar
Finished the mod! Well, at least the parts I wanted for now. http://www.planetminecraft.com/mod/random-blocks-mod/
1
02/19/2012 9:43 am
Level 46 : Master Technomancer
timoteo2000
timoteo2000's Avatar
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.
1
02/19/2012 9:39 am
Level 16 : Journeyman Goblin
Hawkken
Hawkken's Avatar
meh. Is eclipse free? i had EditRocket till the trial ran out.
1
02/19/2012 9:20 am
Level 20 : Expert Dragonborn
poey199
poey199's Avatar
can i make the textures for this mod?
1
02/19/2012 9:07 am
Level 46 : Master Technomancer
timoteo2000
timoteo2000's Avatar
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.
1
02/19/2012 9:04 am
Level 51 : Grandmaster Princess
OfficialGamemode
OfficialGamemode's Avatar
Its not MCP, your just not doing it right...
Use Eclipse... it helps with the coding.
1
02/19/2012 9:13 am
Level 46 : Master Technomancer
timoteo2000
timoteo2000's Avatar
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
02/19/2012 9:02 am
Level 46 : Master Technomancer
timoteo2000
timoteo2000's Avatar
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
02/19/2012 8:57 am
Level 46 : Master Technomancer
timoteo2000
timoteo2000's Avatar
Well, the only .java that I have connected to the block is the 'BlockGlowyBrick.java' and I've fixed the errors in that.
1
02/19/2012 9:01 am
Level 51 : Grandmaster Princess
OfficialGamemode
OfficialGamemode's Avatar
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
02/19/2012 8:53 am
Level 51 : Grandmaster Princess
OfficialGamemode
OfficialGamemode's Avatar
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...
1
02/19/2012 9:04 am
Level 46 : Master Technomancer
timoteo2000
timoteo2000's Avatar
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
02/19/2012 9:04 am
Level 51 : Grandmaster Princess
OfficialGamemode
OfficialGamemode's Avatar
See? told you something was wrong. :3
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome