satoshinm / WebSandboxMC

Bukkit plugin providing a web-based interface with an interactive WebGL 3D preview or glimpse of your server 🕷⏳📦 ⛺
https://www.spigotmc.org/resources/websandboxmc.39415/
MIT License
19 stars 5 forks source link

Allow configuring texture pack from server-side #56

Closed satoshinm closed 7 years ago

satoshinm commented 7 years ago

Allow the server owner to specify a texture pack to send to the client, instead of/in addition to letting the client choose it, suggested at https://www.spigotmc.org/threads/websandboxmc.232807/page-2#post-2413850

Full compatibility with Minecraft resource packs would involve a full parser and modeling system, see notes at https://github.com/satoshinm/NetCraft/issues/26, but perhaps something simpler to start out with? Change the embedded textures/texture.png?


Implemented in 1.6.0, see:

https://github.com/satoshinm/WebSandboxMC#nc

If the plugin folder contains a file named textures.zip, then it will be sent as a custom texture pack to the client. This archive must contain a terrain.png with a texture atlas. For details on texture pack compatibility, see NetCraft#textures.

https://github.com/satoshinm/NetCraft#textures

satoshinm commented 7 years ago

Maybe a command to send to the client, to download the texture atlas from a URL and load it? Would be nice to have the plugin serve a modified craft.js/wasm but.. unclear how, and loading textures dynamically should be feasible given it is already possible to load from a dropped file (https://github.com/satoshinm/NetCraft/issues/113)