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


  • Content Count

  • Joined

  • Last visited

Community Reputation

5 Neutral

About thebear

  • Rank
    Tree Puncher
  1. I actually had the same problem in the beginning too. What I did was, I downloaded the latest version from the forge website. Make sure you download "latest", not "recommended". In the latest version, the function names should be deobfuscated. The version I used was 1.15.2-31.1.19. Im not sure why, the mapping for it is 20200225-1.15.1. Hope it helps you!
  2. Alright, I solved my problem now. What I did is, I force loaded the chunk with ServerWorld::forceChunk and then got the BlockState with ServerWorld::getBlockState.
  3. The reason I want to do this is, that I'm writing a mod that gets the shortest path to a location. To be able to find a path, I need to get the blocks. Oh that makes sense. If the block isn't loaded, it doesn't have a state. Is there any way of getting the type of block at some position in an unloaded chunk then?
  4. So basically what I'm trying to do is to get the BlockState of a block in an unloaded chunk. I tried to do so by using World::getBlockState() which works fine in loaded chunks, but in unloaded chunks, it returns a BlockState whose block is always VOID_AIR. As soon as the chunk gets loaded though, it works correctly. Is there a way to get the BlockState of a block in an unloaded chunk?
  5. Actually it didn't quite work in the nether, but now it does. The reason I am posting this is, that if someone has the same problem in the future, they will find this. I searched for this on google for a good hour, but didn't find anything. New code: @SubscribeEvent public void render(RenderWorldLastEvent event) { IRenderTypeBuffer.Impl buffer = Minecraft.getInstance().getRenderTypeBuffers().getBufferSource(); IVertexBuilder builder = buffer.getBuffer(RenderType.LINES); MatrixStack matrixStack = event.getMatrixStack(); Playe
  6. Thanks for your reply! Finally got it working correctly! new code: public class PathRenderer { private Minecraft mc; public PathRenderer() { mc = Minecraft.getInstance(); } @SubscribeEvent public void render(RenderWorldLastEvent event){ Tessellator tessellator = Tessellator.getInstance(); BufferBuilder buffer = tessellator.getBuffer(); MatrixStack matrixStack = event.getMatrixStack(); Vec3d pos = mc.player.getPositionVec(); matrixStack.push(); matrixStack.translate(-pos.x, -pos.y, -pos.z); R
  7. So I just tried the exact same code 1.14.4 and it worked perfectly. Is there something about rendering that has changed from 1.14.4 to 1.15.2?
  8. Hi, im fairly new to forge modding, so please forgive for asking such a stupid question. Now for my problem. Im trying to draw a line between two positions. Drawing the line works, but when I change pitch or yaw, the line doesn't adjust, it just stays in the same position on screen. I want it to adjust it's position, just like a normal block would. What happens: https://imgur.com/EwpOGuo What I tried: Main class: @Mod("path") public class path { public path() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup
  • Create New...

Important Information

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