Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 137
    • Issues 137
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Skills
    • Conditions
  • directionalvelocity

directionalvelocity · Changes

Page history
updated layout and information authored Oct 01, 2024 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 26 additions and 13 deletions
+26 -13
  • Skills/conditions/directionalvelocity.md Skills/conditions/directionalvelocity.md +26 -13
  • No files found.
Skills/conditions/directionalvelocity.md
View page @ 7db319ef
## Description ## Description
A condition that checks checks if the target has a velocity matching the given parameters. A condition that checks checks if the target has a velocity matching the given parameters.
If the X, Y, or Z velocity is not specified, that component of the velocity is not checked. The 'absx', 'absy', and 'absz' options determine whether the absolute value of the corresponding velocity is used in the check. If 'relative' is true, the velocities are considered relative to the entity's orientation.
## Attributes ## Attributes
| Attribute | Aliases | Description | Default | | Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------| |-----------|-----------|----------------------------------------------------------------------|---------|
| x | | The X velocity | NONE | | x | | The X velocity. Can be a range. Isn't checked by the condition if not set | |
| y | | The Y velocity | NONE | | absx | ax, abss, as | Whether to use only the absolute values for the X velocity | `relative`'s value|
| z | | The Z velocity | NONE | | y | up, down, vertical, v | The Y velocity. Can be a range. Isn't checked by the condition if not set | |
| absx | | Use the absolute value of the X velocity | false | | absy | ay | Whether to use only the absolute values for the Y velocity | false |
| absy | | Use the absolute value of the Y velocity | false | | z | | The Z velocity. Can be a range. Isn't checked by the condition if not set | |
| absz | | Use the absolute value of the Z velocity | false | | absz | az, absf, af | Whether to use only the absolute values for the Z velocity | false |
| relative | | If true, X is forward/backward and Z is side-to-side | false | | relative | rel | Whether the check should be relative to the entity's orientation and not to the world axis. If true, X is forward/backward and Z is side-to-side | false |
## Examples ### X, Y and Z Attributes
They check against the velocity of the entity along those axis. But this also means that the velocity itself can be either positive or negative depending on the direction itself.
> - If you are moving **towards `positive` X values**, you will have a **`positive` X velocity**.
> - If you are moving **towards `negative` X values**, you will have a **`negative` X velocity**
> - If you are **jumping `up`**, you will have **`positive` Y velocity**
> - If you are **falling `down`**, you will have **`negative` Y velocity**
### Absx, Absy and Absz Attributes
Despite the former, you may not want to check against the *direction* of the movement, but its *magnitude*. For that, you have to enable those attributes, and once you do their respective X, Y or Z attribute will only check against absolute values (will be positive regardless of the actual direction)
> - If you are **jumping `up`**, you will have **`positive` Y velocity**
> - If you are **falling `down`**, you will have **`positive` Y velocity**
In this example, we check if the players X velocity is under an absolute value of 5.
## Examples
In this example, we check if the players y velocity is under an absolute value of 5.
```yaml ```yaml
Conditions: Conditions:
- directionalVelocity{x=<5;absx=true} true - directionalVelocity{y=<0;absx=true} true
``` ```
## Aliases
- [x] dvelocity
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information
Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs
Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drops
  • DropTables
  • FancyDrops
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • Particles Types
  • Audience
  • Equipment Slots
  • SkillTree
  • Intratick Scheduling
  • Dynamic Metaskills
Other
  • Pins