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 137
    • Issues 137
    • 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
  • setmaxhealth

setmaxhealth · Changes

Page history
Reformatted, removed double title, added header for description. Added colons... authored Oct 20, 2023 by Dante's avatar Dante
Reformatted, removed double title, added header for description. Added colons to headers, colorized examples.
Show whitespace changes
Inline Side-by-side
Showing with 14 additions and 15 deletions
+14 -15
  • skills/mechanics/setmaxhealth.md skills/mechanics/setmaxhealth.md +14 -15
  • No files found.
skills/mechanics/setmaxhealth.md
View page @ 5c9dcf81
Mechanic: Set Max Health
========================
## Description:
Sets the max health of the target entity.
Attributes
----------
## Attributes:
| Attribute | Aliases | Description | Default Value |
|-----------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| amount | a | The amount to set max health by. | 1.0 |
| mode | m | The method of setting max health. STATIC will set the max health directly to amount value. SCALE will set the new max health but also scale the current health of the entity accordingly. | STATIC |
Examples
--------
## Examples:
This example would simply set the new max health of the entity to 5. If
the new max health is lower than the entity's current health, the
current health will be set to the new max health.
Skills:
```yaml
Skills:
- setmaxhealth{amount=5;mode=STATIC} @self ~onInteract
- ...
```
This example would increase the new max health of the mob to 5 and scale
it's remaining HP up as well. If the entity has 15/20 health and is then
interacted with, instead of the new health being 5/5 it would become
3/5.
Skills:
```yaml
Skills:
- setmaxhealth{amount=5;mode=SCALE} @self ~onInteract
- ...
```
\ 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
    • 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
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Examples
Useful Tips