Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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??

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.