Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

  • 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.

  • 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.

  • 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.

  • 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.