This simple datapack adds the Ice Bomb, a TNT-like item that, when exploded after its 5-second fuse, freezes all enemies in a 5 block radius for 15 seconds.
To obtain this new item, you can either craft it like this:
Or you can obtain it using commands like this:
/function give_ice_bomb