How to Get The Type of Fluid in a Tank Block

Started by Rikurob on Tue, 05/03/2022 - 06:50

Topic category: Help with modding (Java Edition)

Last seen on 01:37, 29. Jun 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to Get The Type of Fluid in a Tank Block
Tue, 05/03/2022 - 06:50

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.

Last seen on 01:37, 29. Jun 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.