ResourcePack
๐๏ธ ResourcePack-Structure
The ResourcePack in Nexo follows the vanilla structure but also letting you import and automatically merge full ResourcePacks This is in an effort to make importing third-party ResourcePacks a lot easier. Below is an example of the new structure.
๐Nexo
โโโ ๐pack
โโโ ๐assets
โ โโโ ๐minecraft
โ โ โโโ ๐models
โ โ โ โโโ ๐item
โ โ โ โ โโโ ๐paper.json
โ โ โ โโโ ๐custom_model.json
โ โ โโโ ๐textures
โ โ โโโ ๐ผ๏ธsomething.png
โ โโโ ๐custom_namespace
โ โโโ ๐models
โ โโโ ๐custom.json
โ
โโโ ๐external_packs
โโโ ๐DefaultPack.zip
โโโ ๐custom_resourcepack.zip
โโโ ๐custom_resourcepack2
โโโ ๐assets
โโโ ๐custom_namespace2Goal is to let users merge resourcepacks in via either ZIPs or directories, outside of the normal assets folder.
This would dynamically merge in any conflicting files, like a paper.json or sounds.json, instead of migrating it to Nexo-configs to be generated.
Meaning that pack-import instructions on your end now boils down to:
Put my_pack.zip inside Nexo/pack/external_packs
๐ญ Obfuscation
Nexo has a built-in way to "obfuscate" the content of your resource-pack.
This is done by randomizing all file-names in an attempt to make it very hard and annoying to try and take stuff from it for pirates.
It comes with three modes, NONE, SIMPLE, FULL
NONE - Self-explanatory, does not obfuscate pack in any way
SIMPLE - Obfuscates filenames only
namespace:model/path.json -> namespace:bba2d60b-8e3e-4051-9734-fef92766777f
FULL - Obfuscates namespace & filename;
namespace:model/path.json -> c491303e-ba1e-4037-a59d-62b5fdfb6bb8:bba2d60b-8e3e-4051-9734-fef92766777f
๐ฆ PackSquash-Integration
Nexo allows you to run PackSquash on the resourcepack without manually reuploading the pack.
Simply download the latest PackSquash build and drop it in plugins/Nexo/pack/packsquash .
Then drop your packsquash.toml in the same directory, an example can be found here.
If you want it in another location, you can specify a path for the binary & settings
To enable Nexo's PackSquash-integration simply enable Pack.generation.packsquash.enabled in settings.yml. Then when the pack generates, it will start the PackSquash process. If it suceeds you should see somehting like the below.

If it failed you should see some detailed info about which file and a reason for it. If Nexo's debug-mode is enabled, it will output info about all successful files aswell
๐ PackServer
Nexo supports several ways to upload & dispatch the ResourcePack it generates.
Set the type via Pack.server.type in settings.yml.
NONE
Does not send any ResourcePack to players. Use this on backend servers that should not dispatch a pack.
POLYMATH
A dedicated upload server hosted by the Nexo team (Germany). The pack is uploaded and served automatically.
SELFHOST
Hosts the ResourcePack directly from your server machine. Requires an open port and a reachable public address.
LOBFILE
Uploads the pack to LobFile. Requires an API key.
S3
Uploads the pack to any S3-compatible object storage (AWS S3, Cloudflare R2, Hetzner Object Storage, etc.).
Custom PackServer
The NexoPackServer interface can be implemented by third-party plugins and registered via PackServerRegistry, allowing you to add your own upload/dispatch logic.
๐ Cross-Server/Proxy ResourcePacks
For Velocity proxy networks, use NexoProxy โ a Velocity plugin that blocks duplicate ResourcePack sends when players switch between backend servers.
๐ฅ Importing
Nexo lets you import Third-Party ResourcePacks in several ways.
The recommended one is shown above, by adding a directory or .zip to plugins/Nexo/pack/external\_packs
There is also Plugin.import.from_location in settings.yml, letting you specify a directory/zip relative to your plugins folder
There is also Plugin.import.from_url in settings.yml, letting you specify any url that Nexo will download a directory/zip from and include
Last updated