Read the license on the github page: https://github.com/Vazkii/AutoRegLib

 

Yes, you can use it on modpacks or distribute it, it's cool.