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 138
    • Issues 138
    • 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

Last edited by Lxlp 6 months ago
Page history

directionalvelocity

Description

A condition that checks checks if the target has a velocity matching the given parameters.

Attributes

Attribute Aliases Description Default
x s, side The X velocity. Can be a range. Isn't checked by the condition if not set
absx ax, abss, as Whether to use only the absolute values for the X velocity relative's value
y up, down, vertical, v The Y velocity. Can be a range. Isn't checked by the condition if not set
absy ay Whether to use only the absolute values for the Y velocity false
z f, forward The Z velocity. Can be a range. Isn't checked by the condition if not set
absz az, absf, af Whether to use only the absolute values for the Z velocity 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

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

Examples

In this example, we check if the players y velocity is under an absolute value of 5.

  Conditions:
  - directionalVelocity{y=<0;absx=true} true

Aliases

  • dvelocity
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
Other
  • Particles Types
  • Audience
  • Equipment Slots
  • Pins
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Intratick Scheduling
  • Dynamic Metaskills