Jump to content

Recommended Posts

Posted

Everytime I've used forge I've had this problem. I dont have an assets folder. For some reason my setup goes forge\mcp\eclipse\Minecraft\bin\delicioussurvival\textures\items

 

I've tried adding an assets folder and that mucks everything up. Then I tried renaming register icon location a bunch of times. Nothing. Still just the same pink and black square. Anyway heres the code;

 

 

 

 
package delicioussurvival;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemFood;

public class FoodLamb extends ItemFood
{

public FoodLamb(int id, int hunger, float saturation, boolean wolffood) {
	super(id, hunger, saturation, wolffood);

}
  
@SideOnly(Side.CLIENT)
public void registerIcon(IconRegister par1IconRegister) {
	this.itemIcon = par1IconRegister.registerIcon("delicioussurvival:lamb");

}


}
  

 

So what am I doing wrong?

 

 

Posted
  On 8/7/2013 at 2:30 AM, hydroflame said:

mcp/src/minecraft/assets/modid/textures/items/myitm.png

 

I already tried that. I dont have an assets folder there either.

It goes mcp/src/minecraft/modid/textures/items

Posted

It's better if you use the unlocalized name... It's WAY easier...even for me!

 

Replace your this.itemIcon with this:

this.itemIcon = reg.registerIcon(YOURMOD.modid + ":" + this.getUnlocalizedName());

 

Add this to your item registry(Main class)

EXAMPLE:

ItemYOURITEM = new ItemYOURITEM(5004).setUnlocalizedName("UNLOCALIZED NAME").setCreativeTab(YOURTABTab);
	LanguageRegistry.addName(ItemYOURITEM, "In-Game-Name");

 

After that... Do this with your item.png:

item.UNLOCALIZEDNAME.png

So all you have to do is paste in your Unlocalized name you wrote down in the registry.

(The unlocalized name can be whatever you want... Just remember it for the .png)

Posted
  On 8/7/2013 at 8:57 PM, Channel_3 said:

  Quote

mcp/src/minecraft/assets/modid/textures/items/myitm.png

 

I already tried that. I dont have an assets folder there either.

It goes mcp/src/minecraft/modid/textures/items

Did you try making the folder yourself ?

I don't think your modid folder was here at the beginning, was it ?  :P

Posted
  On 8/7/2013 at 9:29 PM, MCBrony_614 said:

It's better if you use the unlocalized name... It's WAY easier...even for me!

 

Replace your this.itemIcon with this:

this.itemIcon = reg.registerIcon(YOURMOD.modid + ":" + this.getUnlocalizedName());

 

Add this to your item registry(Main class)

EXAMPLE:

ItemYOURITEM = new ItemYOURITEM(5004).setUnlocalizedName("UNLOCALIZED NAME").setCreativeTab(YOURTABTab);
	LanguageRegistry.addName(ItemYOURITEM, "In-Game-Name");

 

After that... Do this with your item.png:

item.UNLOCALIZEDNAME.png

So all you have to do is paste in your Unlocalized name you wrote down in the registry.

(The unlocalized name can be whatever you want... Just remember it for the .png)

 

That didnt work either. Still the same. Not only that but that new code is bunk, its full of errors :/

Posted

try looking the wiki for

 

"hydroflame guide to textures"

 

pretty sure it will solve anything

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

sure you're angry. but it has never failed, follow the instructions and i promise itll work

 

  Quote
Everytime I've used forge I've had this problem. I dont have an assets folder. For some reason my setup goes forge\mcp\eclipse\Minecraft\bin\delicioussurvival\textures\items

 

  On 8/7/2013 at 8:57 PM, Channel_3 said:

  Quote

mcp/src/minecraft/assets/modid/textures/items/myitm.png

 

I already tried that. I dont have an assets folder there either.

It goes mcp/src/minecraft/modid/textures/items

 

well then create it!

 

 

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted
  On 8/13/2013 at 7:33 PM, hydroflame said:

sure you're angry. but it has never failed, follow the instructions and i promise itll work

 

  Quote
Everytime I've used forge I've had this problem. I dont have an assets folder. For some reason my setup goes forge\mcp\eclipse\Minecraft\bin\delicioussurvival\textures\items

 

  Quote

  Quote

mcp/src/minecraft/assets/modid/textures/items/myitm.png

 

I already tried that. I dont have an assets folder there either.

It goes mcp/src/minecraft/modid/textures/items

 

well then create it!

 

One of the first things I said when I posted this was I tried making an assets folder and it mucked everything up, genius.

Posted
  Quote
it mucked everything up

you: "nothign works fix IT!!!"

 

what screws up when you do that, what are the symptoms. the game crash ? eclipse doesnt boot? the moon turns red?

 

 

  Quote
genius

you want to do it all by yourself?

 

how come its working for literally everyone else except you. because you did a small mistake and didnt pay attention to something (idk what but something)

 

 

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

