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

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

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

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

 

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

 

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

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

 

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

 

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

 

 

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

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?

 

 

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.

 

 

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

 

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

LOL found it

 

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

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

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

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

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

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.

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

    • on my last computer, i had a similar problem with forge/ neoforge mods but instead them launcher screen was black
    • I am trying to make a mod, all it is, a config folder that tells another mod to not require a dependency, pretty simple right.. well, I dont want whoever downloads my mod to have to download 4 other mods and then decide if they want 2 more that they kinda really need.. i want to make my mod basically implement all of these mods, i really dont care how it does it, ive tried putting them in every file location you can think of, ive downloaded intellij, mcreator, and tried vmware but thats eh (had it from school). I downloaded them in hopes theyd create the correct file i needed but honestly im only more lost now. I have gotten my config file to work, if i put all these mods into my own mods folder and the config file into the config and it works (unvbelievably) but i want to share this to everyone else, lets just say this mod will legitimately get 7M downloads.  I tried putting them in a run folder then having it create all the contents in that for a game (mods,config..etc) then i drop the mods in and all the sudden i cant even open the game, like it literally works with my own world i play on, but i cant get it to work on any coding platform, they all have like built in java versions you cant switch, its a nightmare. I am on 1.20.1 I need Java 17 (i dont think the specific versions of 17 matter) I have even tried recreating the mods i want to implement and deleting import things like net.adamsandler.themodsname and replacing it with what mine is. that only creates other problems, where im at right now is i got the thing to start opening then it crashes, closest ive gotten it, then it just says this  exception in thread "main" cpw.mods.niofs.union.unionfilesystem$uncheckedioexception: java.util.zip.zipexception: zip end header not found caused by: java.util.zip.zipexception: zip end header not found basically saying theres something wrong with my java.exe file, so i tried downloading so many different versions of java and putting them all in so many different spots, nothing, someone online says its just a mod that isnt built right so i put the mod into an editor and bunch of errors came up, id post it but i deleted it on accident, i just need help integrating mods
    • Vanilla 1.16.5 Crash Report [#L2KYKaK] - mclo.gs  
    • Hello, probably the last update, if anyone has the same problem or this can be of any help, the answer was pretty simple, textures started rendering just using a Tesselator instead of a VertexConsumer given by a MultibufferSource and a RenderType, pretty simple
    • Finally circling back to this, and I think all of us were half right.  getChunk() does appear to immediately load the chunk, but what changed between 1.16 and 1.18 is that the list of entities is now stored in the server, not per chunk.  So while it was possible to load a chunk in 1.16 and immediately grab an entity out of it, 1.18 loads the chunk and submits a request to load its entities on the next tick (if I understand correctly).  All this to say, you can immediately access the chunk itself, however you have to wait an additional tick for its entities to load in. In my case what this means is that I do have to set up an interface to wait an additional tick before submitting the request to retrieve the entity.  However, other functions do appear to be available immediately.  Just depends on what you're trying to do. Thank you all for the help! 
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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