.. _fluid: fluid ===== Create a new fluid definition. Different properties can be provided for the fluid v ia the use of different children blocks: * `Properties `_ is used to indicate the various stats change that drinking this fluid would cause to the player. * `Categories `_ act as tags for the fluid, to easily identify it. * `BlendWhiteList `_ and `BlendBlackList `_ are used to provide rules for the blending of this fluid with other fluids. * `Poison `_ is used to define poison properties for the fluid. Hierarchy --------- **Valid Parent Blocks:** - :ref:`module` **Possible Child Blocks:** - :ref:`blendblacklist` - :ref:`blendwhitelist` - :ref:`categories` - :ref:`poison` - :ref:`properties` ID Properties ------------- This block should have an ID. Parameters ---------- .. _fluid-colorreference: ColorReference ^^^^^^^^^^^^^^ :Type: Any A reference to a color defined in the Colors class. You can find a full list of the colors available in the `Colors `_ documentation. For example, to use the color ``Azure`` from the documentation: .. code-block:: cpp fluid yourFluid { ColorReference = Azure, ... } .. _fluid-displayname: DisplayName ^^^^^^^^^^^ :Type: Any The name of the fluid that will be displayed in the game. The value corresponds to the key for the fluid's name in the `Fluids.json `_ translation file. The translation keys for the fluid usually have the prefix ``Fluid_Name_`` but this is technically not required. For example: .. code-block:: cpp fluid yourFluid { DisplayName = Fluid_Name_YourFluid, ... } And in the translation file of your mod: .. code-block:: cpp { "Fluid_Name_YourFluid": "Your Fluid" }