Posted August 24, 201510 yr In my power lines mod, I want arced lines representing wire to be drawn connecting the different power lines together, like Immersive Engineering's connectors and their wire. I'm looking at the GL11 API but I don't know what to use or how to use it, or if that's even the right thing to be looking at. I like trains.
August 24, 201510 yr Author I wouldn't even know where to begin to look for what does the fishing line. Right now I'm looking at ItemRenderer in net.minecraft.client.renderer and uhh I can't see the forest for the trees. I like trains.
August 24, 201510 yr Rendering of the fishing line and bobber is done in RenderFish . Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
August 24, 201510 yr Author Okay I think I see what I need in the end of the doRender(EntityFishHook, double, double, double, float, float) method, that stuff with the tessellator. I don't quite understand what's going on but I think I can figure it out. I like trains.
August 27, 201510 yr Author Okay so I sort of understand how it all works and I've come up with this: https://gist.github.com/UntouchedWagons/377d2b6a26fb143b9031 however I never see a line 4 blocks above my tile entity. Initially I didn't understand what the x, y and z arguments of renderTileEntityAt were for so I used those and the line did render and move with my player as I moved around, but since changing it to te.*Coord, I get nothing. What obvious thing am I missing? I like trains.
August 27, 201510 yr Author I don't think I understand what you're saying: https://gist.github.com/UntouchedWagons/377d2b6a26fb143b9031 Am I supposed to subtract the xCoord of the TE from the xCoord of the player? That seems strange, but this is minecraft after all. [Edit] In RenderFish's doRender method near the end, some math is done with the player's coordinates, but all the math loses me kinda quick [Edit #2] I think I understand what you're saying. I like trains.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.