Minecraft flowers by command?

pa
2

I would like to know how to enter the command to spawn a red flower or rose with every step.

Repeat command

Unconditionally

Always active

My command: execute @s ~~~ detect ~~ -1 ~ Grass 0 setblock ~~ 0 ~ red_tower 0

What is the mistake or is the whole command wrong?

Be

Execute @a ~ ~ ~ detect ~ ~ -1 ~ minecraft: grass 0 / setblock ~ ~ ~ red_flower 0

This is how it should work

pa

It worked afterwards. Just had to enter my name instead of @s. And thank you