Modding:Liquids

=Adding a new liquid=

A new liquid is implemented by a C# class that inherits from  and has the   attribute. A trivial liquid might be implemented, say, in a file called  directly inside the mod's directory, as follows:

This creates a liquid with largely uninteresting properties whose internal identifier is. The easiest way is to see it in-game is to spawn it in some container, so let's create an  as well:

Now you can wish it into existence with.

=Modifying an existing liquid=

=Properties that a liquid can implement=