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
  • setlevel

Last edited by Lxlp Dec 27, 2024
Page history
This is an old version of this page. You can view the most recent version or browse the history.

setlevel

Mechanic: Set Level

Introduced in version 2.2.1

Causes the casting mob to change it's level.

Possible operations for the action value are SET, ADD, SUBTRACT, MULTIPLY, and DIVIDE.

Attributes

Attribute Aliases Description Default Value
action a Type of operation to perform SET
level l Amount of levels used in the operation 1

Examples

This will set the mob level to 3 when it spawns

    - setlevel{a=set;l=3} @self ~onSpawn

This will increase the mob level by 1 each time it kills a player

    - setlevel{a=add;l=1} ~onKillPlayer

This will set the level of the mob to a random value between 1 and 5 when it spawns, plus the score of the __GLOBAL__ fake player from the "testlevel" scoreboard. The usage of Placeholders and Math Operations inside of a mechanic is Premium Only

    - setlevel{a=set;l="<random.1to5> + <global.score.testlevel>"} @self ~onSpawn
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
  • 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