Overview
The/skin command allows you to change your character’s skin code, which determines your visual appearance in the game. You can specify skin codes in decimal or hexadecimal format.
Syntax
Optional keyword indicating the code is in hexadecimal format. If omitted, the code is treated as decimal.
The skin code to apply. Can be decimal (e.g.,
123456) or hexadecimal (e.g., 1E240) when preceded by hex.Usage Examples
Decimal Skin Code
Set skin using a decimal code:Hexadecimal Skin Code
Set skin using a hexadecimal code (prefix withhex):
1A2B3C is converted to decimal 1715004 internally.
Common Skin Codes
Here are some example skin codes you can try:Validation and Errors
Missing Skin Code
If you don’t provide a skin code:Invalid Skin Code
If the code contains invalid characters:Invalid Hexadecimal Code
If you usehex but provide an invalid hex value:
How It Works
Decimal vs Hexadecimal
The command automatically detects the format:- Check for hex keyword: If the first argument is “hex” (case-insensitive)
- Validate hex digits: If hex mode, ensures all characters are valid hexadecimal (0-9, A-F)
- Parse number: Converts the string to
uint32_tusing the appropriate base (10 or 16) - Send packet: Broadcasts the skin change to all players
Skin Change Packet
The command sends anOnChangeSkin packet:
Implementation Details
Source Reference
Implementation:/home/daytona/workspace/source/src/command/commands/skin_command.hpp:14
Parsing Logic
The command uses sophisticated parsing:Data Type
Skin codes are stored asuint32_t (unsigned 32-bit integer), supporting values from 0 to 4,294,967,295.
Finding Skin Codes
Common Methods
Observation
Note the skin codes of other players you encounter
Experimentation
Try different codes to discover appearances
Documentation
Check community resources for known skin codes
Hex Conversion
Convert between decimal and hex to explore ranges
Hex Conversion Example
Convert decimal to hex using any calculator or programming tool:Persistence
Session-Based
Your skin change is not persistent across:- Disconnects and reconnects
- World changes (unless you set it again)
- Proxy restarts
Auto-Apply on Join
To automatically set your skin when joining a world:.lua file in the scripts/ directory.
Use Cases
Customization
Personalize your character’s appearance
Disguise
Change your appearance for anonymity
Testing
Test different visual styles during development
Fun
Experiment with unique and rare appearances
Limitations
Range and Values
Valid Range
- Minimum:
0(default skin) - Maximum:
4,294,967,295(0xFFFFFFFFin hex)
Practical Range
While technically you can use any value in the valid range, most meaningful skin codes are typically in a much smaller range. Experimentation is key to finding interesting appearances.Related Commands
/nick
Change your display name
World API
Access player data from Lua