On my planet Chlorea there are desserts and in them is a tree-like plant. During the dry season nothing really happens; the plant saves water, they lose leaves to save water etc. But in the wet season they bear fruit so the animals can eat the fruit and the seed that the animals secretes later on would find soil and water during the wet season and grow. But in some cases the rain doesn't come, so in order to breed or spread the seeds, they have a stalk that grows next to where the fruit would be attached and when rain comes or the times right they shoot them into the air to spread or creatures get them when eating the fruit that's leftover. Is this a good method or is it too complex and can a plant have fruit and spores? (edit)-why does this have 1k i didnt think it would go this far
https://www.youtube.com/watch?v=OB0P3mx_lxY Should give some good ideas. As a marine scientist all I can think of are the many things underwater that use dispersal, however that is useless in this case. The video covers multiple plants that explode their seeds.
- Violet flowers push out seeds as they dry due to the pressure of the seed pod
- Touch me nots release built up pressure on contact as the case curls back and off the stem
- The squirting cucumber as mentioned by another answer
Yes, there are some natural instances where seeds "explode" away from the main plant.
It might actually be the "multiple modes of dispersal" that is the harder-to-evolve idea; though maybe the "squirting cucumber" isn't too far off from the edible/explode-able fruit that you have in mind.
There are plants on earth that do this. I'd suspect that an alien plant would be able to as well.
The sandbox tree produces a fruit that explosively distributes it's seeds up to 100m when fully ripened. This fruit hasn't evolved to be very appetizing to animals, in fact the sap is used to poison arrows but there's no reason for your made up plant to be so toxic.