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 110
    • Issues 110
    • 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
  • MountModel

MountModel · Changes

Page history
wiki standardization authored Oct 21, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 3 additions and 3 deletions
+3 -3
  • Skills/Mechanics/MountModel.md Skills/Mechanics/MountModel.md +3 -3
  • No files found.
Skills/Mechanics/MountModel.md 0 → 100644
View page @ 058ef9f7
[< Back to mechanic page](/Skills/Mechanics)
## Description
Mount an entity to a model's driver seat, or a specific mount bone.
## Attributes
| Attribute | Aliases | Description | Type | Default |
|---------------|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|---------|
| driver | d, drive | Is mounting a driver | Boolean | true |
| force | f | Is trying to forcibly mount an entity.<br/>If true and driver=true, it will dismount the old driver.<br/>If true and driver=false, it will mount the target on the least occupied mount bone.<br/>Otherwise, it will not mount the target if the seat is already occupied. | Boolean | false |
| autodismount | ad | Should the target dismount from the old mount if they are mounted already | Boolean | false |
| damagemount | dmg | Can the target damage the mount | Boolean | false |
| interactmount | int | Can the target interact with the mount (right click) | Boolean | true |
| mode | m | The controller mode specific to the target | [Mount Controller Id][] / [Meta Controller][] | walking |
| modelid | mid, model | Targeted model.<br>If driver = true, it is used to mount on the driver seat of a model that does not represent main mount controller.<br>Otherwise, used to mount on passenger seats. | String | |
#### When driver = false
| Attribute | Aliases | Description | Type | Default |
|-----------|----------|------------------------------------------------|-------------|---------|
| seat | p, pbone | Targeted mount bones (e.g. bone1,bone2,bone3). | String List | |
## Examples
#### Basic Usage
This example will mount you on the model when you right click the mob. Your mob must have a bone called `mount` for this to work. `drive=true` is required.
```yaml
Skills:
- model{m=elk;usm=true;drive=true;ride=true;n=nametag} @self ~onSpawn
- mountmodel{mid=elk;m=walking} @trigger ~onInteract
```
#### Using Meta Controller:
This will mount the trigger to the model with a [Meta Controller][], which mimics the behavior of the default walking
controller.
```yaml
Skills:
- model{m=elk;usm=true;drive=true;ride=true;n=nametag} @self ~onSpawn
- mountmodel{mode=[
- move{front=<skill.var.meg:front>;side=<skill.var.meg:side>}
- meg:jump ?variableEquals{var=skill.meg:jump;value=1} ?variableEquals{var=skill.meg:on_ground;value=1}
- dismountmodel @trigger ?variableEquals{var=skill.meg:sneak;value=1}
- actionmessage{m=<skill.var.meg:front> <skill.var.meg:side> <skill.var.meg:jump> <skill.var.meg:sneak>} @trigger
]} @trigger ~onInteract
```
---
[Mount Controller Id]: /Skills/Mechanics/Technical/Mount-Controllers
[Meta Controller]: /Skills/Mechanics/Technical/Mount-Controllers#meta-controllers
\ 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