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
thx
Rain336
September 28, 2015, 9:11pm
2
You can do ResourcePacks.fromUri(new URI("http://www.example.com/")
which returns a ResourcePack
that can be sent through sendRessourcepack()
thx
and how can i verify if the player has accept the ressource pack or no?
hmksq
September 29, 2015, 2:51am
4
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.
varrix
September 29, 2015, 7:33pm
9
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.
varrix
September 29, 2015, 10:32pm
11
Ah, you’re right. Thanks man