FloatingItems is a Minecraft mod that backports items' ability to float in water to pre-1.13 versions of Minecraft. It works both as a server-side mod as well as in single-player.
Note: For developers, FloatingItems has a Dev release, which is available on the CurseForge page. To see them in use check out the offical addons: