Posted August 14, 201312 yr I like using the run targets within Eclipse so that I don't need to wait for a full recompile when testing changes. Unfortunately, using them means I don't have a place to attach custom tasks like packaging up assets (or if it does, I don't know how). Is there a way to use unpacked assets (textures, specifically) with run targets? Failing that, is there a way to run a custom task (e.g. my packaging script) when executing a run configuration?
August 14, 201312 yr yeah all you have to do it place them inside mcp/src/minecraft/ how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 14, 201312 yr Author So an item with texture "foo:bar" should be located at mcp/src/minecraft/assets/foo/textures/items/bar.png? That isn't currently working for me; I'll double-check my code and see if I can get it working.
August 14, 201312 yr 1, lol i havnt heard those in a while foo:bar 2 yes, i dont see any errors in your path but yes when you say an item you mean iconRegister right ? because if its for a resourcelocation it would be different how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 14, 201312 yr Author I'm actually calling `this.func_111206_d` from my item's constructor, but yes, that sets the string which gets used in the default `registerIcons`. If I keep running into trouble, I'll post the code.
August 14, 201312 yr Author Hmm. It seems the problem is having your mod in a separate Eclipse project. If I move my mod's package to the Minecraft project, the textures get loaded just fine. As long as the package is in its own project, the textures won't load no matter where they're located.
August 15, 201312 yr Author I stand corrected! It's simply a matter of putting your resources in <project>/src/assets rather than <project>/src/minecraft/assets if your code is in a separate project. Therefore, an item texture named "foo:bar" in project Baz would be located at mcp/eclipse/Baz/src/assets/foo/textures/items/bar.png
August 15, 201312 yr Umm... all I can say is.. Why? What made you think that you needed the minecraft folder?? *looks shamefaced* Sorry about that. I just don't get it sometimes when people don't get things I see clearly... I am still realizing people or different to me I hate being young... (My definition of young is 12-15) 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
August 16, 201312 yr Author No worries! The reason I had assumed it necessary is that the default location is mcp/src/minecraft/assets/etc. But, of course, that's just because mcp/src/minecraft is the real source folder, not mcp/src.
August 16, 201312 yr Thanks! That cleared my conscious (or is it the other one?). Glad you figured it out 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
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.