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

Last edited by Lxlp Dec 30, 2024
Page history
This is an old version of this page. You can view the most recent version or browse the history.

MountModel

< Back to mechanic page

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.
If true and driver=true, it will dismount the old driver.
If true and driver=false, it will mount the target on the least occupied mount bone.
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.
If driver = true, it is used to mount on the driver seat of a model that does not represent main mount controller.
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.

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.

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

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