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 144
    • Issues 144
    • 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
  • Math

Math · Changes

Page history
aaaaa authored Sep 17, 2022 by Phillip's avatar Phillip
Hide whitespace changes
Inline Side-by-side
Showing with 19 additions and 9 deletions
+19 -9
  • Skills/Math.md Skills/Math.md +19 -9
  • No files found.
Skills/Math.md
View page @ b12ac309
...@@ -4,16 +4,26 @@ You can use math in most places that supports placeholders. ...@@ -4,16 +4,26 @@ You can use math in most places that supports placeholders.
Operators Operators
----------- -----------
Most of these operators can be found here https://www.objecthunter.net/exp4j/#Built-in_operators Most of these operators can be found here https://www.objecthunter.net/exp4j/#Built-in_operators
#### Math Operators
| Operators | Example | | Operator | Description | Example |
|:-------------------------:|:---------:| |:--------:|:----------------:|:---------:|
| Addition (+) | 2 + 2 | | + | Unary plus | 2 + 2 |
| Subtraction (-) | 2 - 2 | | - | Unary minus | 2 - 2 |
| Multiplication (*) | 2 * 2 | | * | Multiplication | 2 * 2 |
| Division (/) | 2 / 2 | | / | Division | 2 / 2 |
| Exponential (^) | 2 ^ 2 | | ^ | Power | 2 ^ 2 |
| Signed Operators (+ or -) | +2 - (-2) | | % | Remainder | 2 % 2 |
| Modulo (%) | 2 % 2 |
#### Boolean Operators
| Operators | Description | Example |
|:---------:|:------------------------:|:-------:|
| \< | Less than | 2<5 |
| \<= | Less than or equal to | 2<=5 |
| \> | Greater than | 5>1 |
| \>= | Greater than or equal to | 5>=0 |
| \== | Equals | 0==0 |
*Boolean operators will return `1` if the expression is true and `0` if it's false.*
Functions Functions
......
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
  • Templating
Skills
  • Mechanics
    • In-line skill
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
  • Templating
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples