Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Model Engine 4 Model Engine 4
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 105
    • Issues 105
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • Model Engine 4Model Engine 4
  • Wiki
    • Skills
    • Mechanics
  • ModelPlayerSkin

Last edited by Lxlp Oct 21, 2024
Page history

ModelPlayerSkin

< Back to mechanic page

Description

Set a player limb bone of a model to the targeted player's skin.

Attributes

Attribute Aliases Description Type Default
modelid m, mid, model Targeted model. If null, targets all models. String
limbs p, pbone Targeted player limb bones (e.g. bone1,bone2,bone3). If null, targets all player limb bones. String
uuid Use the texture of the player with this UUID.
UUID works with or without dashes (-)
Player does not need to be online. Texture data is only downloaded once.
String
username user, name Use the texture of a player.
Player does not need to be online. Texture data is only downloaded once.
String
skin s Base64 texture data. If the data does not contain model information, default to CLASSIC model. String
slim Force the player model. If not set, it will default to the model the texture is using. Boolean

Examples

Set skin of all player limb bones:

This will set the skin of all player limb bones with the skin of the player interacting with the entity.

Skills:
  - model{m=skin} @self ~onSpawn
  - modelplayerskin @trigger ~onInteract

Set skin of multiple player limb bone:

This will set the skin of the left and right arm with the skin of the player interacting with the entity.

Skills:
  - model{m=skin} @self ~onSpawn
  - modelplayerskin{mid=skin;p=left_arm,right_arm} @trigger ~onInteract

Using skin from UUID:

Skills:
  - model{m=skin} @self ~onSpawn
  - modelplayerskin{uuid=853c80ef3c3749fdaa49938b674adae6} @self ~onSpawn
  # The following format works too
  - modelplayerskin{uuid=853c80ef-3c37-49fd-aa49-938b674adae6} @self ~onSpawn

Using skin from username:

Skills:
  - model{m=skin} @self ~onSpawn
  - modelplayerskin{username=Ticxo} @self ~onSpawn

Using skin from Base64 texture data:

Skills:
  - model{m=skin} @self ~onSpawn
  - modelplayerskin{skin=e3RleHR1cmVzOntTS0lOOnt1cmw6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjNhOTY0Y2I3ZTM2Yzc2NzM4ODY1ZjhjYzdmZGRmZTQ5MDYwOWUxZDdkZTQ5NTlkN2I1NzZlYmQxYjZmZjBhIn19fQ==} @self ~onSpawn

Aliases

  • ModelSkin
Clone repository
Home
FAQ / Common Issues
Commands & Permissions
Configuration

Modeling
  • Creating a Model
    • Hitbox & Eye Height
    • Shadow
  • Bone Behaviors
    • Player Limbs
  • Animating a Model
  • Importing a Model
  • Scriptable Keyframes
  • Optional Tools
MythicMobs
  • Mechanics
  • Conditions
  • Targeters
Citizens (R4.0.4)
  • Trait
  • Commands & Permissions

API
  • Basic
    • Apply / Remove Model
    • Play / Stop Animation
    • Configure Bone Behaviors
    • Mounting / Dismounting Model
    • Per-Player Model
    • Events
  • Advanced
    • Custom Base Entity
    • Custom Mount Controller
    • Custom Importer
    • Custom Bone Behaviors
    • Custom Script Reader
    • Custom Timeline
    • Custom Animation Handler
    • Custom Render Type

Technical
  • Terminology
  • Animation Systems
  • Mount Controllers
Promotional Material