Color Skins
The setSkin action swaps the player’s skin through SkinsRestorer. This example shows three preset skins plus a reset button. The closeMenu call right before setSkin is mandatory - changing the skin respawns the player, and the open inventory would crash the client.
What it teaches
Section titled “What it teaches”- The
setSkinaction withtexture+signatureparameters - The
resetSkin: trueshortcut to restore default skin - Why
closeMenumust run beforesetSkin(respawn + open inventory crashes the client) - Using
PLAYER_HEADwith atexture:field to render a skin preview as the menu item
Important: order of actions
Section titled “Important: order of actions”Inside the actions { ... } block, keys are executed in the order they appear in the file. The plugin docs explicitly require closeMenu before setSkin:
:::cautionBefore this action, you need to set the closeMenu action, because when theskin is changed, player respawning. If the menu is opened, it may cause acritical error for the client.:::In each item’s click block above, closeMenu: 1 comes first, then setSkin. Don’t reorder.
Getting real texture and signature
Section titled “Getting real texture and signature”The placeholders in this example (REPLACE_WITH_TEXTURE_BASE64_GOLD etc.) won’t work as-is. To get real values:
- Go to MineSkin.org.
- Upload an image or pick a preset.
- Copy the Texture Data field into the
texture:parameter. - Copy the Texture Signature field into the
signature:parameter.
The two fields are long base64 strings. The texture on the displayed PLAYER_HEAD (the preview) is the shorter texture-hash form (just the hash from the http://textures.minecraft.net/texture/<hash> URL).
Customizing
Section titled “Customizing”To add more skin choices, copy any item block, change the slot:, name:, the preview texture:, and the setSkin payload. The shared template’s ${successSound} keeps the audio feedback consistent across choices.
To skip the preview (use a non-head item like a banner), drop the texture: field and change material: to RED_BANNER or whatever fits the visual theme.
Try it
Section titled “Try it”After installing the example pack:
- Install SkinsRestorer.
- Replace the
REPLACE_WITH_*placeholders with real texture/signature values. - Drop the bundle into
plugins/AbstractMenus/menus/example/. /am reload.- Type
/ame_skinsin-game. - Click a skin. Reconnect to see the change.