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 145
    • Issues 145
    • 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
aaa authored Sep 17, 2022 by Phillip's avatar Phillip
Show whitespace changes
Inline Side-by-side
Showing with 28 additions and 1 deletion
+28 -1
  • Skills/Math.md Skills/Math.md +28 -1
  • No files found.
Skills/Math.md
View page @ 980227e5
......@@ -63,3 +63,30 @@ Most of these functions can be found here https://www.objecthunter.net/exp4j/#Bu
| random(min, max) | random with limits |
NOTE: You can request to add more operators and functions by making a suggestion ticket in our [issues page](https://git.mythiccraft.io/mythiccraft/MythicMobs/-/issues)
Example Usage
------------
```yml
MyCoolMob:
Type: HUSK
AIGoalSelectors:
- clear
AITargetSelectors:
- clear
Skills:
- skill{s=[
- setvar{var=skill.test;type=FLOAT;val="<caster.hp> <= <caster.mhp>"} #returns 1 or 0 if the mob's health is less than or equal to its max health
- message{m=<skill.var.test>} #sends the player a message to see the value
]} @trigger ~onInteract
```
```yml
MyCoolItem:
Id: STICK
Skills:
- skill{s=[
- setvar{var=skill.test;type=FLOAT;val="1>=0"} #returns 1 since the expression evaluates to true
- message{m=<skill.var.test>} #sends the player a message to see the value
]} @Self ~onUse
```
\ 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
  • 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