[Abandoned] [Mod] Soft Leaves [0.2.1] [soft_leaves]

User avatar
j0j0n4th4n
Member
Posts: 249
Joined: Tue Jan 26, 2021 06:45

Re: [Abandoned] [Mod] Soft Leaves [0.2.1] [soft_leaves]

by j0j0n4th4n » Post

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 =/
cdb_894a100ddd76

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 25 guests