Asking for help -- expecting people to help -- ignoring -- getting mad at the people that are trying to help... Its mostly not such a good idea to attack people that are willing to help you, you should try to read through every possible answer to your problem in detail so that you won't walk into a ton of walls while fighting off your problems.

 

Now i think that whenever you create the assets folder its not "mucking everything up", you probably haven't set the icons for your items/blocks or whatever correctly. Read through hydroflames guide and it'll all be solved.

Posted
  On 8/13/2013 at 7:42 PM, hydroflame said:

  Quote
it mucked everything up

you: "nothign works fix IT!!!"

 

what screws up when you do that, what are the symptoms. the game crash ? eclipse doesnt boot? the moon turns red?

 

 

  Quote
genius

you want to do it all by yourself?

 

how come its working for literally everyone else except you. because you did a small mistake and didnt pay attention to something (idk what but something)

 

I'm just asking for help. But not from you or your useless guides. So go away.

 

 

  Quote

Asking for help -- expecting people to help -- ignoring -- getting mad at the people that are trying to help... Its mostly not such a good idea to attack people that are willing to help you, you should try to read through every possible answer to your problem in detail so that you won't walk into a ton of walls while fighting off your problems.

 

Now i think that whenever you create the assets folder its not "mucking everything up", you probably haven't set the icons for your items/blocks or whatever correctly. Read through hydroflames guide and it'll all be solved.

 

I'm not ignoring anyone's advice I promise you. I followed his advice and it didnt work.

 

Is there anyone on this forum who can actually help me? I've tried every possible solution

Posted

LOL found it

 

  Quote
I'm just asking for help. But not from you or your useless guides. So go away.

oh ok, well then ill keep my useless guide and my solutions to myself.

 

i mean its working for me and i have no real reason to share it with you if you "dont want my help"

 

have a good day ;)

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted
  On 8/13/2013 at 8:13 PM, hydroflame said:

LOL found it

 

  Quote
I'm just asking for help. But not from you or your useless guides. So go away.

oh ok, well then ill keep my useless guide and my solutions to myself.

 

i mean its working for me and i have no real reason to share it with you if you "dont want my help"

 

have a good day ;)

 

Bye  :)

Posted
  On 8/7/2013 at 2:30 AM, hydroflame said:

mcp/src/minecraft/assets/modid/textures/items/myitm.png

 

Hi hydroflame,

 

I was having the same problem as Channel_3, but setting up my files as you suggested fixed it. The only thing is I had to change the folder name and reference to lowercase. (And create all of the folders, of course.) Thanks!

Posted
  On 8/14/2013 at 4:59 AM, Lunakki said:

  Quote

mcp/src/minecraft/assets/modid/textures/items/myitm.png

 

Hi hydroflame,

 

I was having the same problem as Channel_3, but setting up my files as you suggested fixed it. The only thing is I had to change the folder name and reference to lowercase. (And create all of the folders, of course.) Thanks!

LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL!!!!!!!!!!!!!!!!!!!!!!!!

 

no bro

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted
  On 8/14/2013 at 1:44 PM, hydroflame said:

  Quote

  Quote

mcp/src/minecraft/assets/modid/textures/items/myitm.png

 

Hi hydroflame,

 

I was having the same problem as Channel_3, but setting up my files as you suggested fixed it. The only thing is I had to change the folder name and reference to lowercase. (And create all of the folders, of course.) Thanks!

LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL!!!!!!!!!!!!!!!!!!!!!!!!

 

no bro

 

Obviously he doesnt have the same problem, because not only was that one of the first things I tried, I literally just tried it again to double check. And guess what? It didnt work. Again.

I came here looking for help because I assumed this was a community of programmers that knew a lot more than me when it comes to forge, considering I'm like intermediate at best.

Instead I'm being told over and over again to do what I've been doing this whole time. Seriously guys?

Posted

Could I see your code for registering your blocks/items, and the paths for where the textures are kept?

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Posted

If you're using Eclipse, make sure that you refresh Eclipse after changing anything to-do with textures, that's what fixed it for me.

 

You do this by selecting the project and using F5 (or right click->Refresh).

 

If you're using 'the Pahimar set-up', make sure that you create a folder called resources in your project, that's where you put the assets folder and make the resources folder a source folder, that fixes it.

"Thinking that coding is the nerdy IT guy at work rebooting your computer is like thinking that music is what happens when the piano tuner comes round." - Ed Rex

Posted
  On 8/15/2013 at 8:54 AM, VivaDaylight3 said:

If you're using Eclipse, make sure that you refresh Eclipse after changing anything to-do with textures, that's what fixed it for me.

 

You do this by selecting the project and using F5 (or right click->Refresh).

 

If you're using 'the Pahimar set-up', make sure that you create a folder called resources in your project, that's where you put the assets folder and make the resources folder a source folder, that fixes it.

 

I don't think that is the problem... But I am still wanting to see his code and his directories...

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Posted
  On 8/15/2013 at 3:49 AM, Channel_3 said:

Obviously he doesnt have the same problem, because not only was that one of the first things I tried, I literally just tried it again to double check. And guess what? It didnt work. Again.

