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 143
    • Issues 143
    • 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
  • polygon

polygon · Changes

Page history
Create skills/mechanics/polygon authored May 08, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 51 additions and 0 deletions
+51 -0
  • skills/mechanics/polygon.md skills/mechanics/polygon.md +51 -0
  • No files found.
skills/mechanics/polygon.md 0 → 100644
View page @ d1452242
## Mechanic: Polygon
The Polygon meta-mechanic can execute other skills in a polygon-shaped pattern. The exact number of vertices, the scale, the duration and other such elements of the polygon itself can be tweaked via the attributes below.
## Attributes
| Attribute | Aliases | Description | Default Value |
|----------------|-------------|---------------------------------------------------------|:-------------:|
| onPointSkill | onPoint, oP | Meta-Skill executed at every vertex | |
| onStarSkill | onStar, oS | Meta-Skill executed at the "start of the "star" of the polygon, aka the figure formed inside of the polygon by tweaking the "skip" parameter | |
| onEdgeSkill | onEdge, oE | Meta-Skill executed on the segments that connects the vertices| |
| onHitEntitySkill | onHitEntity, ohe, oh | Meta-Skill executed when the polygon hits an entity. Only triggered once per entity inside the polygon area for every execution of the polygon mechanic | |
| Points | p | The amount of vertices of the polygon | 10 |
| Duration | d | The amount of ticks the polygon should take to fully form. A value of 0 creates a polygon instantly | 0 |
| DistanceBetween| distance, density, db, d | The distance between points in the polygon | 0.1 |
| Scale | size, s | The scale of the polygon | 1 |
| Skip | star, sv | The number of points to skip for star-like shapes | 2 |
| xOffset | xo, x | The offset on the X axis | 0 |
| yOffset | yo, y | The offset on the Y axis | 0 |
| zOffset | zo, z | The offset on the Z axis | 0 |
| ForwardOffset | foffset, fo | The Forward offset | 0 |
| Pitch | | The pitch rotation | 0 |
| Yaw | | The yaw rotation | 0 |
| Roll | | The roll rotation | 0 |
| Radius | r | The hit radius | 1 |
| Rotation | rot | The rotation of the polygon, in the x,y,z format. Same as using pitch/yaw/roll | 0,0,0 |
| MatchCasterDirection | matchPlayerDirection, matchDirection, mcd, mpd, md, direction | Matches the direction of the polygon to the caster's facing direction | false |
| FromOrigin | | If the polygon should start in the origin of the metaskill | false |
| HitConditions | conditions, cond, c, oC, hC | List of [Inline Conditions](/Skills/conditions/in-linetargetconditions) that an entity must met to be hit by the polygon mechanic | |
## Examples
```yaml
ExampleSkill:
Skills:
- polygon{db=0.25;y=0.1;mpd=false;scale=6;
oE=[ - e:p{p=FLAME} ];
oP=[ - e:p{p=CRIT;a=1;repeat=20;repeati=1} ];
oS=[ - e:p{p=SOUL_FIRE_FLAME} ]
;p=10;skip=6;duration=20} @Origin
```
```yaml
ExampleSkill:
Skills:
- setVar{var=global.a;v=0}
- skill{s=[
- addVar{var=global.a;a=1}
- polygon{db=0.25;y=0.1;mpd=false;radius=1;scale=6;yaw=<global.var.a>;
oE=[ - e:p{p=FLAME} ];
oP=[ - e:p{p=CRIT;a=1} ];
oS=[ - e:p{p=SOUL_FIRE_FLAME} ]
;p=10;skip=2} @Origin
];repeat=180;repeati=1}
```
\ 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
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples