Jump to content

Air_Gamer

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Air_Gamer's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. Isn't entityId unique to each instance of an entity, but matched between client and server? It is possible to send packets to sync data between. See this tutorial ( )
  2. I'm also trying to get my head around using Wavefront files. Looking at ee3 it seems to use "/assets/ee3/models/modelname.obj" with the .jar filestructure being "ee3.jar/mods/ee3/models/modelname.obj" I've also noted that Forge is picky about .obj files, doesn't seem to like normals, whole numbers saved as "1" rather than "1.0" and scientific notation.
  3. If your using the coords the renderTileEntityAt is called with, it won't work. those values refer to the rendering position of the block and is different from its world position. You need to use the tile entity that renderTileEntityAt is called with. Have you overridden getDescriptionPacket and onDataPacket? You need to do this to properly access the values during rendering, even on single player. Assuming you TileEntity has nbt saving properly implemented you can use public Packet getDescriptionPacket() { NBTTagCompound tag = new NBTTagCompound(); this.writeToNBT(tag); return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, tag); } public void onDataPacket(INetworkManager net, Packet132TileEntityData packet) { NBTTagCompound tag = packet.customParam1; // get tag this.readFromNBT(tag); } in you TileEntity class
  4. MapItemRenderer uses a texture in memory these lines par2RenderEngine.createTextureFromBytes(this.intArray, 128, 128, this.bufferedImage); with bufferedImage being an int GL11.glBindTexture(GL11.GL_TEXTURE_2D, this.bufferedImage); would probably be how it does this. TileEntitySpecialRenderer and Render has references to RenderEngine as; this.renderManager.renderEngine; for Render and this.tileEntityRenderer.renderEngine; for TileEntitySpecialRenderer Edit: I realise I was looking at 1.4.7 but I assume it is still present in 1.5.
×
×
  • Create New...

Important Information

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