Posted July 13, 20196 yr 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) 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 July 13, 20196 yr by hyper1423
July 13, 20196 yr Author I understand the concept of TextureMap and TextureAtlasSprite, but what is Tessellator and BufferBuilder?
July 13, 20196 yr Author I did things what you said, but fluids in the tanks are invisible. (I updated GitHub repo) Edited July 13, 20196 yr by hyper1423
July 14, 20196 yr Author 9 hours ago, diesieben07 said: I don't see a way to get fluid into those tanks. What should I do then?
July 14, 20196 yr Author It still does not draw fluids except lava. Lava in the gui is like this: Spoiler and when I fill a tank, others fill too.
July 15, 20196 yr 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 July 15, 20196 yr by hyper1423
July 15, 20196 yr 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) Another textures are also drawn. Edited July 15, 20196 yr 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.