Cuberite Forum
Function to get water flowing direction? - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Function to get water flowing direction? (/thread-235.html)



Function to get water flowing direction? - Lapayo - 12-24-2011

Hey, I wondered wheather there is already a function to get the direction of a water flow.

I created an own one, but it isn´t very reliable.


For example: Waterblock (8|19|29) and get X+, Z+, X-, Z-, Y- or something like thatBig Grin

Thanks,

Simon


RE: Function to get water flowing direction? - FakeTruth - 12-24-2011

Well I don't really understand the water simulation in MCServer, I just copy pasted it from a Lua plugin that simulated it. It doesn't have the exact same behaviour as the original Minecraft water either


RE: Function to get water flowing direction? - Lapayo - 12-24-2011

MhhBig Grin I also don´t fully understand it. Do you still know the plugin? Then i might look wheather there is a function like thisBig Grin


RE: Function to get water flowing direction? - FakeTruth - 12-24-2011

Here is the original water plugin: http://ae-c.net/viewtopic.php?f=14&t=261

There's no such function in there


RE: Function to get water flowing direction? - Lapayo - 12-24-2011

That´s not so goodBig Grin

I commited my own function for the first, because it´s better than nothing but i don´t know how to improve itBig Grin