Jump to content

Recommended Posts

Posted

mcp8.03, forge 775. No matter where I put my textures, it won't find them.

The error messages are of no help either. What's wrong with this thing?

 

For example, an error message of:

...Using missing texture, unable to load: minecraft:textures/blocks/antnest_side.png

But I go to .../forge/mcp/src/minecraft/textures/blocks, and there it is! antnest_side.png

I've tried placing these files in every directory imaginable.

In Minecraft:/textures

Minecraft:/assets/textures

Minecraft:/orespawn/assets/textures

Minecraft:/danger/orespawn/textures

Minecraft:/danger/orespawn/assets/textures

and on and on.

 

WHERE DO THEY GO?

The name of my mod is "OreSpawn".

I have yet to read a definitive post that actually works.

Anyone?

 

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

Posted

Its really really fucking simple.

The same place as 1.5 except 'mods' is 'assets' now.

mcp/src/minecraft/assets/{domain}/textures/{blocks|items}/{name}.png

Simple as shit.

And you should ALWAYS use your own domain not 'minecraft', you don't own Minecraft so stay out of it's packages/domains.

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

Posted

Doesn't work.

I've tried ...forge/mcp/src/minecraft/assets/orespawn/textures/blocks/{myblocks}.png

Looking at the files there right now.

 

I register my block icons thusly, in the preInit() function:

MyBlockUraniumBlock =    (new BlockUranium(BaseBlockID + OreSpawnConstants.BlockUraniumBlockID).setUnlocalizedName("blockuranium"));

 

This is supposed to automatically register the block.

Yes, I know, blocks with multiple textures use the registerIcon() function.

I've placed files all over god-knows-where in the directory tree, and it still refuses to find them.

I'm looking at forge/mcp/src/minecraft/assets/orespawn/textures/blocks/blockuranium.png right now.

I see it. Forge doesn't.

"OreSpawn" is the name of my mod, so I assume that's what you mean by "domain".

It ain't working.

 

 

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

Posted

Does it make any difference if the top of my source tree is at

mcp/src/minecraft/danger/orespawn vs mcp/src/minecraft/orespawn?

In other words, one level down?

 

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

Posted

Oh geez. Nevermind. You've been no help at all.

I found a nice little tutorial here:

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

That finally showed me the problem.

Instead of making things EASIER for modders,

you've gone and made it HARDER.

setUnlocalizedName() used to do everything you needed.

Now you need to add registerIcons() to every single block,

AND still use setUnlocalizedName().

 

Would it be too much to ask for you to make life SIMPLER and EASIER on modders,

rather than spitting all over us? We are, after all, the reason you exist.

Quit jacking us around and changing the interfaces and requirements every release.

You are SUPPOSED to provide a simple,  clean, consistent,  easy to use, interface.

You do not.

Fail.

 

I've seen a lot of code in my 30+ years.

Forge has not been a pleasant experience.

 

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

Posted

1) You're a fucking moron, you will realise this isn't FORGE's code, it's Mojangs. It's Minecraft itself. We don't touch this part at all. So quit bitching at us,

2) We are not a 24/7 at your beck and call service. This is done for you for free with our spare time. So if it takes a couple hours to get a response so be it.

3) I dont control, nore look at the wiki, its all community based. If it's telling you that you need to add a registerIcon to everyone single one of your block classes then 1) they are wrong and doing and 2) Your '30+ years' should of taught you how to do your own research.

 

There is a function in both block and item that lets you set the icon name, domain and all. Use it -.-

And next time don't be a twat about having to wait a little bit and bitch about shit just because you fail to understand it.

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

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Thank you so much Choonster! That's what i was missing! For now i added a folder assets/<mod_id>/items and put the model definition JSON file with the item name in it: { "model":{ "type": "minecraft:model", "model": "teleportpugmod:item/teleportpug" } }   Some log errors/warnings pointing me into the right direction would've been nice 😅 Haven't had much time to look into the DataGenerator and ModelProviders, because i'm still at work. But i guess these would would make more sense if have many custom items and want to generate these model definition files?
    • Minecraft 1.21.4 requires a new model definition file for each item, which you don't have. These can be created through Data Generation, specifically the ModelProvider, BlockModelGenerators and ItemModelGenerators classes.
    • Hi,  I'm using Forge 47.3.0 for Minecraft 1.20.1 I apologise if this is obvious I am very new to modding for Minecraft. I sucessfully made a mod that launched without errors or crashes (without it doing anything) but in order to add the features I need, I need to add "Custom Portal API [Forge]" as a dependency. However no matter the way I've tried to acheive this, it crashes. I am pretty sure it's not the way I'm putting it in the repositories, the dependencies or the way I'm refrencing it, as I've a hundred diffrent combinations and multiple Maven methods. And on all those diffrent variations I still get this crash: pastebin.com/UhumzZCZ Any tips would be invaluable as I've been loosing my mind over this!
    • Hi, i'm really having problems trying to set the texture to my custom item. I thought i'm doing everything correctly, but all i see is the missing texture block for my item. I am trying this for over a week now and getting really frustrated. The only time i could make the texture work, was when i used an older Forge version (52.0.1) for Minecraft (1.21.4). Was there a fundamental change for textures and models somewhere between versions that i'm missing? I started with Forge 54.1.0 and had this problem, so in my frustration i tried many things: Upgrading to Forge 54.1.1, created multiple new projects, workspaces, redownloaded everything and setting things up multiple times, as it was suggested in an older thread. Therea are no errors in the console logs, but maybe i'm blind, so i pasted the console logs to pastebin anyway: https://pastebin.com/zAM8RiUN The only time i see an error is when i change the models JSON file to an incorrect JSON which makes sense and that suggests to me it is actually reading the JSON file.   I set the github repository to public, i would be so thankful if anyone could take a look and tell me what i did wrong: https://github.com/xLorkin/teleport_pug_forge   As a note: i'm pretty new to modding, this is my first mod ever. But i'm used to programming. I had some up and downs, but through reading the documentation, using google and experimenting, i could solve all other problems. I only started modding for Minecraft because my son is such a big fan and wanted this mod.
    • Please read the FAQ (link in orange bar at top of page), and post logs as described there.
  • Topics

×
×
  • Create New...

Important Information

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