Jump to content

[1.7.2] Modelled things don't appear in creative tabs??


Recommended Posts

Posted

First of all, they show up perfectly fine in the Eclipse test environment:

 

axcs9u.png

 

But when I compile the mod and go into normal single-player they're just not there:

 

262085g.png

 

They clearly are all in that tab:

 

bluePot = new com.pixelmoncore.blocks.EntityBluePot().setCreativeTab(tabPixelmonCoreDecoration).setBlockName("bluePot");
GameRegistry.registerBlock(bluePot, "bluePot");
brownPot = new com.pixelmoncore.blocks.EntityBrownPot().setCreativeTab(tabPixelmonCoreDecoration).setBlockName("brownPot");
GameRegistry.registerBlock(brownPot, "brownPot");
PC = new com.pixelmoncore.blocks.EntityPC().setCreativeTab(tabPixelmonCoreDecoration).setBlockName("PC");
GameRegistry.registerBlock(PC, "PC");
Plant = new com.pixelmoncore.blocks.EntityPlant().setCreativeTab(tabPixelmonCoreDecoration).setBlockName("plant");
GameRegistry.registerBlock(Plant, "Plant");
CuttingBoard = new com.pixelmoncore.blocks.EntityCuttingBoard().setCreativeTab(tabPixelmonCoreDecoration).setBlockName("cuttingboard");
GameRegistry.registerBlock(CuttingBoard, "CuttingBoard");
Skillet = new com.pixelmoncore.blocks.EntitySkillet().setCreativeTab(tabPixelmonCoreDecoration).setBlockName("skillet");
GameRegistry.registerBlock(Skillet, "Skillet");

 

So why don't they show up after compiling??

Posted

Are your models in assets?  Are you sure the assets are exported properly (into correct locations in resulting jar)?  Do you see any console errors related to the models?

 

Also, it seems to be worse that just not showing the models, it doesn't even have a space for them.  To me that means that the item itself isn't registered to the tab.  I know your code and your Eclipse testing shows that they do work, but obviously something is wrong in the exported version.

 

I would add debug console statements to the constructors of those items to confirm that they are indeed being created.  You may want to print out all the items in the game in the postInit() portion of the FML life cycle, to confirm that they are there.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.