Jump to content

[Solved] Block rendered as Item, crash when placed [1.7.2]


Recommended Posts

Posted

I updated my Mod from 1.6.4, works fine in eclipse so I wanted to test it in a real Minecraft copy.

 

When I try to open the creativeTab with the blocks (I only have blocks) Minecraft chrashes:

 

  Reveal hidden contents

 

 

When I spawn the item with

/give xTeNNoXx tennox_assemblymod:normal

it is rendered like an item:

 

ce6027eab3db89e668b517beaa3ea3ed.png

 

And when I try to place it, this error comes up:

 

  Reveal hidden contents

 

Posted

Hi

 

My Forge 1.7.2 version is a lot less obfuscated than yours so I can't see the functions causing the problem.

 

My guess is that your Item (ItemBlock) hasn't been registered properly.  I haven't done that in 1.7.2 yet so I'm stuck there.

 

-TGG

Posted
  On 3/21/2014 at 11:14 PM, TheGreyGhost said:

Hi

 

My Forge 1.7.2 version is a lot less obfuscated than yours so I can't see the functions causing the problem.

 

My guess is that your Item (ItemBlock) hasn't been registered properly.  I haven't done that in 1.7.2 yet so I'm stuck there.

 

-TGG

 

I think you got something wrong. The crashed occur in the real Minecraft, completely obfuscated and shit. The decompiled one in Eclipse is running perfectly fine. O.o

 

I could recreate the second error like this:

 

  Reveal hidden contents

 

 

What am I missing? some block/item registering in 1.7?

Posted

According to your crashlog, Item.getIdFromItem(this.field_151002_e) is returning with a -1 for the block ID for that ITEM. So, yeah your item in not registered with a block properly.

Posted
  On 3/22/2014 at 2:12 AM, coolboy4531 said:

Do all your registering stuff in preInit (FMLPreInitializationEvent)

 

That's the solution. Thanks you very 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.