PackSquash could be a good way of compressing the resourcepack: https://github.com/ComunidadAylas/PackSquash Already an example for how to call in java as well: https://gist.github.com/AlexTMjugador/7049bdecfe94c893c457d78084e0dfd6