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 150
    • Issues 150
    • 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
  • slash

slash · Changes

Page history
Update slash authored Nov 07, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 12 additions and 10 deletions
+12 -10
  • skills/mechanics/slash.md skills/mechanics/slash.md +12 -10
  • No files found.
skills/mechanics/slash.md
View page @ d84e2bc6
## Mechanic: Slash
## Description
The Slash meta-mechanic can execute other skills in a slash-shaped pattern. The exact shape, size, location, rotation and other such elements of the slash itself can be tweaked via the attributes below.
## Attributes
......@@ -7,9 +7,9 @@ The Slash meta-mechanic can execute other skills in a slash-shaped pattern. The
| onStartSkill | onStart, oS | Meta-Skill executed at the start of the slash | |
| onEndSkill | onEnd, oE | Meta-Skill executed at the end of the slash | |
| onPointSkill | onPoint, oP | Meta-Skill executed at every point of the slash | |
| onHitEntitySkill | onHitEntity, ohe, oh | Meta-Skill executed when a point of the slash hits an entity. only triggered once per entity for every execution of the slash mechanic | |
| onHitEntitySkill | onHitEntity, ohe, oh | Meta-Skill executed when a point of the slash hits an entity. Only triggered once per entity for every execution of the slash mechanic | |
| Points | p | The amount of points in the slash | 32 |
| Duration | d | The amount of ticks the slash should "travel" for. A value of 0 executes an instant slash | 0 |
| Duration | d | The amount of ticks the slash should "travel" for. A value of 0 executes an instantaneous slash | 0 |
| Width | w | The width of the slash. Increasing this value makes the slash's arc less arched | 1 |
| Height | h | The height of the slash. Increasing this value makes the slash's arc more arched | 1 |
| Angle | arc, a | The size of the arch in degrees | 180 |
......@@ -27,20 +27,22 @@ The Slash meta-mechanic can execute other skills in a slash-shaped pattern. The
| HitConditions | conditions, cond, c, oC, hC | List of [Inline Conditions](/Skills/conditions/in-linetargetconditions) that an entity must met to be hit by the slash mechanic | |
## Examples
This is a basic example of how a slash mechanic might look like once implemented
```yaml
ExampleSkill:
Skills:
- slash{y=1.8;w=4;h=2;mpd=true;a=180;oP=[ - effect:particles{p=CRIT} ];roll=<random.-45to45>}
- slash{y=1.8;w=4;h=2;mpd=true;a=180;oP=[ - effect:particles{p=CRIT} ];roll=-45to45}
```
##
If you have [Crucible] installed, then the following is an example on how you can put the slash mechanic into an item
```yaml
SlashSword:
Id: NETHERITE_SWORD
Skills:
- slash{y=1.8;w=4;h=40;mpd=true;a=45;radius=2;
- slash{y=1.8;w=4;h=40;mpd=true;a=45;radius=2;roll=-30to30;fo=5;duration=5;
oP=[ - effect:particles{p=SPARK} ];
oH=[ - damage{a=2} ];
roll=<random.-30to30>;
fo=5;duration=5} @self ~onUse
oH=[ - damage{a=2} ]
} @self ~onUse
```
Note: `<random.-30to30>` used in this SlashSword example is a [Premium Feature](Premium-Features) used here to apply random tilting to the slash effect.
Note: [Crucible](https://mythiccraft.io/index.php?resources/crucible-create-unbelievable-mythic-items.2/) is required to add Skills directly onto Mythic Items.
\ No newline at end of file
[Crucible]: https://mythiccraft.io/index.php?resources/crucible-create-unbelievable-mythic-items.2
\ 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
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Examples
Useful Tips