MZ Plugin to alter "bush" effect

Is there a plugin that modifies how the "bush" effect works, in particular allowing to give different "heights" to the bush (transparency).
I think it would be better if we could have something like low/mid/high bush, depending on the nature of the terrain (could be achieved with tags or regions).
there is a way in MV found [here], however, I dont know if it's the
same way in MZ or similair function to achieve the same?
I copy/pasted it but it doesn't seem to do anything.
It could also be because I'm using TN_Sprite_Extender...?
I dont know what it does, as MZ might use a small different function,
you need to check the core files what is written there as I dont own MZ.
I dont know what it does, as MZ might use a small different function,
you need to check the core files what is written there as I dont own MZ.

I can't, I know peanuts about scripting lol
it seems RMMZ has the same code, if you save it as plugin,
and change the 12 to a different number, it should work,
if you want it based on region number (200, 201, 202) for low, mid, high,
than it probably need to be modified a bit more to include that.

but I cannot really help though, so I hope someone can help you
if the changing the number doesn't work.
Just to be sure if the sprite extending plugin is the culprit in question, have you tried testing the bush height plugin without it? Since that will help narrow things down! As the sprite extending plugin does come with a disclaimer that it may affect bush transparency in odd, unintended ways at times.
Just FYI the bush code appears updated after tileset change in 1.5.0 to accommodate that:

JavaScript:
Game_Map.prototype.bushDepth = function() {
    return this.tileHeight() / 4;
};

So it calculates based on tileheight now (divide by 4), you could copy that into a js file and save it as plugin to overwrite the default in your game.

e.g.
JavaScript:
var _Game_Map_BushDepth = Game_Map.prototype.bushDepth
Game_Map.prototype.bushDepth = function() {
    return this.tileHeight() / 3;
};

However, to do something more dynamic like you want, you'll still need a plugin/or to do more coding.

n.b. this change is probably why the MV version of it doesn't work either -- assuming you're using the latest version of MZ
Instead of a number, can't it just be the value of a variable?

return this.tileHeight() / 3;

A variable instead of 3
Yep, that'd work, and then you can control the variable in game. But you'll need to make sure to set the variable to other than 0 before the player encounters a bush, or something like this:

Code:
return this.tileHeight() / ($gameVariables.value(1) + 1);

Otherwise the game will try to divide by zero
It works without the Sprite Extender, but not with.

Original thread: https://forums.rpgmakerweb.com/threads/plugin-to-alter-bush-effect.149847/