Posted May 22, 20169 yr Does anyone know how to make animated fluid, in this case water and lava, in a gui? Im a noob at this sort of stuff... Thanks in advance eKoop Creator: http://lumtech.byethost33.com/mods/eKoop/modinfo.html
May 22, 20169 yr http://www.minecraftforge.net/forum/index.php/topic,38758.msg203882.html#msg203882 That linked, you probably want 1st option (.pngs) You can use vanilla water images to animate. 1.7.10 is no longer supported by forge, you are on your own.
May 22, 20169 yr Author ok but I don't get where to put the update screen, my gui is just the simple draw foreground ect. eKoop Creator: http://lumtech.byethost33.com/mods/eKoop/modinfo.html
May 22, 20169 yr If you want to just draw the animating lava texture (like how it is in the world), you don't need to do something that complicated. You'll want to: Bind the blocks texture (TextureMap.locationBlocksTexture , IIRC) Get the TextureAtlasSprite for the fluid from the texture map Use the getInterpolatedU and getInterpolatedV methods to get the U and V coords to use when you draw the texture onto the screen This is how I did it for my GUI fluid indicator, but it's for 1.8.9 so yours (mostly just the drawFluidQuad method) will be a bit different: https://github.com/shadowfacts/ShadowMC/blob/master/src/main/java/net/shadowfacts/shadowmc/gui/component/GUIFluidIndicator.java#L31-L69 Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
May 22, 20169 yr Author Yup, it's different and, as a noob with updating/downgrading, i've only figured how to convert one bit of code. Sorry about my noobishness Also - what's lava and water's atlas name ? Thanks eKoop Creator: http://lumtech.byethost33.com/mods/eKoop/modinfo.html
May 22, 20169 yr minecraft:lava_still and minecraft:water_still , IIRC Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
May 22, 20169 yr Author Ok, here is what i've done so far, I have no idea how to fix the draw fluid quad section ;l https://gist.github.com/anonymous/2b3570c128225b2d3bde1c3031113cc1 Thanks eKoop Creator: http://lumtech.byethost33.com/mods/eKoop/modinfo.html
May 22, 20169 yr Author I'm sorry guys, but this is too complicated, I honestly don't have a clue, I kinda understand the switching between coords, but where do I put gui updatescreen? eKoop Creator: http://lumtech.byethost33.com/mods/eKoop/modinfo.html
May 22, 20169 yr Author OK, Basically, I have all the drawing done, all I want is to get the textures source from the animated texture. Look at my gui near the coolant bit. eKoop Creator: http://lumtech.byethost33.com/mods/eKoop/modinfo.html
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.