Skin Definition
Définition d'une catégorie de skins (wraps) pour les items
Defines a category of skins (e.g., "Swords", "Axes") and the skins available for it.
Felder
| Feld | Typ | Standard | Beschreibung | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
category | Ref<CosmeticCategoryEntry> | — | Catégorie de cette définition de skins | ||||||||||||||||||||||||||||||||||||
applicableItems | List<Item> | empty | Liste des items (Item types) auxquels cette catégorie de skins s'applique | ||||||||||||||||||||||||||||||||||||
skins | List<SkinConfig> | empty | Liste des skins disponibles dans cette catégorie
|
| Feld | Typ | Standard | Beschreibung |
|---|---|---|---|
skinId | String | — | Identifiant unique du skin |
displayName | Var<String> | — | Nom affiché du skin |
permission | String | — | Permission requise pour débloquer ce skin (vide = pas de permission) |
itemModel | String | — | Item model key applied when this skin is active (e.g., 'minecraft:custom/sword_flame') |
itemFlags | List<ItemFlag> | empty | ItemFlags à appliquer à l'item skinné |
menuIcon | Item | — | Icône affichée dans le menu des skins |
lore | List<Var<String>> | empty | Lore affiché dans le menu (state: non sélectionné)Mehrzeilig |
selectedLore | List<Var<String>> | empty | Lore affiché quand le skin est sélectionné/actifMehrzeilig |
How to use it
One definition holds a list of skins for the items listed in applicableItems. A skin has a unique skinId, a displayName, an optional permission, the itemModel key applied to the item, optional itemFlags, a menuIcon and two lore lists, one for the normal state and one (selectedLore) when it is the active skin. A skin can be used when its permission is empty (free for everyone) or held by the player, or when it was unlocked with /tw skins give <player> <skinId>.
Applying a skin sets item_model on the item in the main hand and stores the skin id on the item. The skins menu shows the skins of every definition that matches the held item.