Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.7.10] Fluid opacity
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
M4thG33k

[1.7.10] Fluid opacity

By M4thG33k, June 29, 2015 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

M4thG33k    0

M4thG33k

M4thG33k    0

  • Stone Miner
  • M4thG33k
  • Members
  • 0
  • 58 posts
Posted June 29, 2015

This is probably a dumb question, but how do I make a custom fluid translucent? I have a custom fluid that is functional and is taking the texture I give it, but is not taking into account the opacity of the .png file. What simple thing have I overlooked this time?  :-\ Thanks in advance!

  • Quote

Share this post


Link to post
Share on other sites

Abastro    123

Abastro

Abastro    123

  • World Shaper
  • Abastro
  • Forge Modder
  • 123
  • 1075 posts
Posted June 30, 2015

You can make your custom implementation for fluid block/

  • Quote

Share this post


Link to post
Share on other sites

M4thG33k    0

M4thG33k

M4thG33k    0

  • Stone Miner
  • M4thG33k
  • Members
  • 0
  • 58 posts
Posted June 30, 2015

Pardon my ignorance here, since graphics are definitely not my strong suit, but I don't see how extending the class will help with the opacity. I haven't seen a method in the FluidBlockClassic class that I could override that would cause the desired effect and I'm pretty sure I can't write my own method to do it either.

  • Quote

Share this post


Link to post
Share on other sites

Abastro    123

Abastro

Abastro    123

  • World Shaper
  • Abastro
  • Forge Modder
  • 123
  • 1075 posts
Posted June 30, 2015

Sorry, I misunderstood your post; What do you mean by 'not taking into account the opacity of the .png file'?

Does it ignore alpha channel?

  • Quote

Share this post


Link to post
Share on other sites

M4thG33k    0

M4thG33k

M4thG33k    0

  • Stone Miner
  • M4thG33k
  • Members
  • 0
  • 58 posts
Posted June 30, 2015

Correct. The fluid is functioning as desired, the only issue is with the graphics. I have my .png with an opacity/alpha of 100/255 (using paint.net to do graphics), but the fluid is rendering as a solid block.

  • Quote

Share this post


Link to post
Share on other sites

Abastro    123

Abastro

Abastro    123

  • World Shaper
  • Abastro
  • Forge Modder
  • 123
  • 1075 posts
Posted June 30, 2015

Wait, what is the opacity value? I think there is only RGB + Alpha data on png file.

  • Quote

Share this post


Link to post
Share on other sites

M4thG33k    0

M4thG33k

M4thG33k    0

  • Stone Miner
  • M4thG33k
  • Members
  • 0
  • 58 posts
Posted June 30, 2015

Well, I re-opened my .png and it appears the opacity/alpha didn't save correctly... I've found the cause for that and now everything works perfectly! This was embarrassing...

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • KingMax
      Endsieg WW2 - Server due to start very soon - Working guns and vehicles!

      By KingMax · Posted 18 minutes ago

      Greetings Comrade/Captain/Hauptmann! Welcome to Europe's final theater of war, Scandinavia! Despite the fall of Berlin the third Reich continues to hold out in Norway and the surrounding areas, the war is not yet over. Ultimate Victory will require many more battles to be fought. Infrastructure will need to be built, tanks, planes and ships shall have to be designed and produced and factories will be needed to produce the weapons of war.Endsieg has a multitude of special mechanics found on almost no other MC servers: fully functional ground, air and sea vehicles, guns, factories and more!Will you fight for the Allies to liberate Norway from tyranny?Will you defend the Soviet motherland by finally defeating the fascist menace?Will you take up the mantle of saving the remains of the Third Reich?Will you preserve the territorial integrity of the Republic of Finland?Will you help the Kingdom of Sweden once again rise to prominence as a Baltic powerhouse?Due to launch in a short matter of days or weeks, join our discord!discord.gg/anp3BJQ
    • Crack3dC0d3
      [1.14.4] Multiple models on the same item.

      By Crack3dC0d3 · Posted 44 minutes ago

      bump
    • snivinia
      unable to connect to friend's modded server

      By snivinia · Posted 1 hour ago

      my mistake, these should be the right links now https://drive.google.com/file/d/1CxPl-CVNCtOl0LWKv9U7o9WT6jBtMOe1/view?usp=sharing https://drive.google.com/file/d/11YJ-SAt7nYmloZQXOw5f4-gsxpYtDMyN/view?usp=sharing will also update in original post
    • plugsmustard
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By plugsmustard · Posted 1 hour ago

    • Draco18s
      Distinguish singleplayer vs. multiplayer

      By Draco18s · Posted 2 hours ago

      As you did not provide very much code...   Who knows.
  • Topics

    • KingMax
      0
      Endsieg WW2 - Server due to start very soon - Working guns and vehicles!

      By KingMax
      Started 17 minutes ago

    • Crack3dC0d3
      4
      [1.14.4] Multiple models on the same item.

      By Crack3dC0d3
      Started December 2

    • snivinia
      2
      unable to connect to friend's modded server

      By snivinia
      Started 18 hours ago

    • DragonITA
      12
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA
      Started 13 hours ago

    • solitone
      8
      Distinguish singleplayer vs. multiplayer

      By solitone
      Started Thursday at 08:20 PM

  • Who's Online (See full list)

    • OdachiPlayz
    • Zillex_
    • snivinia
    • Jaffaaaaa
    • diesieben07
    • LexManos
    • eatthenight
    • tdude0317
    • saxon564
    • imacatlolol
    • TheAmazingTurkey
    • KingMax
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.7.10] Fluid opacity
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community