Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Model Engine Model Engine
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 35
    • Issues 35
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • Model EngineModel Engine
  • Wiki
  • Targeters

Last edited by Dant35tra5t Aug 04, 2023
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Targeters

ModelPart

Target the locations of parts.

Attribute Aliases Description Default
modelid m, mid, model The targeted model
partid p, pid, part The targeted part
offset o, off Offset mode used to calculate the offsets
LOCAL: Local axis of the targeted part
MODEL: Local axis of the target model
GLOBAL: World axis
LOCAL
x Offset on X axis 0
y Offset on Y axis 0
z Offset on Z axis 0
exactmatch em, exact, match Does the part need to match the partid completely
If set to false, this will get the location of all parts with IDs containing partid
Example: pid=arm;em=false
This will tint both leftarm and rightarm
true

Local vs Model vs Global

The usage of these 3 modes is a bit hazy, so we will explain them one by one.

Note: Depending on how you made your model, each axis might not represent the same direction as stated here.
In this scenario, Z-axis is forward/backward, X-axis is right/left, and Y-axis is up/down.

Local

This mode would get the offset based on the bone's rotation.
Let's say we have a humanoid model who holds a gun. To get where the barrel is pointing at, we can use this mode with a positive Z offset.

Model

This mode would get the offset based on the model's rotation.
Essentially, this is the Forward targeter from MythicMobs, with the added benefit of starting from the location of the selected bone.

Global

This mode just uses Minecraft's world axis to calculate the offset.
Same as Model mode, this just has the benefit of starting from the selected bone, instead of the base of the mob.


MountedModel

Get the model mounted by the caster.

Attribute Aliases Description Default

ModelDriver

Get the driver of this model.

Attribute Aliases Description Default

ModelPassengers

Tell the model to start or stop playing an animation.

Attribute Aliases Description Default
pbone p A list of seats to search.
Format: pbone=seat1,seat2,seat3
All passengers

Clone repository
  • Animating your model
  • Comparison: ItemsAdder
  • Conditions
  • Home
  • Importing and Exporting
  • Limitations
  • Making your first model
  • Mechanics: Model
  • Mechanics: VFX
  • MoLang support
  • R3 Changes and Features
  • Recommended Tool
  • Scriptable Keyframes
  • Targeters
  • The Survival Guide to Mojank's World of Madness
View All Pages