Send Ressource pack without server.proprieties

Hello, i search for install a ressourcepack to client, the ressourcepack is in a link (always available)…

i know the metod .sendRessourcepack(); but i don"t know how to declarate the ressource-pack.

i don’t want to use the server.proprieties because it’s possible to import 2 or 3 differents ressource pack.

and if you can explain me to verify if the player has a ressourcepack, it’s better to :wink:

thx

You can do ResourcePacks.fromUri(new URI("http://www.example.com/") which returns a ResourcePack that can be sent through sendRessourcepack()

thx :wink:
and how can i verify if the player has accept the ressource pack or no?

I don’t think that is possible.

You can use the ResourcePackStatusEvent.

one question again, my file has to be in .zip file or directory file?

I’m fairly certain it must be in a .zip format.

Ultimately, it doesn’t matter on the client’s end, but I don’t believe that the server is equipped to send multiple (sometimes quite a lot) files from a directory.

it’s in .zip! thanks

1 Like

A snippet from: http://minecraft.gamepedia.com/Resource_pack

“Resource packs can be placed in the folder resourcepacks within the .minecraft folder. Each resource pack is either a sub-folder or a .zip file within the resourcepacks folder.”

That’s the client, @wingz. The server, however, cannot sent multiple (quite a lot) files. Server -> Client must be a .zip format.

Ah, you’re right. Thanks man :smile: