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
Changed Grammar authored Aug 31, 2023 by Dante's avatar Dante
Hide whitespace changes
Inline Side-by-side
Showing with 1 addition and 1 deletion
+1 -1
  • Placeholders.md Placeholders.md +1 -1
  • No files found.
Placeholders.md
View page @ 89ccd03b
...@@ -13,7 +13,7 @@ Skills: ...@@ -13,7 +13,7 @@ Skills:
- message{m="<caster.item.nbt.TestKey|Unknown>"} @self ~onSwing - message{m="<caster.item.nbt.TestKey|Unknown>"} @self ~onSwing
- message{m="<caster.item.hand.nbt.Some.Other_Key|5>"} @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. Put a value to use after "|" inside the placeholder to provide a default when the value is undefined.
| Caster Placeholder | Function | | Caster Placeholder | Function |
|:----------------------------------:|-------------------------------------------------------------------| |:----------------------------------:|-------------------------------------------------------------------|
......
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
New Placeholders
  • Placeholders