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

I used the .setBackgroundImageName() method, but that automatically assumes you have the GUI texture in the minecraft folder with all the default textures.

Hmm... Do you have the texture created allready?

  • Author

Hmm... Do you have the texture created allready?

 

Yep. the problem is if I do .setBackgroundImageName(MODID + ":" "textures/gui/creativeTab.png") It doesn't work

Yep. the problem is if I do .setBackgroundImageName(MODID + ":" "textures/gui/creativeTab.png") It doesn't work

 

Maybe try this:

 

.setBackgroundImageName(MODID + ":" "creativeTab") 

  • Author

Yep. the problem is if I do .setBackgroundImageName(MODID + ":" "textures/gui/creativeTab.png") It doesn't work

 

Maybe try this:

 

.setBackgroundImageName(MODID + ":" "creativeTab") 

 

Didn't change anything  :P

try

.setBackgroundImageName(MODID + ":" + "creativeTab")

 

And if that doesn't work, check your console for errors, it will tell you if it failed to load an image.  Copy that error and post it.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

try

.setBackgroundImageName(MODID + ":" + "creativeTab")

 

And if that doesn't work, check your console for errors, it will tell you if it failed to load an image.  Copy that error and post it.

 

Here is the error

 

Failed to load texture: textures/gui/container/creative_inventory/tab_financialmod:creativeTab

java.io.FileNotFoundException: textures/gui/container/creative_inventory/tab_financialmod:creativeTab

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35) ~[simpleTexture.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45) [TextureManager.class:?]

at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:813) [GuiContainerCreative.class:?]

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93) [GuiContainer.class:?]

at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44) [inventoryEffectRenderer.class:?]

at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673) [GuiContainerCreative.class:?]

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137) [EntityRenderer.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

 

Try creating additional folders to match the directory in the console. So your directory in your resource folder should be this:

textures/gui/container/creative_inventory/creativeTab.png

 

It says it couldn't find the file at the directory mentioned above.

 

  • Author

Try creating additional folders to match the directory in the console. So your directory in your resource folder should be this:

textures/gui/container/creative_inventory/creativeTab.png

 

It says it couldn't find the file at the directory mentioned above.

 

I already tried that, it didn't work

  • Author

The error SHOULD be "MODID:textures/gui/creativeTab.png" cannot be found, but it is giving a whole different location

  • Author

You can't actually alter the tab background to a texture in your assets folder. Look at GuiContainerCreative where it draws the background.

 

I already did. There is a string in there that sets the default texture path. How would I override it?

  • Author

Found out how to do it. I had to create a minecraft folder in my assets folder

  • Author

Which is what I said.

 

You said I can't do it from within my mods assets folder, but I just did  ::)

  • Author

It's not your mods assets folder. It's minecraft's.

 

Well, it is in the assets folder, so lets leave it at that  :D

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.