Ich habe dir hier mal ein StorageESP geschrieben
(Musst das ggf. nur noch auf die Spieler übertragen)
public void draw(Block block, double x, double y, double z, double xo, double yo, double zo)
{
GL11.glDisable(2896);
GL11.glDisable(3553);
GL11.glEnable(3042);
GL11.glBlendFunc(770, 771);
GL11.glDisable(2929);
GL11.glEnable(2848);
GL11.glDepthMask(false);
GL11.glLineWidth(0.75F);
if (block == Blocks.ender_chest)
{
GL11.glColor4f(0.4F, 0.2F, 1.0F, 1.0F);
x += 0.0650000000745058D;
y += 0.0D;
z += 0.06000000074505806D;
xo -= 0.13000000149011612D;
yo -= 0.1200000149011612D;
zo -= 0.12000000149011612D;
}
else if (block == Blocks.chest)
{
GL11.glColor4f(Colors.espColorR, Colors.espColorG, Colors.espColorB, 1.0F);
x += 0.0650000000745058D;
y += 0.0D;
z += 0.06000000074505806D;
xo -= 0.13000000149011612D;
yo -= 0.1200000149011612D;
zo -= 0.12000000149011612D;
}
else if (block == Blocks.trapped_chest)
{
GL11.glColor4f(1.0F, 0.6F, 0.0F, 1.0F);
x += 0.0650000000745058D;
y += 0.0D;
z += 0.06000000074505806D;
xo -= 0.13000000149011612D;
yo -= 0.1200000149011612D;
zo -= 0.12000000149011612D;
}
SRenderHelper.drawOutlinedBoundingBox(new AxisAlignedBB(x, y, z, x + xo, y + yo, z + zo));
if (block == Blocks.ender_chest)
{
GL11.glColor4f(0.4F, 0.2F, 1.0F, 0.21F);
}
else if (block == Blocks.chest)
{
GL11.glColor4f(Colors.espColorR, Colors.espColorG, Colors.espColorB, 0.11F);
}
else if (block == Blocks.trapped_chest)
{
GL11.glColor4f(1.0F, 0.6F, 0.0F, 0.11F);
}
SRenderHelper.drawFilledBox(new AxisAlignedBB(x, y, z, x + xo, y + yo, z + zo));
if (block == Blocks.ender_chest)
{
GL11.glColor4f(0.4F, 0.2F, 1.0F, 1.0F);
}
else if (block == Blocks.chest)
{
GL11.glColor4f(Colors.espColorR, Colors.espColorG, Colors.espColorB, 1.0F);
}
else if (block == Blocks.trapped_chest)
{
GL11.glColor4f(1.0F, 0.6F, 0.0F, 1.0F);
}
SRenderHelper.drawOutlinedBoundingBox(new AxisAlignedBB(x, y, z, x + xo, y + yo, z + zo));
GL11.glDepthMask(true);
GL11.glDisable(2848);
GL11.glEnable(2929);
GL11.glDisable(3042);
GL11.glEnable(2896);
GL11.glEnable(3553);
}
public void onRender()
{
for (Object o : mc.theWorld.loadedTileEntityList) {
if ((o instanceof TileEntityChest))
{
TileEntityChest entity = (TileEntityChest)o;
Block chest = mc.theWorld.getBlockState(entity.getPos()).getBlock();
Block border = mc.theWorld.getBlockState(new BlockPos(entity.getPos().getX(), entity.getPos().getY(), entity.getPos().getZ() - 1)).getBlock();
Block border2 = mc.theWorld.getBlockState(new BlockPos(entity.getPos().getX(), entity.getPos().getY(), entity.getPos().getZ() + 1)).getBlock();
Block border3 = mc.theWorld.getBlockState(new BlockPos(entity.getPos().getX() - 1, entity.getPos().getY(), entity.getPos().getZ())).getBlock();
Block border4 = mc.theWorld.getBlockState(new BlockPos(entity.getPos().getX() + 1, entity.getPos().getY(), entity.getPos().getZ())).getBlock();
double x = entity.getPos().getX() - mc.getRenderManager().viewerPosX;
double y = entity.getPos().getY() - mc.getRenderManager().viewerPosY;
double z = entity.getPos().getZ() - mc.getRenderManager().viewerPosZ;
GL11.glPushMatrix();
net.minecraft.client.renderer.RenderHelper.disableStandardItemLighting();
if (chest == Blocks.chest)
{
if (border != Blocks.chest) {
if (border2 == Blocks.chest) {
draw(Blocks.chest, x, y, z, 1.0D, 1.0D, 2.0D);
} else if (border4 == Blocks.chest) {
draw(Blocks.chest, x, y, z, 2.0D, 1.0D, 1.0D);
} else if (border4 == Blocks.chest) {
draw(Blocks.chest, x, y, z, 1.0D, 1.0D, 1.0D);
} else if ((border != Blocks.chest) && (border2 != Blocks.chest) && (border3 != Blocks.chest) && (border4 != Blocks.chest)) {
draw(Blocks.chest, x, y, z, 1.0D, 1.0D, 1.0D);
}
}
}
else if ((chest == Blocks.trapped_chest) &&
(border != Blocks.trapped_chest)) {
if (border2 == Blocks.trapped_chest) {
draw(Blocks.trapped_chest, x, y, z, 1.0D, 1.0D, 2.0D);
} else if (border4 == Blocks.trapped_chest) {
draw(Blocks.trapped_chest, x, y, z, 2.0D, 1.0D, 1.0D);
} else if (border4 == Blocks.trapped_chest) {
draw(Blocks.trapped_chest, x, y, z, 1.0D, 1.0D, 1.0D);
} else if ((border != Blocks.trapped_chest) && (border2 != Blocks.trapped_chest) && (border3 != Blocks.trapped_chest) && (border4 != Blocks.trapped_chest)) {
draw(Blocks.trapped_chest, x, y, z, 1.0D, 1.0D, 1.0D);
}
}
net.minecraft.client.renderer.RenderHelper.enableStandardItemLighting();
GL11.glPopMatrix();
}
else if ((o instanceof TileEntityEnderChest))
{
TileEntityEnderChest entity = (TileEntityEnderChest)o;
double x = entity.getPos().getX() - mc.getRenderManager().viewerPosX;
double y = entity.getPos().getY() - mc.getRenderManager().viewerPosY;
double z = entity.getPos().getZ() - mc.getRenderManager().viewerPosZ;
GL11.glPushMatrix();
net.minecraft.client.renderer.RenderHelper.disableStandardItemLighting();
draw(Blocks.ender_chest, x, y, z, 1.0D, 1.0D, 1.0D);
net.minecraft.client.renderer.RenderHelper.enableStandardItemLighting();
GL11.glPopMatrix();
}
}
}
LG Intence