1. Place any block which has waterlogged tag and flood it.
2. Use a Fish Bucket, for example, Salmon Bucket and Cod Bucket, toward the block.
Then, although a fish spawns on the block, The bucket doesn't turn empty but a fish is still in it.
So to continue using the bucket toward the block makes fish spawn infinitly.
Duplicate of MC-127045, which is fixed.