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

So I want to achieve something similar to the way the Arcane Pedestals from Thaumcraft work, wherein they render the item they are holding above them, but I have no idea how to go about that. I currently have a tile entity that will store and item upon clicking it, so how would I get it so that it displays the items it has above it?

No signature for you!

  • Author

Hmm. I can't seem to get it to work. I can get the model loaded, but the item never renders. No errors or anything.

No signature for you!

I had some issues getting it to work initially too. But I realized that the item was rendering, but it was rendering outside of my view. I messed up the translations. I looked at the code for the Project E and that was similar, but not updated to 1.9.

 

After some head scratching and testing I got it to work. The end result for me is a piano with and Item that can be placed on the music rack.

p9xUl.png

  • Author

Wow, that's really cool.

 

Just check my translations and they were off as well. Ty for the help.

No signature for you!

  • Author

Okay, one last thing. With the way my tile entity works, it can store up to 8 items, and will display them all. To do this I created a for loop (the items are stored in a list) and then would render each item, translating and scaling each time. However, the translate and scale functions are relative, which makes it a little harder to display this sort of stuff, is there a way I can 'reset' the position and scale of the render? i.e. is there some function like GlStateManager.position(x,y,z) or do I have to make my translations/scale changes and then manually revert them afterwards?

 

No signature for you!

Pushing and popping the GL state comes to mind. I do that because I have three models that I need to apply different translation and rotations to. The music rack, bench and the inventory item to be displayed. I'm using TESR for now, but I'd like to convert over to the new animation system. My goal is to have the music rack flip up and down and the bench move in and out. The piano itself is  based on the vanilla bed code. So one block, two models. The the rack and bench are just normal json defined models rendered in the TESR.

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.