Drain Fluid only when enough fluid is in tank

Started by Berdi2 on

Topic category: Help with modding (Java Edition)

Last seen on 21:33, 1. Apr 2021
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Drain Fluid only when enough fluid is in tank

Hello, I want to drain Fluid from my Pump into a canister but only if there is 100 or more mb in the pump. My code:

My code

I don't know how to get the amount of fluid in the pump. I tried it with capacity and level and test draining but non of them worked :(

Last seen on 19:34, 27. Jul 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try using "get level" and…
Wed, 11/25/2020 - 00:56

Try using "get level" and instead of "<" use ">"

Last seen on 08:34, 26. Mar 2024
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same problem and…
Wed, 01/06/2021 - 17:58

I have the same problem and I don't understand youe explaination SaturnBench