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:
floatThe fluid capacity of the container, the minimum value is
0.05.Default:
1.0
- ContainerName 🔗
Type:
stringThe 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.
Default:
FluidContainer
- CustomDrinkSound 🔗
Type:
stringRefers to a sound block to trigger when drinking.
Default:
DrinkingFromGeneric
- FillsWithCleanWater 🔗
Type:
booleanWhen set to true, the container will fill with clean water instead of tainted water when left outside in the rain.
Default:
False
- InitialPercent 🔗
Type:
floatNo description
- InitialPercentMax 🔗
Type:
floatThe minimum amount of fluid which will appear in this container.
Default:
1.0
- InitialPercentMin 🔗
Type:
floatThe maximum amount of fluid which will appear in this container.
Default:
0.0
- InputLocked 🔗
Type:
booleanUnused.
Default:
False
- Opened 🔗
Type:
booleanUnused.
Default:
True
- PickRandomFluid 🔗
Type:
booleanWhen 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.
Default:
False
- RainFactor 🔗
Type:
floatDefines how much rain contributes to filling the container. A high value increases the rate of filling. A value of
0.0means that rain will not fill the container, which is the default value of the parameter.If the item is a weapon and
RainFactoris set to a value above the default, when the player aims with the weapon it will empty it.Default:
0.0