Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicCrucible MythicCrucible
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 56
    • Issues 56
    • 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
  • MythicCrucibleMythicCrucible
  • Wiki
  • Placeholders

Placeholders · Changes

Page history
Created the Placeholders Page authored Aug 31, 2023 by Dante's avatar Dante
Hide whitespace changes
Inline Side-by-side
Showing with 35 additions and 0 deletions
+35 -0
  • Placeholders.md Placeholders.md +35 -0
  • No files found.
Placeholders.md 0 → 100644
View page @ 3710e151
# Placeholders
------------
These are all of the placeholders MythicCrucible provides.
Caster Placeholders
------------------
These placeholders will return whatever attribute of the caster that is called.
```yaml
Skills:
- message{m="<caster.item.nbt.TestKey|Unknown>"} @self ~onSwing
- message{m="<caster.item.hand.nbt.Some.Other_Key|5>"} @self ~onSwing
```
Put the default value after "|" inside the placeholder for when the value is undefined.
| Caster Placeholder | Function |
|:----------------------------------:|-------------------------------------------------------------------|
| <caster.item.nbt.KEY> | If no slot is specified, this checks the caster's item that called the skill. |
| <caster.item.hand.nbt.KEY> | Returns the specified NBT key of the caster's hand item. |
| <caster.item.offhand.nbt.KEY> | Returns the specified NBT key of the caster's offhand item. |
| <caster.item.head.nbt.KEY> | Returns the specified NBT key of the caster's head item. |
| <caster.item.chest.nbt.KEY> | Returns the specified NBT key of the caster's head item. |
| <caster.item.legs.nbt.KEY> | Returns the specified NBT key of the caster's head item. |
| <caster.item.feet.nbt.KEY> | Returns the specified NBT key of the caster's feet item. |
**Trigger Placeholders**
-----------------
These placeholders will return whatever attribute of the item that caused the skill to happen.
-----------------
| Trigger Placeholders | Function |
|:--------------------:|----------------------------------------------------------------------------------------|
| <trigger.item.hand.nbt.KEY> | Returns the specified NBT key of the trigger's hand item. |
\ No newline at end of file
Clone repository
  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Item Options
  • Item Skills
  • Item Durability
  • Custom Blocks
  • Furniture
  • Crafting Recipes
  • Custom Bags
  • Ammo System / Guns
New Mechanics
  • Item Mechanics
  • Item Targeters
  • Item Triggers
  • Item Conditions