Same with item frames
This can also be done with item frames (doesn't have to be invulnerable)
1. Get yourself a bow with Flame2. Place item frame and put a random item in3. Shoot the item frame from a distance
This also applies to 1.8 and below
Same with item frames