Where does “потрібно” come from?

потрібно (Ukrainian) comes from Ukrainian потрі́бний, from Polish potrzebny, from Old Polish -ny, from Proto-Slavic -ьnъ — -ish, -ic, -al, -ed; From adjectives.

Ancestry of “потрібно”, step by step

StepLanguageWordMeaning
1Ukrainianпотрі́бнийnecessary, needed, required
2Polishpotrzebnynecessary
3Old Polish-nyforms adjectives
4Proto-Slavic-ьnъ-ish, -ic, -al, -ed; From adjectives
Every word from Proto-Slavic -ьnъEvery word from Old Polish -nyEvery word from Polish potrzebny