Jump to content

[1.12.2] [Unsolved] Fluid inside GUI not rendering correctly


hyper1423

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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