Jump to content

PaulBB

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

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

PaulBB's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. How do i check if the player is trident riptide flying?
  2. @vemerion Ah, I see LevelRenderer. To clarify, should the methods be triggered in 'RenderWorldLastEvent'? Is it just that method being used, or are there additional settings, etc., to wrap around the method?
  3. Hi all, I only recently updated my forge mod from version 1.12.2 and im currently learning about the changes to rendering. From Forge 1.12.2 this is how you would render an outline around a blockpos: Minecraft mc = Minecraft.getInstance(); PlayerEntity player = mc.player; GL11.glPushMatrix(); GL11.glEnable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); GL11.glLineWidth(2); GL11.glBegin(GL11.GL_LINES); GL11.glColor4f(red.getValueF(), green.getValueF(), blue.getValueF(), 1f); assert player != null; double startX = pos.getX() - player.getPosX(); double startY = pos.getY() - player.getPosY(); double startZ = pos.getZ() - player.getPosZ(); double endX = startX + 1.0; double endY = startY + 1.0; double endZ = startZ + 1.0; GL11.glVertex3d(startX, startY, startZ); GL11.glVertex3d(endX, startY, startZ); GL11.glVertex3d(startX, startY, startZ); GL11.glVertex3d(startX, startY, endZ); GL11.glVertex3d(endX, startY, startZ); GL11.glVertex3d(endX, startY, endZ); GL11.glVertex3d(startX, startY, endZ); GL11.glVertex3d(endX, startY, endZ); GL11.glVertex3d(startX, endY, startZ); GL11.glVertex3d(endX, endY, startZ); GL11.glVertex3d(startX, endY, startZ); GL11.glVertex3d(startX, endY, endZ); GL11.glVertex3d(endX, endY, startZ); GL11.glVertex3d(endX, endY, endZ); GL11.glVertex3d(startX, endY, endZ); GL11.glVertex3d(endX, endY, endZ); GL11.glVertex3d(startX, startY, startZ); GL11.glVertex3d(startX, endY, startZ); GL11.glVertex3d(startX, startY, endZ); GL11.glVertex3d(startX, endY, endZ); GL11.glVertex3d(endX, startY, startZ); GL11.glVertex3d(endX, endY, startZ); GL11.glVertex3d(endX, startY, endZ); GL11.glVertex3d(endX, endY, endZ); GL11.glEnd(); GL11.glDisable(GL11.GL_BLEND); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glPopMatrix(); When substituting this code, It no longer works, Atleast not how its supposed to work. So if someone could educate me on how i can achieve the same result in the newer versions of the rendering system it would be greatly appreciated.
  4. The issue was i didnt have forge nor minecraft on my laptop. Ensure you have forge client installed and the minecraft version downloaded.
  5. The issue was i didnt have forge nor minecraft on my laptop. Ensure you have forge client installed and the minecraft version downloaded.
  6. I will run getAssets task and provide the log. https://www.mediafire.com/file/bibvb7zougyzkl1/log.txt/file
  7. This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error> <Code>AccountRequiresHttps</Code> <Message>The account being accessed does not support http. RequestId:d30f7b12-d01e-0059-1e3b-3ba838000000 Time:2023-02-07T21:29:53.9796504Z</Message> <AccountName>resourcesdownloadminecra</AccountName> </Error> Could you please verify when accessing we both get the same message? Chunk of Javascript at the bottom that did not pass copy and paste, This link is where it gets the asset.
  8. Error downloading asset (try 2) : minecraft/sounds/block/fence_gate/close2.ogg java.io.IOException: Server returned HTTP response code: 400 for URL: http://resources.download.minecraft.net/58/58d63232621aaa03e4d09598700561214e7c2477 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1902) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1500) at java.net.URL.openStream(URL.java:1093) at net.minecraftforge.gradle.tasks.DownloadAssetsTask$GetAssetTask.call(DownloadAssetsTask.java:189) at net.minecraftforge.gradle.tasks.DownloadAssetsTask$GetAssetTask.call(DownloadAssetsTask.java:150) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) This and countless other assets failing to download. This is my school laptop, Programs such as Fortiguard are installed, Could this possibly be interfering?
  9. How do I check if a player is riding a boat ? I need help, I thought it would be this; if (!mc.player.ridingEntity());
×
×
  • Create New...

Important Information

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