Minecraft Mods

Custom/Infinite Sprites API![V1.6][MC 1.3.1]

  • 24,787 views, 1 today
  • 9,149 downloads, 0 today
  • 50
  • 15
  • 187
Jas's Avatar Jas
Retired Moderator
Level 67 : High Grandmaster Sweetheart
763
Make sure that you link people back to this page if your mod requires this API.
It may NOT be redistributed without my ("TightMrKI113r" or "The Owner"/"Owner") written permission.

Dont want to muddle your graphics with notch's ?
RUN OUT of space to put any more graphics ?

This simple API is a modding tool that allows modders to load item sprites from custom indexes (Like 'MyItems.png' instead of 'items.png').

This not only means that you can use up all 32000 item slots instead of the restrictive 256 slot graphic index, but you can keep your graphics together instead of all separate.

Installation:
For Users:
  1. Go to %APPDATA%Roaming.minecraftbin
  2. Open minecraft.jar with an archiving software (E.g. 7-Zip, WinRAR)
  3. Delete the folder called META-INF
  4. Click and drag the mods class files into minecraft.jar
  5. You are done. The rest is up to the mod developers...

For Developers:
  1. Get a fresh MCP
  2. Before decompiling, go to jarsbin and install the mod to the minecraft.jar using the above method
  3. Install any other API's you wish to use
  4. Run decompile.bat
  5. When creating a new Item you would use this code normally:
  6. 'public static Item myItem = (new Item(ID)).setIconIndex(0).setItemName("myItem");'
  7. When using the API, before the Icon Index declaration, simply add the following:
  8. '.setTextureIndex(new TextureIndex("/indexName.png"))', replacing indexName with the filepath within minecraft.jar
  9. It should now look like this:
  10. public static Item myItem = (new Item(ID)).setTextureIndex(new TextureIndex("/indexName.png")).setIconIndex(0).setItemName("name");
  11. Create a file called indexName.png (Replace it with the file name you want) and make sure that it is 256x256 pixels.
  12. Add your graphics to the index. You can have one graphic per 16 pixels squared on the index.
  13. The first slot's ID is 0 (In the top left hand corner), the last being 255 (Bottom right).
  14. Add this graphic to your MCP's minecraft.jar in the same path that you specified before in the setTextureIndex() method.
  15. Test your mod and make sure the graphics load correctly.
  16. Run recompile and re-obfuscate and then distribute YOUR MODS FILES. DO NOT DISTRIBUTE THE API FILES, JUST PUT UP A LINK TO THIS PAGE!!!



Troubleshooting:
For Users:
  • My minecraft black screens after installing the API! - Did you delete META-INF?
  • My minecraft works with the API, but I installed a mod for it and minecraft crashes - Then there is either an incompatibility or, the mod wasnt coded correctly.

For Developers:

  • The Item just has a white texture with bits of black on it - Then either: the index doesnt exist, you misspelled the name or the file isnt in the right path.

What is with the 'setTextureIndex(new TextureIndex("/textureIndex.png"))' instead of just 'setTextureIndex("/textureIndex.png");' ?
I decided to make a change to how it reads new indexes. Instead of just reading a file directly, it now reads a TextureIndex object. This allows me to store more details on an index, like Height, Width, that kind of thing. This allows a lot more customisation to the indexes, which will be added in future updates.

If you have any other queries, PM me and i'll help you
Progress100% complete
Game VersionMinecraft 1.3.1
Tags

5 Update Logs

Update #5 : by Jas 08/01/2012 9:49:14 amAug 1st, 2012

Now 1.3.1 compatible!
LOAD MORE LOGS

Create an account or sign in to comment.

1
08/30/2012 8:15 am
Level 24 : Expert Dragonborn
MDJ
MDJ's Avatar
comes to check if updated,

not updated

*cries*
1
09/01/2012 11:17 am
Level 95 : Overlord Programmer
F3RULLO14
F3RULLO14's Avatar
I want to cry too but...

*cries anyway*
1
09/19/2012 2:29 pm
Level 22 : Expert Taco
DarkElfAlbain
DarkElfAlbain's Avatar
O HELLO!
Nice seeing you here Ferullo :D
1
09/19/2012 6:17 pm
Level 95 : Overlord Programmer
F3RULLO14
F3RULLO14's Avatar
xD
1
09/01/2012 1:31 pm
Level 1 : New Miner
killerjdog51
killerjdog51's Avatar
im crying right now.... *cries*..... plz update this mod
1
09/19/2012 2:30 pm
Level 22 : Expert Taco
DarkElfAlbain
DarkElfAlbain's Avatar
*btw:* it may be troubles with coding, just dont sound like a jackass with that phrase please
1
09/23/2012 2:13 pm
Level 1 : New Miner
killerjdog51
killerjdog51's Avatar
ok, sorry, i didnt mean to sound like a jack@$$
1
09/01/2012 7:15 pm
Level 95 : Overlord Programmer
F3RULLO14
F3RULLO14's Avatar
I dont want to use forge... *cries some more*
1
09/03/2012 6:44 am
Level 1 : New Miner
killerjdog51
killerjdog51's Avatar
I just want to install a crap ton of mods, but this mod still isn't updated. *cries some more*
1
09/19/2012 2:32 pm
Level 22 : Expert Taco
DarkElfAlbain
DarkElfAlbain's Avatar
Lol-again, the mods have to be coded to suport it D:
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome