Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Block

  • Rank
    Tree Puncher

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello, help please, I would like to draw a button directly on the screen on command from the chat. I get the command from ClientChatEvent - if (event.getMessage().equals("!draw")) Darken the screen with a black square to fill the screen with a transparency of 0.3 in RenderGameOverlayEvent.Post But how do you create a button on the screen ?
  2. I decided to roll back the version just below, and I ended up drawing a line: Forum thread
  3. UPDATE №2: Two days of searching later, Hooray!!!! I managed to implement a method that draws a line from block 1 to block 2. If anyone needs, here is my method: Call example:
  4. UPDATE: Hooray!!!! I did as I wanted, but there is a problem: When I turn on 3-person view, my line starts to move by an angle of rotation head, down or up or left or right. So how do I get the angle of rotation of the camera from the 3rd person? entity.getPitchYaw () doesn't work because this is the angle of the turn of the head. I get the coordinate shift like so:
  5. Hi, help me please. I've been trying to do this for a long time, I've reviewed a bunch of sources, but it doesn't work. I want to draw a line between two coordinates (for example 0, 0, 0 and 10, 10, 10) I understand that the line is drawn relative to 0 coordinates, and they need to be changed relative to the player (otherwise the line will move with the player) 1. But here's the trouble, the line is not displayed for me, what could be the problem? 2. By the way, the pushMatrix and translated methods of the GlStateManager class are deprecated. What is the actual replacement for this?
  6. 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.v
  7. Hi, please help, I need to add a dependency to my project. This is an API, but: 1. How can I add a check at the start of the mod that the dependency exists? 2. How do I import the API into my main class mod so that methods, classes, etc. are available? Version [1.16.5], ItelliJIdea
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.