Jump to content

New Texture Directory For Minecraft Forge 1.6.1


XxxXEclipse7XxxX

Recommended Posts

it has worked for alot of people! :P if you actually followed it correctly!

 

Pretty sure Draco would have followed it correctly. He's one of the main guys who helps people on this subforum, so he knows his stuff ;)

 

It didn't work for me either, by the way. I'd love to see your source if I can? Maybe you're doing something differently to us anyway.

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

Link to comment
Share on other sites

  • Replies 90
  • Created
  • Last Reply

Top Posters In This Topic

I had SOLVED

 

In my case, the problem was the "modname" folder (DONT USE CAPS)

 

Before fix it

 

\minecraft\assets\RSImbued\textures\

 

After

 

\minecraft\assets\rsimbued\textures\

 

i continued using caps in the code

 

public void registerIcons(IconRegister par1IconRegister)

    {

        this.itemIcon = par1IconRegister.registerIcon("RSImbued:___");

              }

 

Perhaps some of those who have the problem can solve with this

 

I hope it will be helpful and sorry for my English level

Link to comment
Share on other sites

Why do people call it a pahimar setup? I've been using it since long before he showed it to everyone ><

 

Then i don't know, if you read the readme that dinnerbone put in the assets folder inside of MCP it says that anything placed there will be deleted on start-up.

Hey can you help me on setting up the "pahimar" setup in 1.6.1? I dont which jars to import.

Link to comment
Share on other sites

Hello, I still can not seem to get this to work for me... However, I did some debugging and found that the registerIcons method is not actually being called. (did a sysdout )  This probably explains why I wasn't even receiving the missing texture error in the console.  I'm fairly certain that my item(armor) was setup correctly because it does show up in the game with the pink and block icon.  The other thing is, that my armor textures are at least trying to load.  For the armor textures it tells me that it failed to load.  I have put the textures in /src/minecraft/assets/"mymodname"/textures/models/armor/myfile.png  I am unsure weather to call the texture by it's name or to use the way mine craft does it with the name_layer_1.png format. An help is appreciated, thank-you.

Link to comment
Share on other sites

I should note that I've also tried:

 

mcp/src/assets/{modid}/textures/{block|item}/{name}.png

mcp/src/minecraft/{modid}/textures/{block|item}/{name}.png

mcp/src/{modid}/textures/{block|item}/{name}.png

mcp/jars/assets/{modid}/textures/{block|item}/{name}.png

mcp/jars/resourcepacks/{modid}/textures/{block|item}/{name}.png

mcp/jars/resourcepacks/assets/{modid}/textures/{block|item}/{name}.png

 

https://github.com/SuitedSlime/1.6-Forge-Mod

 

It works fine. Go ahead, download and compile it.

 

Unfortunately, your github is not set up in a way that those of us NOT using a Pahimar setup can actually use it.

 

I agree. It's all broken, and has to go back to the way it was in 1.5.2, where the "textures" directory

can sit right next to the top source directory along with paulscodes and ibxm and friends.

There is no reason for forge to be moving things around on us.

They are supposed to be SHIELDING us from the underlying changes, not exacerbating them.

Hello? Forge? Please put textures, sounds and such back the way it was.

It was working. Stop messing with it.

 

 

Odds are good I've been programming since before you were born. Yeah. I'm OLD school.

Link to comment
Share on other sites

It seems that registerIcons only gets called if you register the block/item in preInit. What confuses me is what the string in the par1IconRegister.registerIcon() actually means. Is it supposed to be a path, the file names of the textures (if so, then why the colons) or something completely different. The reason im asking is that i am trying to apply different icons to different damage items, so if i add a +3 to Main.modid +":"+ this.getUnlocalizedName() will it load modidname3 ?

Link to comment
Share on other sites

It seems that registerIcons only gets called if you register the block/item in preInit. What confuses me is what the string in the par1IconRegister.registerIcon() actually means. Is it supposed to be a path, the file names of the textures (if so, then why the colons) or something completely different. The reason im asking is that i am trying to apply different icons to different damage items, so if i add a +3 to Main.modid +":"+ this.getUnlocalizedName() will it load modidname3 ?

 

