Jump to content

Recommended Posts

Posted

Hi. I'm new to modding (about 24 hours) but I have plenty of JAVA experience. I am trying to make several small mods just playing around with the API to get comfortable before I try anything big and one block I'm trying to add is a custom pressure plate.

I copied my pressure plate instantiation from block.Block.java and added a pressure plate class extends BlockPressurePlate to be able to call the constructor.

 

  Reveal hidden contents

 

 

  Reveal hidden contents

 

Forge seems to find the texture alright, but then it gives the error:

 

  Reveal hidden contents

 

While starting up minecraft. Then the game runs fine until the moment I place the second block of the recipe and the server starts shutting down before the game crashes and I have to stop the process through task manager.

 

My only thought is that it has to be something to do with my BlockObsidianPressurePlate class because that is the only difference between my code and the vanilla code. Any thoughts anyone?

 

___

 

It helps to register blocks. I had been playing with too many new items and forgot to register my block after making it. Thanks to diesieben07 for pointing out that there was no error message about my block.

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

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.