Aller au contenu principal

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.

Champs

ChampTypePar défautDescription
categoryRef<CosmeticCategoryEntry>—Catégorie de cette définition de skins
applicableItemsList<Item>emptyListe des items (Item types) auxquels cette catégorie de skins s'applique
skinsList<SkinConfig>emptyListe des skins disponibles dans cette catégorie
SkinConfig (8)
ChampTypePar défautDescription
skinIdString—Identifiant unique du skin
displayNameVar<String>—Nom affiché du skin
permissionString—Permission requise pour débloquer ce skin (vide = pas de permission)
itemModelString—Item model key applied when this skin is active (e.g., 'minecraft:custom/sword_flame')
itemFlagsList<ItemFlag>emptyItemFlags à appliquer à l'item skinné
menuIconItem—Icône affichée dans le menu des skins
loreList<Var<String>>emptyLore affiché dans le menu (state: non sélectionné)Multiligne
selectedLoreList<Var<String>>emptyLore affiché quand le skin est sélectionné/actifMultiligne

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.