You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three parts to this system, allowing us to host the resource pack directly from our web cloud and the server directly.
Save and Compile Pack
This piece is the first piece but can be skipped for the moment since we can manually upload the pack to it's file location on the web cloud.
Generate the Pack SHA-1
This should be simple; the endpoint opened explicitly for this file: https://api.behr.dev/resource/b.zip
That should make the entirety of the script, excluding any debugging or error handling:
- ~webget https://api.behr.dev/resource/b.zip headers:[User-Agent=b] save:response
- flag server behr.essentials.resource.SHA-1:<entry[response].result_binary.hash[SHA-1].to_hex>
this can be updated on startup:
after server start:
- run resource_fetch
Serve the Resource Pack
Lastly and simply, just serving it on join:
after player joins:
- resourcepack https://api.behr.dev/resource/b.zip hash:<server.flag[behr.essentials.resource.SHA-1]>
Three parts to this system, allowing us to host the resource pack directly from our web cloud and the server directly.
Save and Compile Pack
This piece is the first piece but can be skipped for the moment since we can manually upload the pack to it's file location on the web cloud.
Generate the Pack SHA-1
This should be simple; the endpoint opened explicitly for this file:
https://api.behr.dev/resource/b.zip
That should make the entirety of the script, excluding any debugging or error handling:
this can be updated on startup:
Serve the Resource Pack
Lastly and simply, just serving it on join:
Likely may need something to do with the resource pack status event
The text was updated successfully, but these errors were encountered: