How to Get The Type of Fluid in a Tank Block

Started by Rikurob on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to Get The Type of Fluid in a Tank Block

How do I get the type of fluid from a block with fluid storage in a procedure? You can test to fill a certain type of fluid, but not test to drain a certain type of fluid. If I want a tank to be able to hold multiple liquids, and return that liquid to allow it to do different things based on the liquid in the tank, I don't know how to do that, or if it is possible.

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've been experimented with…
Tue, 05/03/2022 - 06:51

I've been experimented with the /data command and /data get block ~ ~ ~ fluidTank but I wouldn't know how to return the data. Also, it gives you a combined data tag with multiple things on it.

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I also want to know this
Fri, 06/09/2023 - 13:59

I also want to know this