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

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

Target individual passengers of a model.

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

Clone repository
  • Before You Start
    • Home
    • Limitations
    • Comparison: ItemsAdder
    • Where is MoLang support?
    • Converting RP to 1.19.3
  • Modeling
    • Recommended tool
    • Making your first model
    • Importing and Exporting
    • Animating your model
    • Scriptable Keyframes
  • Mythic Mobs Integration
    • Mechanics: Model
    • Mechanics: VFX
    • Targeters
    • Conditions
  • API
    • Javadoc