-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
168 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Adding custom assets to Resource Pack | ||
|
||
Polymer has builtin support for adding and overriding assets to generated resource pack. You can do it in multiple ways. | ||
|
||
## Base folders | ||
You can add your assets to `polymer/source_assets` and/or `polymer/override_assets` folders. | ||
These folders might not exist by default so you will need to create them by hand. | ||
The `source_assets` folder is applied first, before any mod. The `override_assets` folder is applied last, after generation/copying of most other files. | ||
For most cases, you likely want to use `source_assets`. These folders both use vanilla resource pack structure, with `pack.mcmeta` and `pack.png` being optional | ||
and replacing default Polymer-generated one. | ||
|
||
## Adding resource packs zips or mods | ||
To add custom resource packs, open `config/polymer/resource-pack.json` file. | ||
Then look at list in `"include_zips"` and add paths to zips with your custom resource packs. | ||
These paths are relative to server's root folder. | ||
To copy assets from mods, you can either use the zip method or add their modid to `"include_mod_assets"`. | ||
Unlike with method above, the only copied folder is included `assets` folder, ignoring anything else, making | ||
it more suitable for merging resource packs without adding invalid metadata. | ||
|
||
This setting will only update on server restart. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Hosting Resource Packs | ||
|
||
Some Polymer mods (or if you use PolyMc) might require or allow for optional resource packs. | ||
Polymer has builtin module (AutoHost) to allow for automatic generation and hosting of resource packs | ||
on server start. | ||
|
||
## Installation / Checking if it's present | ||
To check if it's present, start the server and check if `config/polymer/auto-host.json` exists. | ||
If it doesn't install correct version of [Polymer from Modrinth](https://modrinth.com/mod/polymer). | ||
|
||
## Enabling AutoHost | ||
|
||
### For basic server setup (direct server without proxies, reusing port, 0.7.1+1.20.4 or newer) | ||
Start the server at least once. Then open the config file in `config/polymer/auto-host.json` | ||
and change the value in field `"enabled"` from `false` to `true`. Then save the file and restart the server! | ||
It should automatically apply the resource pack after it finishes generation. | ||
|
||
### For proxy setups (reuses port, 0.7.1+1.20.4 or newer) | ||
Do everything as above. | ||
If your server is behind proxy, you need to change the string for `"forced_address"` from `""` to | ||
`"http://serveraddress.net:port"` (for example `"http://server.net:25565"`). The port and address isn't required | ||
to match server internal one, if you use http proxies. | ||
|
||
### Custom port setup (0.4.8+1.19.4 or newer) | ||
Start the server at least once. Then open the config file in `config/polymer/auto-host.json` | ||
and change the value in field `"enabled"` from `false` to `true`. | ||
Next set `"type"` to `"polymer:http_server"`. Then replace `"settings"` with | ||
```json | ||
{ | ||
"port": 25567, | ||
"external_address": "http://localhost:25567/" | ||
} | ||
``` | ||
You can change port to any other you need, just make sure the external address is accessible from the outside. | ||
Then save the file and restart the server! | ||
It should automatically apply the resource pack after it finishes generation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.