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 111
    • Issues 111
    • 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
  • Model

Model · Changes

Page history
wiki standardization authored Oct 21, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 2 additions and 2 deletions
+2 -2
  • Skills/Mechanics/Model.md Skills/Mechanics/Model.md +2 -2
  • No files found.
Skills/Mechanics/Model.md 0 → 100644
View page @ 058ef9f7
[< Back to mechanic page](/Skills/Mechanics)
## Description
Add or remove a model from the targeted entity.
## Attributes
| Attribute | Aliases | Description | Type | Default |
|-----------|---------------|------------------------------------------|---------|---------|
| modelid | m, mid, model | The model id of the model | String | |
| remove | r | Is this mechanic used for removing model | Boolean | false |
#### When remove = false
| Attribute | Aliases | Description | Type | Default |
|-----------------|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|---------|---------|
| hitbox | h | Should the model override the hitbox | Boolean | true |
| invisible | i, invis | Should the base entity be invisible | Boolean | true |
| damagetint | d, tint | Should the model flash red when damaged | Boolean | true |
| nametag | n, name | The tag bone used to display the name | String | |
| drive | | Can this model be driven | Boolean | false |
| ride | | Can this model have passengers | Boolean | false |
| lockpitch | lp, lpitch | Should the model's pitch be locked | Boolean | false |
| lockyaw | ly, lyaw | Should the model's yaw be locked | Boolean | false |
| step | s | The step height of the model | Double | 0.5 |
| radius | rad | Visible radius of the model.<br/>Values less than or equal to 0 will not be read | Integer | 0 |
| scale | | Scale of the model | Double | 1 |
| hitboxscale | | Collision hitbox scale of the model<br/>**Caution: Large hitboxes might cause server lag** | Double | scale |
| usestatemachine | usm, state, statemachine | Use the new animation system<br/>**Highly recommended to switch to this system** | Boolean | false |
| initrender | init | Whether the model should immediately be shown to players. If false, this allows you to further customize your model before showing with [RenderInit][] | Boolean | true |
| showhitbox | | Should the model's hitbox be visible.<br>If hidden, the player can no longer interact with the model. | Boolean | true |
| showshadow | | Should the shadow be visible | Boolean | true |
| syncbody | | Should the body rotation be synced to the head rotation | Boolean | true |
| save | | Should the model be saved on entity unload | Boolean | false |
#### When remove = true
| Attribute | Aliases | Description | Type | Default |
|-----------|---------|----------------------------------|---------|---------|
| killowner | ko | Should the base entity be killed | Boolean | false |
## Examples
#### Adding a new model:
This will apply a model on entity spawn and load.
```yaml
Skills:
- model{m=kindletronsr;usm=true} @self ~onSpawn
# Run the same mechanic on load if the mob is persistent
- model{m=kindletronsr;usm=true} @self ~onLoad
```
---
#### Remove a model:
This will remove the model and also kill the entity.
```yaml
Skills:
- model{m=kindletronsr;r=true;ko=true} @self
```
<!-- LINKS -->
[RenderInit]: /Skills/Mechanics/RenderInit
\ No newline at end of file
Clone repository
Home
FAQ / Common Issues
Commands & Permissions
Configuration

Modeling
  • Creating a Model
    • Hitbox & Eye Height
    • Shadow
  • Bone Behaviors
  • 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