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 136
    • Issues 136
    • 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
    • Mechanics
  • modifyprojectile

modifyprojectile · Changes

Page history
updated layout and informations authored Oct 30, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 27 additions and 26 deletions
+27 -26
  • skills/mechanics/modifyprojectile.md skills/mechanics/modifyprojectile.md +27 -26
  • No files found.
skills/mechanics/modifyprojectile.md
View page @ 447d6b2f
Mechanic: ModifyProjectile ## Description
========================== Modifies the projectile, missile, or orbital that activated the mechanic.
Modifies a projectile, missile, or orbital as it is active.
Attributes ## Attributes
---------- | Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| trait | t | The trait to modify:<br>`INERTIA`, `GRAVITY`, `POWER`, `VELOCITY`, `RADIUS` and `YOFFSET` | `VELOCITY` |
| action | a | The action to perform for modifying the projectile trait:<br>`ADD`, `SET`, `MULTIPLY` | `MULTIPLY` |
| value |v | The value to use for the modification | 0 |
| Attribute | Aliases | Description | Default Value | ### Trait Attribute
|-----------|---------|-------------|---------------| The possible values are:
| trait | | the trait to modify. Can be inertia, gravity, velocity, power, and radius | | - `INERTIA` - The inertia of the [missile].
| action | | ADD, SET, MULTIPLY | | - `GRAVITY` - The gravity of the [projectile], [missile]
| value | | amount to modify the trait | | - `POWER` - The power of the [projectile], [missile], [orbital]
- `VELOCITY` - The power of the [projectile], [missile]
- `RADIUS` - The power of the [orbital]
- `YOFFSET` - The height of the [orbital]
--------
Notes: ## Examples
Inertia only makes sense to work with Missile In this example when you shoot the projectile you will watch it slow down gradually to a halt. To test this you can cast it using the in game command below after adding it to a skills.yml file.
Radius only works with orbitals (4.12 MM) `/mm test cast TestingModifyProjectile`
-------- ```yaml
Examples
--------
in this example when you shoot the projectile you will watch it slow down gradually to a halt. To test this you can cast it using the in game command below after adding it to a skills.yml file.
/mm test cast TestingModifyProjectile
```
TestingModifyProjectile: TestingModifyProjectile:
Skills: Skills:
- projectile{oT=TMP_oT;i=1;v=8;d=200;mr=100} @forward{f=100;y=0} - projectile{oT=TMP_oT;i=1;v=8;d=200;mr=100} @forward{f=100;y=0}
...@@ -38,4 +33,10 @@ TMP_oT: ...@@ -38,4 +33,10 @@ TMP_oT:
Skills: Skills:
- particles{particle=flame;a=2;hs=0;vs=0;s=0;y=0} @origin - particles{particle=flame;a=2;hs=0;vs=0;s=0;y=0} @origin
- modifyProjectile{trait=VELOCITY;action=MULTIPLY;value=0.95} - modifyProjectile{trait=VELOCITY;action=MULTIPLY;value=0.95}
``` ```
\ No newline at end of file
[missile]: skills/mechanics/missile
[projectile]: skills/mechanics/projectile
[orbital]: skills/mechanics/orbital
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
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
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Examples
Useful Tips