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 53
    • Issues 53
    • 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

Last edited by Lxlp 1 month ago
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Placeholders

These are all of the placeholders MythicCrucible provides.

  • Placeholders
    • Caster Placeholders
    • Variable Placeholders
    • Trigger Placeholders
    • Item Placeholders
    • Font Placeholders
  • PlaceholderAPI Integration

Placeholders

Caster Placeholders

These placeholders will return whatever attribute of the caster that is called.

Skills:
  - message{m="<caster.item.nbt.TestKey|Unknown>"} @self ~onSwing
  - message{m="<caster.item.hand.nbt.Some.Other_Key|5>"} @self ~onSwing

Put a value to use after "|" inside the placeholder to provide a default 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.

Variable Placeholders

Variable Placeholder Generated by Function
<skill.var.crafts> CraftSkills Returns the amount of items crafted
<skill.var.equip-item> Returns the Itemstack of the item being used
<skill.var.equip-slot> Returns the slot of the item being used

Trigger Placeholders

These placeholders will return whatever attribute of the item that caused the skill to happen.

Trigger Placeholder Function
<trigger.item.hand.nbt.KEY> Returns the specified NBT key of the trigger's hand item.

Item Placeholders

These placeholders will return information related to the item. If an item has multiple modifiers of the same stat, .display.STAT will return the value of a pseudo-random modifier.

Item Placeholder Function
<item.color.hex> Returns the hex color of the item that called the skill
<item.stat.display.STAT_NAME> Returns the value of the specified stat.
<item.stat.display.STAT_NAME.MODIFIER> Returns the value of the specified modifier of that stat.

Font Placeholders

Placeholders that can interact with Custom Fonts

Fonf Placeholder Function
<font.[fontname]> Returns the character associated with the custom font named fontname

PlaceholderAPI Integration

Other than being able to use PlaceholderAPI placeholders anywhere placeholder support is in place, MythicCrucible introduces some new PAPI placeholders that can be used by third parties to fetch MythicCrucible-related values.

PAPI Placeholder Function
%mythic_emoji_fontname% Returns the font named "fontname"
Clone repository
Home
Changelogs
Commands / Permissions
API
FAQ / Common Issues
Guides

Usage
  • Installation
  • Items
    • Item Options
    • Item Skills
    • Item Durability
  • Augments
  • Item Sets
  • Crafting Recipes
    • Workbenches
  • Item Updater
  • Ammo System / Guns
  • Dynamic Lore Generation
  • World Generation
  • Loot Generation

ResourcePack Generator

Item Types
  • Blocks
  • Furniture
    • Paint Brush
  • Bags
  • Hats
  • Augments

Mechanics
  • Mechanics
  • Targeters
  • Triggers
  • Conditions

Placeholders
  • Placeholders