Posted August 1, 20169 yr When rendering my tile entity, the model renders incorrectly. The model renders in the right block on the first place, but every time I place it after that, the model keeps rendering in the first position. The model itself doesn't render properly either. WoodenBaseTileEntityRenderer.java: package com.aimod.tileEntities; import org.lwjgl.opengl.GL11; import com.aimod.Main; import com.aimod.models.WoodenBaseModel; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.entity.Entity; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; public class WoodenBaseTileEntityRenderer extends TileEntitySpecialRenderer { private WoodenBaseModel model; private ResourceLocation texture = new ResourceLocation("aimod:textures/blocks/WoodenBase.png"); public WoodenBaseTileEntityRenderer() { model = new WoodenBaseModel(); } @Override public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float scale) { GL11.glPushMatrix(); GL11.glTranslated(x+0.5, y+1.5, z+0.5); GL11.glRotated(0, 0, 0, 1); this.bindTexture(texture); this.model.render(null, 0, -0.1f, 0, 0, 0, -0.0625f); GL11.glPopMatrix(); } }
August 1, 20169 yr Author The tutorials I found use it, but I'm not entirely sure, no. How would I render it otherwise?
August 1, 20169 yr Author It looks like a squat little table, about a third of a block high, and 1 unit in from each side.
August 1, 20169 yr Author I probably should have said this in my first post, but the block will need to have a GUI and storage. I'm using 1.7.10, which I also should have said. I'm absent-minded. Since it needs storage, wouldn't it need to be a tile entity?
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.