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 108
    • Issues 108
    • 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
  • ModelHasDriver

Last edited by Lxlp Oct 21, 2024
Page history

ModelHasDriver

Description

Checks if the target modeled entity has a driver

Attributes

This condition has no attributes

Examples

The following setup will allow you to execute skills both when an entity mounts a modeled entity as a driver and when it dismounts.
Essentially, this doubles as a makeshift "onMount" and "onDismount" triggers. It being a simple skill, it has, of course, its limitations (if the action occurs multiple times in the time span between activations, it will not fire correctly), but even considering that, this should be of great use

# MOB CONFIG
ExampleMob:
  Type: DROWNED
  Skills:
  - model{mid=your_model} @self ~onSpawn
  - skill:MountEventManager @self ~onTimer:5
# SKILL CONFIG
MountEventManager:
  Conditions:
  - modelhasdriver true
  Skills:
  - aura{
    auraName=MountEventManager;
    d=6;
    onStart=MountEventManager_MountEvent;
    onEnd=MountEventManager_DismountEvent
    } @self

MountEventManager_MountEvent:
  Skills:
  - message{m="you mounted the entity"}

MountEventManager_DismountEvent:
  Skills:
  - message{m="you dismounted the entity"}

Aliases

  • modeldriver
Clone repository
Home
FAQ / Common Issues
Commands & Permissions
Configuration

Modeling
  • Creating a Model
    • Hitbox & Eye Height
    • Shadow
  • Bone Behaviors
    • Player Limbs
  • 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