Jump to content

yuvalr00

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by yuvalr00

  1. SanAndresP can u conect me trough skype? my username is yuvalr00
  2. so i have a problem with my 3D modeled block,It's crashing mah game. crash report: http://pastebin.com/wP2DQJ15 main class: http://pastebin.com/V1FxdVVf client proxy: http://pastebin.com/42vR8NCd common proxy: http://pastebin.com/T29K5a6K
  3. Does someone can give me a tutorial about rendering 3D blocks or make contect with me in skype?if skype,privet messege me your username.
  4. Well. i fixed some stuff and there is my new class but i still have 4 errors: public class RcTileEntityRenderer extends TileEntitySpecialRenderer { public void renderTileEntityAt(TileEntity tileEntity, double d, double d1, double d2, float f) { GL11.glPushMatrix(); GL11.glTranslatef((float)d, (float)d1, (float)d2); TileEntity tileEntityRc = tileEntity; renderBlockRail(tileEntityRc, tileEntity.worldObj, tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord, Yuvalmod.RC); GL11.glPopMatrix(); } public void renderBlockYour(RcTileEntity tl, World world, int i, int j, int k, Block block) { Tessellator tessellator = Tessellator.instance; float f = block.getBlockBrightness(world, i, j, k); int l = world.getLightBrightnessForSkyBlocks(i, j, k, 0); int l1 = l % 65536; int l2 = l / 65536; tessellator.setColorOpaque_F(f, f, f); OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)l1, (float)l2); int dir = world.getBlockMetadata(i, j, k); GL11.glPushMatrix(); GL11.glTranslatef(0.5F, 0, 0.5F); GL11.glRotatef(dir * (-90F), 0F, 1F, 0F); GL11.glTranslatef(-0.5F, 0, -0.5F); bindTexture("yourTexturePath"); GL11.glPopMatrix(); } public RcTileEntityRenderer() { model = new Rcmodel(); } public static final ResourceLocation texture = new ResourceLocation("Yuvalmod", "textures/models/mytexture"); }
  5. Ive took it from a forge tutorial.and Thanks arcane
  6. i have few errors in my Renderer calss.I will be happy with a solution or connect in kype(message me your name skype) Here is the class: public void renderTileEntityAt(TileEntity tileEntity, double d, double d1, double d2, float f) { GL11.glPushMatrix(); GL11.glTranslatef((float)d, (float)d1, (float)d2); RcTileEntity tileEntityRc = (TileEntityBlockZRail)tileEntity; renderBlockRail(tileEntityRc, tileEntity.worldObj, tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord, Yuvalmod.RC); GL11.glPopMatrix(); } public void renderBlockYour(RcTileEntity tl, World world, int i, int j, int k, Block block) { Tessellator tessellator = Tessellator.instance; float f = block.getBlockBrightness(world, i, j, k); int l = world.getLightBrightnessForSkyBlocks(i, j, k, 0); int l1 = l % 65536; int l2 = l / 65536; tessellator.setColorOpaque_F(f, f, f); OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)l1, (float)l2); int dir = world.getBlockMetadata(i, j, k); GL11.glPushMatrix(); GL11.glTranslatef(0.5F, 0, 0.5F); GL11.glRotatef(dir * (-90F), 0F, 1F, 0F); GL11.glTranslatef(-0.5F, 0, -0.5F); bindTexture("yourTexturePath"); GL11.glPopMatrix(); }
  7. Godis_apan if you have skype,private message me it.I need your help..
  8. Ok.i finished everything.where to put the model?
  9. there is my class: public int customField; @Override public void writeToNBT(NBTTagCompound par1) { super.writeToNBT(par1); par1.setInteger("customField", customField); } @Override public void readFromNBT(NBTTagCompound par1) { super.readFromNBT(par1); this.customField = par1.getInteger("customField"); } public TileEntity createTileEntity(World world, int metadata) { return new RcTileEntity(); } public Packet getDescriptionPacket() { NBTTagCompound nbtTag = new NBTTagCompound(); this.writeToNBT(nbtTag); return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, nbtTag); } public void onDataPacket(INetworkManager net, Packet132TileEntityData packet) { readFromNBT(packet.customParam1); } } where to place it?
  10. A problem: Packet132TileEntityData is not existing in 1.7.2
  11. Hi.I want to add a 3D modeled block.ill be happy for a tut.thnaks
×
×
  • Create New...

Important Information

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