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

I made a GUI of a fluid handling TileEntity, but in the tank GUI, it is a bit strange. (Don't mind the texts, I will remove that)

2019-07-13_16_38_49.png.e01586a86d4388b18b53ca29b8713ad7.png

It is not animated, nor scaled. It seems GUI does not read .mcmeta files, then how do I make fluids render correctly?

p.s. What is TextureAtlasSprite? When do I use it?

 

Git repository: here

Thanks in advance.

Edited by hyper1423

  • Author

I understand the concept of TextureMap and TextureAtlasSprite, but what is Tessellator and BufferBuilder?

  • Author

I did things what you said, but fluids in the tanks are invisible. (I updated GitHub repo)

Edited by hyper1423

  • Author
9 hours ago, diesieben07 said:

I don't see a way to get fluid into those tanks.

What should I do then?

  • Author

It still does not draw fluids except lava. Lava in the gui is like this:

Spoiler

2019-07-14_22_52_17.png.9aaaa24e8bc573b7fa183d457404709f.png

 and when I fill a tank, others fill too.

  • Author
19 hours ago, diesieben07 said:

What I mean is I don't know how to debug this because I don't know how to make your GUI even display fluids (aka. how do I get fluids into the machine).

Right-click the machine with a bucket.

Edited by hyper1423

  • Author

I fixed it. I changed

		b.pos(x, y + height, z).tex(u, maxV).endVertex();
		b.pos(x + width, y + height, z).tex(u, maxV).endVertex();
		b.pos(x + width, y, z).tex(u, maxV).endVertex();
		b.pos(x, y, z).tex(u, maxV).endVertex();

to

		b.pos(x, y + height, z).tex(u, maxV).endVertex();
		b.pos(x + width, y + height, z).tex(maxU, maxV).endVertex();
		b.pos(x + width, y, z).tex(maxU, v).endVertex();
		b.pos(x, y, z).tex(u, v).endVertex();

. But I have another problem:

 

(I can't find button to insert spoiler in editing mode, sorry)

2019-07-15_20_00_53.png.2e3f51068e0aa280d0b5127cf1d7df0d.png

Another textures are also drawn.

Edited by hyper1423

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.