... | ... | @@ -38,4 +38,29 @@ Like `flying`, but the mounted player is not able to dismount on its own |
|
|
|
|
|
##
|
|
|
|
|
|
## Meta Controllers |
|
|
\ No newline at end of file |
|
|
## Meta Controllers
|
|
|
|
|
|
Named after [Metaskills](https://git.lumine.io/mythiccraft/MythicMobs/-/wikis/Skills/Metaskills), meta controller is a
|
|
|
special type mount controllers unique to MythicMobs. It allows users to create custom mount controller with the use of
|
|
|
skill configs.
|
|
|
|
|
|
Meta controllers are called each tick, and every call has special
|
|
|
skill-scoped [variables](https://git.lumine.io/mythiccraft/MythicMobs/-/wikis/Skills/Variables) that contains
|
|
|
entity-specific data such as WASD inputs, speed, velocity etc. To obtain these values, use `skill.meg:[variable_name]`.
|
|
|
To use them as placeholders, use `<skill.var.meg:[variable_name]>`. Here is a list of variables:
|
|
|
|
|
|
| Variable | Description | Type |
|
|
|
|-----------|--------------------------------------------------------------------------------------------------------------------------|---------|
|
|
|
| rider | Is the controller running is `driver` or `passenger` | String |
|
|
|
| front | Front and back input.<br>Positive number = front (W), negative number = back (S)<br>These values are not exactly 1 or -1 | Float |
|
|
|
| side | Left and right input.<br>Positive number = left (A), negative number = right (D)<br>These values are not exactly 1 or -1 | Float |
|
|
|
| jump | Is the rider jumping (space bar). 1 = true, 0 = false | Integer |
|
|
|
| sneak | Is the rider sneaking (shift). 1 = true, 0 = false | Integer |
|
|
|
| on_ground | Is the entity on ground. 1 = true, 0 = false | Integer |
|
|
|
| speed | Value of the movement speed attribute of the entity | Float |
|
|
|
| vx | X component of the entity's velocity | Float |
|
|
|
| vy | Y component of the entity's velocity | Float |
|
|
|
| vz | Z component of the entity's velocity | Float |
|
|
|
|
|
|
Model Engine also provides a few accessor mechanics that allows users to interact with the movement controller of
|
|
|
entities directly. You can check out the [Controller](MythicMobs/Model-Mechanics#controller) section of our mechanics page. |
|
|
\ No newline at end of file |