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 143
    • Issues 143
    • 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
  • Placeholders

Placeholders · Changes

Page history
added Placeholder Attributes authored Mar 06, 2024 by Lxlp's avatar Lxlp
Show whitespace changes
Inline Side-by-side
Showing with 14 additions and 3 deletions
+14 -3
  • Skills/Placeholders.md Skills/Placeholders.md +14 -3
  • No files found.
Skills/Placeholders.md
View page @ 7cb58ac7
......@@ -188,7 +188,6 @@ The following are only some of the placeholders that can have a `trigger` scope,
| <trigger.item.model> | Returns the model of the item the trigger is holding |
## Misc Placeholders
| **Placeholder** | **Function** |
|-----------------------------|-------------------------------------------------------------------------|
| <drop.amount> | Returns the amount dropped while used in specific drop types |
......@@ -199,7 +198,6 @@ The following are only some of the placeholders that can have a `trigger` scope,
## Item Placeholders
| **Placeholder** | **Function** |
|-----------------------------|-------------------------------------------------------------------------|
| <item.amount> | Returns the amount of the item that triggered the skill |
......@@ -208,7 +206,6 @@ The following are only some of the placeholders that can have a `trigger` scope,
| <mythicitem.[item].display> | Returns the display name of the specified mythic item |
## Score Placeholders
| **Placeholder** | **Function** |
|-----------------------------|-------------------------------------------------------------------------|
| <caster.score.objective> | Returns the score of the caster from "objective" |
......@@ -219,6 +216,19 @@ The following are only some of the placeholders that can have a `trigger` scope,
| <score.objective.dummyname> | Returns the score of "dummyname" (fake player) from "objective" |
# Placeholder Attributes
Some placeholders can use a set of attributes to further define the output they will give
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| rounding | round, r | The rounding of the returned float value | 2 |
```yaml
Skills:
- message{m="<target.hp{round=2}>"} @self
```
# PlaceholderAPI Integration
Other than being able to use PlaceholderAPI placeholders anywhere placeholder support is in place, MythicMobs introduces some new PAPI placeholders that can be used by third parties to fetch MythicMobs-related values.
| **PAPI Placeholder** | **Function** |
......@@ -259,6 +269,7 @@ TestRandomPlaceholder:
- blue
```
# Examples
**This will make a mob send a teal message to all players in a radius of 20 blocks around in itself, stating what entity killed it in green.**
......
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
  • Pins
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
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
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • Particles Types
  • Audience
Examples
Useful Tips