It should be possible to make the leaves slow you by making them a liquid that does not spread and setting the liquid viscosity, much like the quicksand in ethereal.
It didn't quite worked, so far it is like this:
Code: Select all
for i_element = 1, 10 do
minetest.override_item(t_LEAF_NODES[i_element], {
drawtype = "liquid",
liquidtype = "source",
liquid_range = 0,
liquid_viscosity = 7,
liquid_alternative_flowing = t_LEAF_NODES[i_element],
liquid_alternative_source = t_LEAF_NODES[i_element],
climbable = false,
walkable = false,
use_texture_alpha = true
})
end
The problems are: the leaves do flow, albeit extremely slowly, but if I remove "liquid_alternative_flowing" the game throw an error. Only the surface is of the fluid is rendered so once the player is inside a patch of leaves every internal face is transparent and finally I still can't make it slow down the player, don't know what I'm doing wrong =/