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

Last edited by Lxlp Mar 02, 2025
Page history

polygon

Description

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
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 32
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 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 true
FromOrigin If the polygon should start in the origin of the metaskill false
HitConditions conditions, cond, c, oC, hC List of Inline Conditions that an entity must met to be hit by the polygon mechanic

Examples

ExampleSkill:
  Skills:
  - polygon{db=0.25;y=0.1;mpd=false;scale=6;
    oE=[ - effect:particles{p=FLAME} ];
    oP=[ - effect:particles{p=CRIT;a=1;repeat=20;repeati=1} ];
    oS=[ - effect:particles{p=SOUL_FIRE_FLAME} ]
    ;p=10;skip=6;duration=20} @Origin
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=[ - effect:particles{p=FLAME} ];
      oP=[ - effect:particles{p=CRIT;a=1} ];
      oS=[ - effect:particles{p=SOUL_FIRE_FLAME} ]
      ;p=10;skip=2} @Origin
    ];repeat=180;repeati=1}
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information
Config Files

Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs

MythicScribe MythicScribe - VSCode Extension

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
    • Mechanics by Tag
  • 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
  • Item Matcher
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Advanced User Guides and Techniques