Jump to content

[1.5.1] Block Multi Texture and Metadata Help


AzureusNation123

Recommended Posts

hey need help, how do i get my blocks to render and also give them sub names?

 

my current code:

 

 

public class blockAsphalt extends Block

{

private Icon[][] iconBuffer;

 

public blockAsphalt(int ID, Material material)

{

super(ID, material); //The ID and material

}

 

public int damageDropped(int i) //Tells it what block it drops and also for creative mode pick block

{

return i;

}

 

@SideOnly(Side.CLIENT)

public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List) //Adds the metadata blocks to the creative inventory

{

for (int var4 = 0; var4 < 9; ++var4)

{

par3List.add(new ItemStack(par1, 1, var4));

}

}

 

@Override

public void func_94332_a(IconRegister par1IconRegister)

{

iconBuffer = new Icon[9][6];

 

iconBuffer[0][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[0][1] = par1IconRegister.func_94245_a("Class3:Asphalt"); // top

        iconBuffer[0][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[0][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[0][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[0][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[1][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[1][1] = par1IconRegister.func_94245_a("Class3:YellowLine1"); // top

        iconBuffer[1][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[1][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[1][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[1][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[2][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[2][1] = par1IconRegister.func_94245_a("Class3:YellowLine2"); // top

        iconBuffer[2][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[2][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[2][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[2][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[3][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[3][1] = par1IconRegister.func_94245_a("Class3:WhiteCorner1"); // top

        iconBuffer[3][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[3][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[3][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[3][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[4][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[4][1] = par1IconRegister.func_94245_a("Class3:WhiteCorner2"); // top

        iconBuffer[4][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[4][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[4][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[4][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[5][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[5][1] = par1IconRegister.func_94245_a("Class3:WhiteCorner3"); // top

        iconBuffer[5][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[5][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[5][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[5][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[6][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[6][1] = par1IconRegister.func_94245_a("Class3:WhiteCorner4"); // top

        iconBuffer[6][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[6][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[6][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[6][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[7][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[7][1] = par1IconRegister.func_94245_a("Class3:WhiteLine1"); // top

        iconBuffer[7][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[7][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[7][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[7][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[8][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[8][1] = par1IconRegister.func_94245_a("Class3:WhiteLine2"); // top

        iconBuffer[8][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[8][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[8][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[8][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

}

}

 

 

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



×
×
  • Create New...

Important Information

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