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
    • Conditions
  • ModelHasPassengers

ModelHasPassengers · Changes

Page history
wiki standardization authored Oct 21, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 0 additions and 0 deletions
+0 -0
  • Skills/Conditions/ModelHasPassengers.md Skills/Conditions/ModelHasPassengers.md +0 -0
  • No files found.
Skills/Conditions/ModelHasPassengers.md 0 → 100644
View page @ 058ef9f7
## Description
Checks if the target modeled entity has passengers
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| modelid | model, mid, m | The id of the model of the modeled entity to check against | |
| pbone | p, seat | The name of the seat(s) to check for | |
| mode | | The mode of the search. Can be either `AND` or `OR` | AND |
### Mode Attribute
The mode attribute determine if *all* of the selected seats should have a passenger, or if only *one of them* should.
- Using the `AND` mode, **all** of the selected seats should have a passenger in order to make the condition be met
- Using the `OR` mode, only **one** of the selected seats should have a passenger in order to make the condition be met
## Examples
This conditions is met only if all of the selected seats are occupied
```yaml
Conditions:
- modelhaspassengers{mid=your_model;p=seat1,seat2;mode=AND} true
```
##
This conditions is met if at least one of the selected seats are occupied
```yaml
Conditions:
- modelhaspassengers{mid=your_model;p=seat1,seat2;mode=OR} true
```
##
This conditions is met if at least one of the selected seats is empty
```yaml
Conditions:
- modelhaspassengers{mid=your_model;p=seat1,seat2;mode=AND} false
```
##
This conditions is met if none of the selected seats are occupied
```yaml
Conditions:
- modelhaspassengers{mid=your_model;p=seat1,seat2;mode=OR} false
```
## Aliases
- [x] modelhaspassenger
- [x] modelpassengers
- [x] modelpassenger
\ 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