Since DTN 1.18.64, server administrators can control which dog skins are allowed on their server using a datapack-based configuration system. This system allows for blacklisting or whitelisting specific skins based on their texture's SHA-1 hash.
Setup
To configure the skin restrictions, you must create or modify a datapack:
- In your datapack, create the following directory structure:
data/doggytalents/doggytalents/allowed_skin/ - Create a file named
allowed_skin.jsonwithin that directory.
Configuration Format
The allowed_skin.json file should follow this structure:
{
"strategy": "allow_except",
"hash": [
"hash_1",
"hash_2",
"hash_n"
]
}
Fields:
strategy: Defines how the hash list is interpreted:allow_except: Allows all skins except those listed in thehasharray (Blacklist).disallow_except: Disallows all skins except those listed in thehasharray (Whitelist).
hash: An array of SHA-1 hash strings representing the dog skin textures.
Obtaining Texture Hashes
To find the hash value for a specific skin:
- Open the Dog Menu on a dog.
- Navigate to the Style tab.
- Go to the Skins section.
- Use the Show Info feature to view the technical details of a skin, which includes its texture's SHA-1 hash.
Notes
- This system is server-side. Clients attempting to use a restricted skin will have their skin reverted to the default "Pale" variant.
- Changes require a reload of the server's datapacks (
/reloadcommand).