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

    • Hello , when I try to launch the forge installer it just crash with a message for 0,5 secondes. I'm using java 17 to launch it. Here's the link of the error :https://cdn.corenexis.com/view/?img=d/ma24/qs7u4U.jpg  
    • You will find the crash-report or log in your minecraft directory (crash-report or logs folder)
    • Use a modpack which is using these 2 mods as working base:   https://www.curseforge.com/minecraft/modpacks/life-in-the-village-3
    • inicie un mundo donde instale Croptopia y Farmer's Delight, entonces instale el addon Croptopia Delight pero no funciona. es la version 1.18.2
    • Hello all. I'm currently grappling with the updateShape method in a custom class extending Block.  My code currently looks like this: The conditionals in CheckState are there to switch blockstate properties, which is working fine, as it functions correctly every time in getStateForPlacement.  The problem I'm running into is that when I update a state, the blocks seem to call CheckState with the position of the block which was changed updated last.  If I build a wall I can see the same change propagate across. My question thus is this: is updateShape sending its return to the neighbouring block?  Is each block not independently executing the updateShape method, thus inserting its own current position?  The first statement appears to be true, and the second false (each block is not independently executing the method). I have tried to fix this by saving the block's own position to a variable myPos at inception, and then feeding this in as CheckState(myPos) but this causes a worse outcome, where all blocks take the update of the first modified block, rather than just their neighbour.  This raises more questions than it answers, obviously: how is a different instance's variable propagating here?  I also tried changing it so that CheckState did not take a BlockPos, but had myPos built into the body - same problem. I have previously looked at neighbourUpdate and onNeighbourUpdate, but could not find a way to get this to work at all.  One post on here about updatePostPlacement and other methods has proven itself long superceded.  All other sources on the net seem to be out of date. Many thanks in advance for any help you might offer me, it's been several days now of trying to get this work and several weeks of generally trying to get round this roadblock.  - Sandermall
  • Topics

×
×
  • Create New...

Important Information

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