I'm not sure a out the confit you could try it but yes the blocks and items must be in the PreInit function. And preinit() should replace the load method with the same param.
YES!!!!! it worked!!!! thank you!!
now i gotta edit the 201 tools and other blocks so they load their textures....lol
i might add how to load textures in my coding tut....idk yet
EDIT: This was tweet worthy for my mod -
Pic -
Don't worry sheenrox82, i gave a shout out for u too!
Oh, duh!
I was using :assets/textures/blocks/blahblahblah.png
instead of assets/codelyoko/textures/blocks/blahblahblah.png!
Thank you guys! Ill edit this post if it works!
EDIT: YAY! the console threw out that cant load the textures, but it does in-game!
Thanks so much guys!
YES!!!!! it worked!!!! thank you!!
now i gotta edit the 201 tools and other blocks so they load their textures....lol
i might add how to load textures in my coding tut....idk yet
EDIT: This was tweet worthy for my mod -
Pic -
Don't work sheenrox82, i gave a shout out for u too!
Thanks man! Don't know what you mean by, "Don't work sheenrox82," if you mean like, take a break or if it didn't work. But I told someone earlier to move item declarations to the preInit method.
Thanks man! Don't know what you mean by, "Don't work sheenrox82," if you mean like, take a break or if it didn't work. But I told someone earlier to move item declarations to the preInit method.
Oh, duh!
I was using :assets/textures/blocks/blahblahblah.png
instead of assets/codelyoko/textures/blocks/blahblahblah.png!
Thank you guys! Ill edit this post if it works!
EDIT: YAY! the console threw out that cant load the textures, but it does in-game!
Thanks so much guys!
Yea I have that issue as well. Will keep looking it until I figure it out haha
There was nothing wrong with my method in the first place.
My tutorial does the exact same thing, just with your own folder to not have texture issues between mods.
Your post was useless.
I can get my textures to load fine for items, but how about entities? I'm trying to make a new weapon based off of the bow, with it's own projectile, but I can't figure out where to declare the texture / model for the ammo, as I never see it declared for arrows. Does anyone happen to know where this is?EDIT:I suspect it's handled via the dataWatcher
// in entityArrowprotected void entityInit() { this.dataWatcher.addObject(16, Byte.valueOf((byte)0)); }
I'm using the exact same code for my new ammo, but don't see anything, not even arrows, although it's able to fire and damage mobs just fine, doing more damage if you charge up. Bows still work fine, too. Sorry I'm still pretty new to Java - there seem to be a lot more hidden function calls than I'm used to.
Nevermind. Entities can be registered in the client proxy, and rendered from their own unique class that extends Render. For anyone else looking, it's located at net.minecraft.client.renderer.entity in Forge. Ah the joys of being a newb.
(moreores is mine, but you would have that as your mod name) CANNOT have ANYCapital letters. Mine was:
moreOres
but is now:
moreores
because it has a capital letter. However, the folder:
/MCP/src/minecraft/mods/moreOres/
dosen't matter at all.
This was a fix for me, it might not be for others who still have the problem.
(Oh and thanks for the help, sheenrox82!)
EDIT;Thanks, I've made some progress, the console is throwing out that it cant load the textures, when before it didn't.
Now how do i get the textures to be able to load?
EDIT: I think i got it, my assets folder vanished
annnnnnnnnnnnnnnnnnnnnnnnnd! didn't work.
Same thing here... Im kinda getting ed about this stupid textures thing with 1.6.1
I'm still having problems with this (my mod is called handycraft, it is just experimental):
- All my items/blocks are in preInit
- My directory for textures is mcp/src/minecraft/assets/pteri/handycraft/textures/blocks (and textures/items for items)
- I don't think there are any issues with using upper/lower case
Main class (HandycraftMain.java): pastebin.com/GTkeUeeK
A sample block that contains registerIcons (HandyBlock.java): pastebin.com/mjmXLRmP
The annoying thing is that Eclipse gives me errors along the lines of:
'Using missing texture, unable to load: pteri/handycraft:textures/blocks/handyDirt.png,' which as far as I'm aware is exactly where the file exists.
If anyone knows why it's not working, that would be amazing.
EDIT: Same problem in both 1.6.1 and 1.6.2.
You got to many sub folders on your path to your te textures.
Your path should be something like mcp/src/minecraft/assets/handycraft/textures/blocks/handydirt.png
And change your register icon to something like this.
YES!!!!! it worked!!!! thank you!!
now i gotta edit the 201 tools and other blocks so they load their textures....lol
i might add how to load textures in my coding tut....idk yet
EDIT: This was tweet worthy for my mod -
Pic -
Don't worry sheenrox82, i gave a shout out for u too!
E
Yes I did, and let me tell you that it doen't look like that, cause @PreInit was replacedby @EventHandler,
so I have:
I was using :assets/textures/blocks/blahblahblah.png
instead of assets/codelyoko/textures/blocks/blahblahblah.png!
Thank you guys! Ill edit this post if it works!
EDIT: YAY! the console threw out that cant load the textures, but it does in-game!
Thanks so much guys!
("src/minecraft/mods/mod_MoreBlocks/textures")
i hope it'll still work, now that assets folder is in my recycle bin! lol
E
Thanks for the tweet!
I would still edit your code to grab them from the proper spot using registerIcon. Not doing so may cause other conflicts later
yeah, i'm editing the code
E
Thanks man! Don't know what you mean by, "Don't work sheenrox82," if you mean like, take a break or if it didn't work. But I told someone earlier to move item declarations to the preInit method.
oh XD that was suppose to be "Don't worry"
XD how did i manage to type work for worry....
E
Yea I have that issue as well. Will keep looking it until I figure it out haha
It could be setUnlocalizedName.. I'll test it.
Hhahah! Well, if you need help with armor textures:
http://www.minecraftforum.net/topic/1880210-161-forge-armor-texture-rendering/
I made another tutorial for that as well. :3
I tried removing unLocalizedName and nothing changed. Will continue looking.
There was nothing wrong with my method in the first place.
My tutorial does the exact same thing, just with your own folder to not have texture issues between mods.
Your post was useless.
I can get my textures to load fine for items, but how about entities? I'm trying to make a new weapon based off of the bow, with it's own projectile, but I can't figure out where to declare the texture / model for the ammo, as I never see it declared for arrows. Does anyone happen to know where this is?EDIT:I suspect it's handled via the dataWatcherI'm using the exact same code for my new ammo, but don't see anything, not even arrows, although it's able to fire and damage mobs just fine, doing more damage if you charge up. Bows still work fine, too. Sorry I'm still pretty new to Java - there seem to be a lot more hidden function calls than I'm used to.Nevermind. Entities can be registered in the client proxy, and rendered from their own unique class that extends Render. For anyone else looking, it's located at net.minecraft.client.renderer.entity in Forge. Ah the joys of being a newb.
/MCP/src/minecraft/assets/moreores/
(moreores is mine, but you would have that as your mod name) CANNOT have ANY Capital letters. Mine was:
moreOres
but is now:
moreores
because it has a capital letter. However, the folder:
/MCP/src/minecraft/mods/moreOres/
dosen't matter at all.
This was a fix for me, it might not be for others who still have the problem.
(Oh and thanks for the help, sheenrox82!)
Same thing here... Im kinda getting ed about this stupid textures thing with 1.6.1
My modding project, just credit me and let me know if you borrow my code: https://github.com/FinalKill9175/WSBIM-NEW/
You got to many sub folders on your path to your te textures.
Your path should be something like mcp/src/minecraft/assets/handycraft/textures/blocks/handydirt.png
And change your register icon to something like this.
this.blockIcon = reg.registerIcon("handycraft:" + (this.getUnlocalizedName().substring(5)));
I am uploading a video to my YouTube Channel tomorrow and I'm talking about just this.
http://youtube.com/shaqarudengames
You could also try this...
and
Zip up your project and upload it some where and message me the link and Ill look at the whole project on my machine