Well, I used to live on a sailboat, and painting miniatures during a storm was pretty challenging. For wizard crafting, glassware might be at risk, and the resulting arcane spills could have humorous to fatal consequences.
There is (deliberately) no rule for this level of detail. If you want your players to craft what they need, then they can do so without trouble. If you want to use this as an excuse for an encounter, then
either the port is completely out of quintessence of mercury because it was all taken in the recent pirate raid,
or lightning bugs are allergic to salt and so a substitute for live lightning bugs must be found,
or oops, I spilled something...and it eats through wood.