Page 1 of 1

[Question]Changing liquid properties

PostPosted: Fri May 08, 2015 14:52
by ABJ
How do I change liquid properties such as viscosity, range etc? I've tried some settings on minetest.conf;it seems to flow more but not nearly as much as I expected. Please tell me the variables I need to modify?

Re: [Question]Changing liquid properties

PostPosted: Fri May 08, 2015 18:17
by Mg
For these parameters, you need to modify the code contained in minetest_game/mods/default/nodes.lua
There used to be a global variable for water and lava viscosity, but now you have to edit the code of their registration :
https://github.com/minetest/minetest_ga ... s.lua#L911
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
liquid_viscosity = 1


You have to do it for both source and flowing, on every node you want to change.
The radius of flow is a builtin parameter and I don't think it should be increased nor dicreased (knowing that water's parameter for the flowing drawtype is limited).

Re: [Question]Changing liquid properties

PostPosted: Sat May 09, 2015 06:25
by ABJ
What do you mean by "builtin"? Is it not to be found?

Re: [Question]Changing liquid properties

PostPosted: Sat May 09, 2015 07:04
by Krock
Mg wrote:The radius of flow is a builtin parameter and I don't think it should be increased nor dicreased (knowing that water's parameter for the flowing drawtype is limited).

You can add the key "liquid_range" with any value between 1 and 8.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
liquid_range = 8,

https://github.com/minetest/minetest/bl ... .txt#L3012