Jump to content

TheGrovesyProject101

Forge Modder
  • Posts

    43
  • Joined

  • Last visited

Everything posted by TheGrovesyProject101

  1. same im going to need a different method im also new to modding
  2. i have but that does it through textures but i have to do mine without having to chage the texture because its a meta data block that changes oreintation each block has a different texture
  3. you could try and use .setBlockBounds(0.30F, 0.30F, 0.30F, 0.70F, 0.70F, 0.70F); that makes a sort of cable im not to sure how to use it though
  4. no the way that does it is by a single textured block with multiple side (only 1 texture) i have multiple blocks with the metadata each with a different texture.
  5. what are the EQUAL to: dirZPos; dirXPos; dirZNeg; dirXNeg;
  6. i want to know how how to change the orientation of my meta data blocks by on where i stand when placing them does anyone know how to do it here is my block file package TheCivilizationMod; import java.util.List; import net.minecraft.src.Block; import net.minecraft.src.CreativeTabs; import net.minecraft.src.EntityLiving; import net.minecraft.src.ItemStack; import net.minecraft.src.Material; import net.minecraft.src.MathHelper; import net.minecraft.src.World; import net.minecraftforge.common.ForgeDirection; import cpw.mods.fml.common.Side; import cpw.mods.fml.common.asm.SideOnly; public class glass extends Block{ public glass(int id, int texture){ super(id, texture, Material.rock); this.setCreativeTab(CreativeTabs.tabBlock); this.setRequiresSelfNotify(); } public String getTextureFile(){ return "/Mod/MultiBlocks.png"; } public int getBlockTextureFromSideAndMetadata(int side, int meta) { switch(meta) { case 0: switch(side) { case 0: return 22; case 1: return 22; case 2: return 22; case 3: return 0; default: return 22; } case 1: switch(side) { case 0: return 23; case 1: return 23; case 2: return 23; case 3: return 0; default: return 23; } return side; } @Override public int damageDropped(int meta){ return meta; } @SideOnly(Side.CLIENT) public void getSubBlocks(int par1, CreativeTabs tab, List list){ for(int NumOfMets=0; NumOfMets<2; NumOfMets++){ list.add(new ItemStack(par1, 1, NumOfMets)); } } }
  7. sorry i ve not replied but no its still not working i am appreciating your help though if you have any more ideas please do tell me
  8. Hey guys im new to modding and im trying out the meta data ive got the blocks to show up in game but the names are blank i have been using the command LanguageRegistry.instance().addStringLocalization("tile.glass.first.name", "first"); the ItemBlockGlass looks like this: and the glass looks like this: and the item list thing looks like this:
×
×
  • Create New...

Important Information

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