Please help me, I have been trying to do this for a long time, but I can't do it. How can draw a line between two coordinates in the world, for example between two blocks?
I try, but it doesn't work: (calling drawLine in Event RenderWorldLastEvent: drawLine(0,0,0,10,10,10);)
private static void drawLine(double x1, double y1, double z1, double x2, double y2, double z2)
{
Tessellator tessellator = Tessellator.getInstance();
BufferBuilder bufferbuilder = tessellator.getBuilder();
bufferbuilder.begin(3, DefaultVertexFormats.POSITION_COLOR);
bufferbuilder.vertex(x1, y1, z1).color(255,0,0, 255).endVertex();
bufferbuilder.vertex(x2, y2, z2).color(255,0,0, 255).endVertex();
tessellator.end();
}