.. _component-fluidcontainer: component FluidContainer ======================== Adds a fluid container to an item Hierarchy --------- **Valid Parent Blocks:** - :ref:`item` - :ref:`entity` **Possible Child Blocks:** - :ref:`fluids` - :ref:`whitelist` ID Properties ------------- This block should not have an ID. Parameters ---------- .. _component-fluidcontainer-capacity: **Capacity** `🔗 <#component-fluidcontainer-capacity>`_ Type: ``float`` The fluid capacity of the container, the minimum value is ``0.05``. Default: ``1.0`` .. _component-fluidcontainer-containername: **ContainerName** `🔗 <#component-fluidcontainer-containername>`_ Type: ``string`` 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. Default: ``FluidContainer`` .. _component-fluidcontainer-customdrinksound: **CustomDrinkSound** `🔗 <#component-fluidcontainer-customdrinksound>`_ Type: ``string`` Refers to a `sound block `_ to trigger when drinking. Default: ``DrinkingFromGeneric`` .. _component-fluidcontainer-fillswithcleanwater: **FillsWithCleanWater** `🔗 <#component-fluidcontainer-fillswithcleanwater>`_ Type: ``boolean`` When set to true, the container will fill with clean water instead of tainted water when left outside in the rain. Default: ``False`` .. _component-fluidcontainer-hiddenamount: **HiddenAmount** `🔗 <#component-fluidcontainer-hiddenamount>`_ Type: ``boolean`` When true, will hide the fluid quantity from the UI. Default: ``False`` .. _component-fluidcontainer-initialpercent: **InitialPercent** `🔗 <#component-fluidcontainer-initialpercent>`_ Type: ``float`` No description .. _component-fluidcontainer-initialpercentmax: **InitialPercentMax** `🔗 <#component-fluidcontainer-initialpercentmax>`_ Type: ``float`` The minimum amount of fluid which will appear in this container. Default: ``1.0`` .. _component-fluidcontainer-initialpercentmin: **InitialPercentMin** `🔗 <#component-fluidcontainer-initialpercentmin>`_ Type: ``float`` The maximum amount of fluid which will appear in this container. Default: ``0.0`` .. _component-fluidcontainer-inputlocked: **InputLocked** `🔗 <#component-fluidcontainer-inputlocked>`_ Type: ``boolean`` Unused. Default: ``False`` .. _component-fluidcontainer-opened: **Opened** `🔗 <#component-fluidcontainer-opened>`_ Type: ``boolean`` Unused. Default: ``True`` .. _component-fluidcontainer-pickrandomfluid: **PickRandomFluid** `🔗 <#component-fluidcontainer-pickrandomfluid>`_ Type: ``boolean`` 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. Default: ``False`` .. _component-fluidcontainer-rainfactor: **RainFactor** `🔗 <#component-fluidcontainer-rainfactor>`_ Type: ``float`` 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. Default: ``0.0``