component FluidContainer#

Adds a fluid container to an item

Hierarchy#

Valid Parent Blocks:

Possible Child Blocks:

ID Properties#

This block should not have an ID.

Parameters#

Capacity#

Type:

float

Default:

1.0

The fluid capacity of the container, the minimum value is 0.05.

ContainerName#

Type:

string

Default:

FluidContainer

Attributes:

Useless

The name of the fluid container, seems to be unused. The name cannot have whitespaces, the game will sanitize it to remove them and show an error in the console about it.

CustomDrinkSound#

Type:

string

Default:

DrinkingFromGeneric

Refers to a sound block to trigger when drinking.

FillsWithCleanWater#

Type:

boolean

Default:

False

When set to true, the container will fill with clean water instead of tainted water when left outside in the rain.

HiddenAmount#

Type:

boolean

Default:

False

When true, will hide the fluid quantity from the UI.

InitialPercent#

Type:

float

Incompatible with:

InitialPercentMin, InitialPercentMax

No description

InitialPercentMax#

Type:

float

Default:

1.0

Incompatible with:

InitialPercent

The minimum amount of fluid which will appear in this container.

InitialPercentMin#

Type:

float

Default:

0.0

Incompatible with:

InitialPercent

The maximum amount of fluid which will appear in this container.

InputLocked#

Type:

boolean

Default:

False

Unused.

Opened#

Type:

boolean

Default:

True

Unused.

PickRandomFluid#

Type:

boolean

Default:

False

Needs:

unknown

When set to true, the container will pick one of the available fluids in the Fluids child block at random when filling. If set to false, it will make every fluids appear.

RainFactor#

Type:

float

Default:

0.0

Defines how much rain contributes to filling the container. A high value increases the rate of filling. A value of 0.0 means that rain will not fill the container, which is the default value of the parameter.

If the item is a weapon and RainFactor is set to a value above the default, when the player aims with the weapon it will empty it.