Do you mean the old:

@PreInit

public void preInit(...)

 

or the new:

 

@EventHandler

public void preInit(...)

Link to comment
Share on other sites

Well this didn't work for me and other methods didn't too FOR HOURS, until I moved all my registering items into PreInit. I have spent all day and now it has worked.

 

I was only texturing items so ya.

This was my code in my items I used:

    public void registerIcons(IconRegister iconRegister)

    {

    this.itemIcon = iconRegister.registerIcon("AlchemistsRPG:elvenAxe");

    }

So...some tips:

In my forge\mcp\src\minecraft\assets, I had a folder named alchemistsrpg.

Make sure that your folder is lowercased. Don't make it named AlchemistsRPG.

However in your code, you can uppercase it. I believe someone posted this tip already.

Also, I think it is good to make sure that the folder is your modid.

 

Dunno if this will help. :P

-Vakar

 

Link to comment
Share on other sites

Oh! Oh! I can answer this one now! :)

 

Here's the hidden secret block tutorial that helped me figure it out...

http://www.minecraftforge.net/wiki/Basic_Modding

 

There appear to be a number of key elements here:

1) Everything is initialized in the preInit() function, which now has a qualifier (or whatever you call it)

of @EventHandler. Look at the wiki main mod example.

 

2) Blocks/items are generally declared like

MyFireFish = (new ItemFireFish(BaseBlockID + OreSpawnConstants.FireFishBlockID, 4, 0.6F, false).setUnlocalizedName("firefish"));

The .setUnlocalizedName part is critical. It MUST be the name of your png file, without the .png,

and nothing in front.

 

3) In your item/block class, you now need to add the following magic incantation:

    @Override

    @SideOnly(Side.CLIENT)

    public void registerIcons(IconRegister iconRegister) {

        this.itemIcon = iconRegister.registerIcon("OreSpawn:" + (this.getUnlocalizedName().substring(5)));

    }

Except that instead of "OreSpawn" use your mod name (case doesn't matter here).

Why substring(5)? I don't know. I don't care. It works.

Yes, you need the ":" after your mod name too.

 

And lastly...

The directory that firefish.png ends up

....forge/mcp/src/minecraft/assets/orespawn/textures/items/firefish.png

 

The important things to notice in the above, is that you need to create this directory tree exactly as is,

from "assets" on down, except that you use your mod name (all lowercase) instead of "orespawn",

which is my mod.

 

Refer to the wiki page referenced above. It was small, simple, and easy to understand.

 

Now, If I can just figure out why my entities won't move... sigh...

 

 

Hope this helped!

 

Odds are good I've been programming since before you were born. Yeah. I'm OLD school.

Link to comment
Share on other sites

For some god-aweful reason

 

this.getUnlocalizedName()

 

would return the Unlocalized name except it would incert

tile.

right before it:

textures/blocks/tile.tutorialblock.png

So I cant use it to easily get item names. What do I do??

 

	public void registerIcons(IconRegister reg){
	this.blockIcon = reg.registerIcon(Tutorial.modID + ":" + this.getUnlocalizedName());
}

 

replacing this.getUnlocalizedName() with the direct name of the png file works (after 1 hour wondering why the texture wouldent load) but id like to use setUnlocalizedName when naming my pngs so using that in the icon register seems natural if it went for the tile. crap :/ ?

 

Link to comment
Share on other sites

To get rid of the tile. before the picture file, that's where the substring(5) is for.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Oh! Oh! I can answer this one now! :)

 

Here's the hidden secret block tutorial that helped me figure it out...

http://www.minecraftforge.net/wiki/Basic_Modding

 

There appear to be a number of key elements here:

1) Everything is initialized in the preInit() function, which now has a qualifier (or whatever you call it)

of @EventHandler. Look at the wiki main mod example.

 

