Hello everyone and welkom to my first 7d2d guide.
In this guide I will explain some basics I found out whilst experimenting with water. A first will be that in my understanding a lot of people tend to be afraid of water and rather not use it. Do not worry as while it may be buggy from time to time it isnt the monster everyone thinks it is.
The reason I named this thread "A Collective Understanding" is because I would love to see more and more information regarding water in this thread, questions and anwsers fire them away as it can only help!
The Coordinate String
After a whole lot of searching around the web I only found ONE entry made by guppy asking for an explaination on water. It turned out that without his question including very important information I wouldn't have figured out how it works as guppy's question is the only place that included the full coordinate string of water.
What if water collides?
So, what if one body of water overlaps another body of water? If this is the case the body with the highest priority will override the one with the lower body as shown in the paint example below. The way the priority is established depends on how high the entry is within the water_info.xml file.
<WaterSources>
<Water pos="X, Y, Z"/> ( p1 )
<Water pos="X, Y, Z"/> ( p2 )
<Water pos="X, Y, Z"/> ( p3 )
</WaterSources>
Hope this all wasn't too confusing and I did a proper job of explaining it. Took me quite some time to write it all up so let's hope this will be of good use!
Do not hesistate if you have information to add!!
In this guide I will explain some basics I found out whilst experimenting with water. A first will be that in my understanding a lot of people tend to be afraid of water and rather not use it. Do not worry as while it may be buggy from time to time it isnt the monster everyone thinks it is.
The reason I named this thread "A Collective Understanding" is because I would love to see more and more information regarding water in this thread, questions and anwsers fire them away as it can only help!

The Coordinate String
After a whole lot of searching around the web I only found ONE entry made by guppy asking for an explaination on water. It turned out that without his question including very important information I wouldn't have figured out how it works as guppy's question is the only place that included the full coordinate string of water.
So here goes my attempt to explain this and the very first thing you'll need to know is that a water body needs 4 coordinates drawing up a cube or rectangular which are MaxX, MaxZ and MinX, MinZ. To save you and myself some headaches I've decided to draw up a example:
<Water pos="X, Y, Z" maxx="PositiveX" maxz="PositiveZ" minx="NegativeX" minz="NegativeZ"/>
To save you a headache here's an example of how I did it ingame:
Resulting in:
Which is roughly:
<Water pos="X, Y, Z" maxx="PositiveX" maxz="PositiveZ" minx="NegativeX" minz="NegativeZ"/>
Code:

To save you a headache here's an example of how I did it ingame:

Resulting in:
Code:
<Water pos="-1388, 98, -770" maxx="-1138" maxz="-482" minx="-1824" minz="-1100"/>

So, what if one body of water overlaps another body of water? If this is the case the body with the highest priority will override the one with the lower body as shown in the paint example below. The way the priority is established depends on how high the entry is within the water_info.xml file.
<WaterSources>
<Water pos="X, Y, Z"/> ( p1 )
<Water pos="X, Y, Z"/> ( p2 )
<Water pos="X, Y, Z"/> ( p3 )
</WaterSources>
Code:

Hope this all wasn't too confusing and I did a proper job of explaining it. Took me quite some time to write it all up so let's hope this will be of good use!
Do not hesistate if you have information to add!!