Jump to content

Recommended Posts

Posted

can you post your main mod class please (also, LOL @ the guy saying you should use MCCreator xD)

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

Your problem isn't with your texture.  It's with a sound.  According to your error log, there is a problem with it playing the step sound for the block.

 

Line 2303 in Render Global, the line causing the problem, is this:

this.mc.sndManager.playSound(block.stepSound.getBreakSound(), (float)par3 + 0.5F, (float)par4 + 0.5F, (float)par5 + 0.5F, (block.stepSound.getVolume() + 1.0F) / 2.0F, block.stepSound.getPitch() * 0.8F);

Since it's throwing a null, that means there is no getBreakSound() is returning null, when it should return the Step Sound

 

Try calling

this.setStepSound("sound name here");

in your constructor

Posted

Your problem isn't with your texture.  It's with a sound.  According to your error log, there is a problem with it playing the step sound for the block.

 

Line 2303 in Render Global, the line causing the problem, is this:

this.mc.sndManager.playSound(block.stepSound.getBreakSound(), (float)par3 + 0.5F, (float)par4 + 0.5F, (float)par5 + 0.5F, (block.stepSound.getVolume() + 1.0F) / 2.0F, block.stepSound.getPitch() * 0.8F);

Since it's throwing a null, that means there is no getBreakSound() is returning null, when it should return the Step Sound

 

Try calling

this.setStepSound("sound name here");

in your constructor

 

The sound was the problem? that is so stupid. Thank you so much

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

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