Add Bitmaps
Bitmap resources can be used to display custom graphics, textures, and interface elements.
Create the Bitmap Assets Directory
Create a namespace and basename under the plugins/Xerr/core/assets/image/[namespace]/[basename]
directory.
For example, if the namespace is haha
and the basename is world
, the full path would be plugins/Xerr/core/assets/image/haha/world
.
Add Graphics
Add .png
graphic files to the plugins/Xerr/core/assets/image/haha/world/textures
directory.
Create the Graphic Configuration File
In the plugins/Xerr/core/assets/image/haha/world/
directory, create the bitmap configuration file config.yml
.
The directory structure example is as follows:
Edit the Bitmap Configuration File
In the config.yml
file, you can specify display parameters for each graphic, including the graphic's path, height, width, etc.
Here is an example configuration:
Note
- The maximum value for
height
is 256. For taller displays, split the graphic and assemble it progressively.
Reload Configuration
The resource pack will be auto-generated and configurations reloaded automatically after saving changes.
Test Graphic Configuration
Use the following command to verify graphic display:
Command supports tab autocompletion