Jump to content

shadowfacts

Forge Modder
  • Posts

    588
  • Joined

  • Last visited

Posts posted by shadowfacts

  1. I'm not just going to give you code, but what you'll need to do is:

     

    • Create a custom task that:
    • Reads the
      gradle.properties

      file

    • Increments the version number found the in the file and saves it to the properties object and increments the project
      version

      property

    • Saves the updated properties back to the
    gradle.properties[code] file

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

×
×
  • Create New...

Important Information

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