Randomized grass/Varied

So im working on a resource pack that has a random chance to change the grass into a model, not to be confused with a grass block, but its a relativly small pack only using one model, but im also not sure how to code this to use alongside of Optifine.

Continue to help post