Mods should be able to use external spritesheets for tiles/walls/objects
-
Subscribe to
onBeforeGetClientConfig
in your mod
onBeforeGetClientConfig: function ({ textureList, atlasTextures }) {
textureList.push('server/mods/mod-folder/images/newtiles.png');
atlasTextures.push('server/mods/mod-folder/images/newtiles.png');
}
- Add a new tileset to your map file. The name of the tileset should exactly match the path you added in step 2
That's literally all you need
Edited by Big Bad Waffle