Has Model
Description
Checks if the target entity currently has a model applied, optionally playing a specific state
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| modelid | model, mid, m | The id of the model to check for. If omitted, any active model is accepted | |
| state | s | The name of the state the model should be playing. If omitted, only the model presence is checked |
Examples
This condition is met if the casting entity has any model applied
Conditions:
- hasmodel true
This condition is met only if the target entity has the model your_model active
TargetConditions:
- hasmodel{mid=your_model} true
This condition is met if the target entity has no model at all
TargetConditions:
- hasmodel false
This condition is met only if the model your_model is active and currently playing the attack state
TargetConditions:
- hasmodel{mid=your_model;s=attack} true
This condition is met if any of the target's models is currently playing the attack state
TargetConditions:
- hasmodel{s=attack} true