2) Blocks/items are generally declared like

MyFireFish = (new ItemFireFish(BaseBlockID + OreSpawnConstants.FireFishBlockID, 4, 0.6F, false).setUnlocalizedName("firefish"));

The .setUnlocalizedName part is critical. It MUST be the name of your png file, without the .png,

and nothing in front.

 

3) In your item/block class, you now need to add the following magic incantation:

    @Override

    @SideOnly(Side.CLIENT)

    public void registerIcons(IconRegister iconRegister) {

        this.itemIcon = iconRegister.registerIcon("OreSpawn:" + (this.getUnlocalizedName().substring(5)));

    }

Except that instead of "OreSpawn" use your mod name (case doesn't matter here).

Why substring(5)? I don't know. I don't care. It works.

Yes, you need the ":" after your mod name too.

 

And lastly...

The directory that firefish.png ends up

....forge/mcp/src/minecraft/assets/orespawn/textures/items/firefish.png

 

The important things to notice in the above, is that you need to create this directory tree exactly as is,

from "assets" on down, except that you use your mod name (all lowercase) instead of "orespawn",

which is my mod.

 

Refer to the wiki page referenced above. It was small, simple, and easy to understand.

 

Now, If I can just figure out why my entities won't move... sigh...

 

 

Hope this helped!

 

 

I am glad I updated that to 1.6.1! It saw that people were having trouble so I updated a few things to 1.6.1 xD

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

Link to comment
Share on other sites

For some god-aweful reason

 

this.getUnlocalizedName()

 

would return the Unlocalized name except it would incert

tile.

right before it:

textures/blocks/tile.tutorialblock.png

So I cant use it to easily get item names. What do I do??

 

	public void registerIcons(IconRegister reg){
	this.blockIcon = reg.registerIcon(Tutorial.modID + ":" + this.getUnlocalizedName());
}

 

replacing this.getUnlocalizedName() with the direct name of the png file works (after 1 hour wondering why the texture wouldent load) but id like to use setUnlocalizedName when naming my pngs so using that in the icon register seems natural if it went for the tile. crap :/ ?

You can use .substring(5) :

	public void registerIcons(IconRegister reg){
	this.blockIcon = reg.registerIcon(Tutorial.modID + ":" + this.getUnlocalizedName().substring(5));
}

substring(5) will ignore the first 5 characters, so you'll have no problem with this "tile."

 

Link to comment
Share on other sites

Why are you guys dealing with the 'unlocalizedName' and substring shit anyways?

See Block.func_111023_E and Item.func_111208_A along with associated functions/fields

They exist for a reason -.-

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Why are you guys dealing with the 'unlocalizedName' and substring shit anyways?

See Block.func_111023_E and Item.func_111208_A along with associated functions/fields

They exist for a reason -.-

 

Because they're 'unnamed', which implies that we shouldn't use them.

I try to stick to functions that have been renamed into something resembling what they do.

In some cases that's not possible, of course, like func_110143_aJ(), which should

be getEntityHealth().

 

 

 

Odds are good I've been programming since before you were born. Yeah. I'm OLD school.

Link to comment
Share on other sites

So what are we supposed to use to call textures now, as im using:

 

itemIcon = iconRegister.registerIcon(Reference.MOD_ID.toLowerCase() + ":" + "stonemallet");

 

And when I start Eclipse up the only error flagging is:

 

[sEVERE] [Minecraft-Client] Using missing texture, unable to load: blocksnmore:textures/items/stonemallet.png

 

But when I am in game the texture is loaded O_o so im confused if I have done something wrong or using an old code to call textures and my item is being loaded during the "preInit" phaze which I believe is the right area to load items/blocks.

Link to comment
Share on other sites

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

    • This is a MacOs related issue: https://bugs.mojang.com/browse/MC-118506     Download this lib: https://libraries.minecraft.net/ca/weblite/java-objc-bridge/1.0.0/java-objc-bridge-1.0.0.jar and put it into ~/Library/Application Support/minecraft/libraries/ca/weblite/java-objc-bridge/1.0.0  
    • I use Bisect-Hosting, and I host a relatively modded server.  There is a mod I desperately want to have in a server. https://www.curseforge.com/minecraft/mc-mods/minehoplite This is MineHop. It's a mod that replicates the movement capabilities seen in Source Engine games, such as Half-Life, and such.  https://youtu.be/SbtLo7VbOvk - A video explaining the mod, if anyone is interested.  It is a clientside mod, meaning whoever is using it can change anything about the mod that they want, with no restrictions, even when they join a server with the same mod. They can change it to where they can go infinitely fast, or do some other overpowered thing. I don't want that to happen. So I just want to know if there is some way to force the SERVER'S configuration file, onto whoever is joining.  I'm not very savvy with all this modding stuff. There are two config files: minehop-common.txt, and minehop.txt I don't really know much about how each are different. I just know what the commands relating to acceleration and stuff mean.    
    • My journey into crypto trading began tentatively, with me dipping my toes into the waters by purchasing my first Bitcoin through a seasoned trader. With an initial investment of $5,000, I watched as my investment grew, proving to be both fruitful and lucrative. Encouraged by this success, I decided to increase my investment to $150,000, eager to capitalize on the growing popularity of cryptocurrency, However, as cryptocurrency gained mainstream attention, so too did the number of self-proclaimed "experts" in the field. Suddenly, everyone seemed to be a crypto guru, and more and more people were eager to jump on the bandwagon without fully understanding the intricacies of this complex world. With promises of quick and easy profits, these con artists preyed on the uninformed, luring them into schemes that often ended in disappointment and financial loss. Unfortunately, I fell victim to one such scheme. Seduced by the allure of easy money, I entrusted my hard-earned funds to a dubious trading platform, granting them access to my accounts in the hopes of seeing my investment grow. For a brief period, everything seemed to be going according to plan, with regular withdrawals and promising returns on my investment. However, my hopes were soon dashed when, without warning, communication from the platform ceased, and my Bitcoin holdings vanished into thin air. Feeling helpless and betrayed, I confided in a family member about my predicament. They listened sympathetically and offered a glimmer of hope in the form of a recommendation for Wizard Web Recovery. Intrigued by the possibility of reclaiming what I had lost, I decided to explore this option further. From the moment I reached out to Wizard Web Recovery, I was met with professionalism and empathy. They took the time to understand my situation and reassured me that I was not alone in my plight. With their guidance, I embarked on a journey to reclaim what was rightfully mine. Wizard Web Recovery's expertise and dedication were evident from the start. They meticulously analyzed the details of my case, uncovering crucial evidence that would prove invaluable in our quest for justice. With each step forward, they kept me informed and empowered, instilling in me a newfound sense of hope and determination. Through their tireless efforts and unwavering support, Wizard Web Recovery succeeded in recovering my lost Bitcoin holdings. It was a moment of triumph and relief, knowing that justice had been served and that I could finally put this chapter behind me. In conclusion, My experience with Wizard Web Recovery  was nothing short of transformative. Their professionalism, expertise, and unwavering commitment to their clients set them apart as true leaders in the field of cryptocurrency recovery. I am forever grateful for their assistance and would highly recommend their services to anyone in need of help navigating the treacherous waters of cryptocurrency scams. 
    • Ok so: Two things to note: It got stuck due to my dimension type. It was previously the same as the overworld dimension tpye but after changing it , it didn't freeze during spawn generation. ALSO, APPARENTLY, the way I'm doing things, the game can't have two extremely-rich dimensions or it will make the new chunk generation be veeery VEEERY slow. I'm doing the dimension file genreation all in the data generation step now, so it's all good. Mostly. If anybody has any tips regarding how can i more efficently generate a biome-rich dimension, im all ears.
    • https://mclo.gs/qTo3bUE  
  • Topics

×
×
  • Create New...

Important Information

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