Sprays
Sprays are a type of cosmetic where the player can "spray" different map arts or text onto the ground. Sprays are temporary, and can be configured to disappear after a certain amount of time, or when a new spray is used.
These map arts are clientside and do not actually affect the world, so are safe for any types of servers.
Configuration
Sprays go in a configuration file located in any pack:
plugins/MythicMobs/packs/cosmetics/sprays/your_file.yml
You can have one or more files in the folder, and a file can have multiple sprays in it.
In addition, the spray image itself should go in the assets/sprays folder here:
plugins/MythicMobs/packs/assets/sprays/your_spray.png
To add a spray cosmetic, place the image you want to use in the assets/sprays folder (unless using text), then create or modify a file inside the sprays config folder within whatever pack you want and use the following config format:
laugh:
Image: laugh
Display: "Laughing Face"
Description:
- "A laughing emoji"
If you want to use text instead of an image, you can specify Text instead of Image and simply input the text:
hello_there:
Text: '<rainbow>HELLO THERE!'
Display: "HI"
Description:
- "say hello!"
Basic Options
Sprays have the following options:
| Option | Description |
|---|---|
ID |
The ID of the cosmetic |
Image |
The image to use for the spray (cannot be combined with Text) |
Text |
The text to use for the spray (cannot be combined with Image) |
Display |
The display name of the cosmetic in menus |
Description |
The lore of the cosmetic in menus |