Changes
Page history
Many mechanics
authored
Aug 26, 2023
by
Ticxo
But missing examples
Hide whitespace changes
Inline
Side-by-side
MythicMobs/mechanics/model/Model.md
View page @
353188d9
...
...
@@ -7,34 +7,34 @@ Add or remove a model from the targeted entity.
Attributes
----------
| Attribute | Aliases | Description | Default |
|-----------|---------------|------------------------------------------|---------|
| modelid | m, mid, model | The model id of the model | |
| remove | r | Is this mechanic used for removing model | false |
| 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 | Default |
|-----------------|--------------------------|--------------------------------------------------------------------------------------------|---------|
| hitbox | h | Should the model override the hitbox | true |
| invisible | i, invis | Should the base entity be invisible | true |
| damagetint | d, tint | Should the model flash red when damaged | true |
| nametag | n, name | The tag bone used to display the name | |
| drive | | Can this model be driven | false |
| ride | | Can this model have passengers | false |
| lockpitch | lp, lpitch | Should the model's pitch be locked | false |
| lockyaw | ly, lyaw | Should the model's yaw be locked | false |
| step | s | The step height of the model | 0.5 |
| radius | rad | Visible radius of the model.
<br/>
Values less than or equal to 0 will not be read | 0 |
| scale | | Scale of the model | 1 |
| hitboxscale | | Collision hitbox scale of the model
<br/>
**Caution: Large hitboxes might cause server lag**
| scale |
| usestatemachine | usm, state, statemachine | Use the new animation system
<br/>
**Highly recommended to switch to this system**
| 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 |
#### When remove = true
| Attribute | Aliases | Description | Default |
|-----------|---------|----------------------------------|---------|
| killowner | ko | Should the base entity be killed | false |
| Attribute | Aliases | Description |
Type |
Default |
|-----------|---------|----------------------------------|---------|
---------|
| killowner | ko | Should the base entity be killed |
Boolean |
false |
Examples
--------
...
...
...
...