Jump to content

[1.6.4] Textures are being a real PITA


jordsta95

Recommended Posts

Hey guys, so I got someone asking me to update a mod that I made in 1.5.2 when textures were so much easier to sort out, and never updated because I could never work out how to do textures...

 

My MOD_ID is: Everything_and_More_Mod

The folder structure for the textures is: assets\Everything_and_More_Mod\textures\blocks\Basalt.png (this is for the block I am starting with)

Then this is the code I have in Basalt's class:

 

 

package assests.jordsta95;

 

import java.util.Random;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.renderer.texture.IconRegister;

 

public class Basalt extends Block{

 

public Basalt(int par1, String string) {

super(par1, Material.rock);

setCreativeTab(Everything_and_More_Mod.EEMTab);

}

public int idDropped(int par1, Random par2Random, int par3)

{

return Everything_and_More_Mod.Basalt.blockID;

}

public int quantityDropped(Random random)

{

return 1;

}

 

@Override

public void registerIcons(IconRegister iconRegister){

this.blockIcon = iconRegister.registerIcon(Resources.MOD_ID + ":" + this.getUnlocalizedName().substring(5));

}

 

 

 

}

 

 

And this is the stuff about it in the main file:

 

 

Basalt = new Basalt(2197, "Basalt").setUnlocalizedName("Basalt").setHardness(0.5F).setStepSound(Block.soundStoneFootstep).setResistance(10000.0F);

GameRegistry.registerBlock(Basalt, "Basalt");

MinecraftForge.setBlockHarvestLevel(Basalt, "pickaxe", 0);

 

 

 

I really don't know what to do. Sorry to be a bother, but all the tutorials/fixes I have seen have either been too complex for me to understand or simply didn't work.

 

Why bother?

Link to comment
Share on other sites

setTextureName

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Huh? do that where now?

 

Oh probably anywhere you're using any other set...() commands.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.