[Spout] Custom Block Textures

Discussion in 'Plugin Development' started by nd42, Dec 12, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    nd42

    Hi,

    Im struggling to assign different textures to different sides of a custom block in Spout. I know that I need to use GenericCubeBlockDesign to define texture "id's" but Im confused as to what an id is. Could someone explain the basics using GenericCubeBlockDesign?

    Thanks
     
  2. Offline

    Tster

    Might want to @ some of the spout team here
     
  3. Offline

    dbizzzle

    @nd42 xCode ftw :D
     
  4. Offline

    ZNickq

    Ok, to assign multiple sides, you need to give it the id of each side in the .png with the textures! This is how mc stores them...this is an example texture.png! http://img.wonderhowto.com/images/gfx/gallery/634534400852344709.jpg
    The id's start counting from top left to right, and they go like 0,1,2,etc.
    To have multiple sides, just give it the id's of the textures, in the .png file you specify! (you also need the size of the texture file, as well as how big each square is, but i'll let you figure those out! :))
     
  5. Offline

    nd42

    Ah that makes perfect sense thanks! Just in time for my christmas present blocks. @dbizzle im a cocoa programmer :D
     
  6. Offline

    dbizzzle

    @nd42 I have a mac too :p, I couldn't figure out how to use xCode for java though so I just use eclipse :D
     
  7. Offline

    nd42

    @dbizzle as do I. xCode doesn't play nice with Java.
     
Thread Status:
Not open for further replies.

Share This Page