I came here looking for help because I assumed this was a community of programmers that knew a lot more than me when it comes to forge, considering I'm like intermediate at best.

Instead I'm being told over and over again to do what I've been doing this whole time. Seriously guys?

If you did it, post a screenshot of your texture path in your file system, and related code.

Proof is better than words.

 

Also, it would be nice to explain yourself.

  Quote

One of the first things I said when I posted this was I tried making an assets folder and it mucked everything up,

Because creating a new empty folder never "mucked everything up" in the whole history of computerkind.

Did you push a self-destruction button or what ?  :P

Posted
  Quote
Did you push a self-destruction button or what ?

im pretty sure forge has a script that does that

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Verified users can now unlock a $100 OFF Temu Coupon Code using the verified promo code [ALF401700]. This Temu $100 OFF code works for both new and existing customers and can be used to redeem up to 50% off your next order. Our exclusive Temu coupon code [ALF401700] delivers a flat $100 OFF on top of existing deals. First-time customers using code ALF401700 can save an extra 100% off select items. Returning users also qualify for an automatic $100 OFF discount just by applying this code at checkout. But wait—there’s more. With our Temu coupon codes for 2025, users can score up to 90% OFF on clearance items. Whether you’re shopping in the USA, Canada, UK, or elsewhere, Temu promo code ALF401700 unlocks extra discounts tailored to your account. Some users are saving 100% on items using this 2025 Temu promo code. 🔥 Temu Coupon Highlights Using Code [ALF401700]: Temu new user code – ALF401700: Save 50% off your first order + $100 OFF. Temu promo for existing customers – ALF401700: Enjoy flat $100 OFF instantly. Global availability: Works in the USA, UK, Canada, Germany, France, Japan, Chile, Colombia, Malaysia, Mexico, South Korea, Philippines, Saudi Arabia, Qatar, Pakistan, and more. Top 2025 Coupon Deal: Get $200 OFF plus 100% bonus discounts using code ALF401700. Top-Ranked Temu Deals for 2025 (Coupon Code: ALF401700): ✅ Temu $100 OFF Memorial Day Sale — Use ALF401700 ✅ Temu First Order Coupon — Use ALF401700 for 50% + $100 OFF ✅ Temu USA Coupon Code — Save $100 instantly with ALF401700 ✅ Temu Japan, Germany, Chile Codes — All support ALF401700 ✅ Temu Reddit Discount – $100 OFF: Valid for both new and old users ✅ Temu Coupon Bundle 2025 — $100 OFF + up to 50% slash ✅ 100% OFF Free Gift Code — Use ALF401700, no invite needed ✅ Temu Sign-Up Bonus Promo — Get a welcome $100 OFF instantly ✅ Free Temu Code for New Users — Use ALF401700, no referral required  Temu Clearance Codes 2025 — Use ALF401700 for 85–100% discounts Why ALF401700 is the Best Temu Code in 2025 Using Temu code ALF401700 is your ticket to massive savings, free shipping, first-order discounts, and stackable coupon bundles. Whether you're browsing electronics, fashion, home goods, or beauty products, this verified Temu discount code offers real savings—up to 90% OFF + $100 OFF on qualified orders. 💡 Pro Tip: Apply ALF401700 during checkout in the Temu app or website to activate your instant $100 discount, even if you’re not a new user. Temu $100 OFF Code by Country (All Use ALF401700): 🇺🇸 Temu USA – ALF401700 🇯🇵 Temu Japan – ALF401700 🇲🇽 Temu Mexico – ALF401700 🇨🇱 Temu Chile – ALF401700 🇨🇴 Temu Colombia – ALF401700 🇲🇾 Temu Malaysia – ALF401700 🇵🇭 Temu Philippines – ALF401700 🇰🇷 Temu Korea – ALF401700 🇵🇰 Temu Pakistan – ALF401700 🇫🇮 Temu Finland – ALF401700 🇸🇦 Temu Saudi Arabia – ALF401700 🇶🇦 Temu Qatar – ALF401700 🇫🇷 Temu France – ALF401700 🇩🇪 Temu Germany – ALF401700 🇮🇱 Temu Israel – ALF401700 Temu Coupon Code [ALF401700] Summary for SEO: Temu $100 OFF Code  Temu First Order Discount Code 2025  Temu Verified Promo Code ALF401700  Temu 50% OFF + $100 Bonus  Temu 100% OFF Code 2025  Temu App Promo ALF401700  Temu Working Discount Code 2025 
    • Hey there, nothing to do with the code, I am just suggesting you use Intelij IDEA. Trust me, it is the best.
    • Hey there, nothing to do with the code, I am just suggesting you use Intelij IDEA. Trust me, it is the best.
    • You can check the config of Geckolib and Mowzie's Mobs - maybe there is a way to disable some render features
    • You can use the .requires() function  the server also has a permission level of 4, which is the highest permission level.
  • Topics

×
×
  • Create New...

Important Information

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