Insomnia (Vanilla)

Insomnia is a mechanic added in Minecraft 1.13, but Upgrade Aquatic modifies the mechanic to be more intuitive and flexible. As well as adding the Bedroll for sleeping without setting spawn and potions to change your level of insomnia, there is also a shadowy border which by default appears after 3 days of not sleeping (i.e. when the player is susceptible to phantom attacks), but can be configured.

Potions
Potion of Restfulness - brewed with an awkward potion and cocoa beans. Level 1 reduces your insomnia by one day, Level 2 reduces it by two. This effect insta-kills Phantoms.

Potion of Insomnia - brewed with a Potion of Restfulness and a fermented spider eye. Level 1 increases your insomnia by one day, Level 2 increases it by two.

Both potions can be brewed into splash and lingering potions, and tipped on arrows. As with other instant effects, they cannot be extended and there is no change to duration if made into Level 2.