English
Placeholder Reference
PlaceholderAPI Placeholders
Expansion identifier: emakiforge
When PlaceholderAPI is installed, EmakiForge registers the following placeholders
| Placeholder | Description | Example |
|---|---|---|
%emakiforge_craft_count_<recipe_id>% | How many times the player crafted a specific recipe | 5 |
%emakiforge_has_crafted_<recipe_id>% | Whether the player has crafted a specific recipe | true |
%emakiforge_total_crafts% | Total craft count across all recipes | 42 |
%emakiforge_guarantee_<key>% | Current guarantee/pity counter for the given key (the key is the recipe id) | 3 |
%emakiforge_recipe_count% | Total number of currently loaded forge recipes | 28 |
%emakiforge_last_crafted% | Recipe id of the player's most recent craft; an empty string when there is no record | flame_sword |
Resolution rules:
- The parameter is case-insensitive and trimmed of surrounding whitespace
- A null player or an empty parameter returns an empty string
- An unknown parameter returns an empty string
- For
craft_count_/has_crafted_/guarantee_an empty recipe suffix returns0/false/0respectively
Usage Example
yaml
lore:
- '<gray>Crafts: <white>%emakiforge_craft_count_flame_sword%'
- '<gray>Total: <white>%emakiforge_total_crafts%'
- '<gray>Pity: <yellow>%emakiforge_guarantee_flame_sword%'Internal Template Variables
Forge injects the following %variable% format variables when applying result name and lore actions
| Variable | Description | Example |
|---|---|---|
%quality% | Quality tier name. Injected only when a quality tier resolved | Perfect |
%quality_name% | Quality display name, same value as %quality% | Perfect |
%quality_multiplier% | Quality multiplier, formatted as 0.## | 1.2 |
%multiplier% | Short alias of the quality multiplier | 1.2 |
%<stat_id>% | Any variable injected via material variables effects, already scaled by material amount and quality multiplier | 10 |
Available In
- Material effect
name_actionvaluefields - Material effect
lore_actioncontentfields - Recipe
result.success.name_actionsvaluefields - Recipe
result.success.lore_actionscontentfields - Global quality config
quality.item_meta.tiers.<tier>name_actionsandlore_actions
Template Example
yaml
name_actions:
- action: "append_suffix"
value: " <gray>[%quality_name%]</gray>"
lore_actions:
- action: "append"
content:
- ""
- "<gray>Quality: %quality_name%</gray>"
- "<gray>Multiplier: <white>%quality_multiplier%</white></gray>"
- "<gray>Fire Damage: <red>+%fire_damage%</red></gray>"Notes
- PlaceholderAPI placeholders work anywhere PAPI is supported (scoreboards, chat, menus, etc.)
- Internal template variables only work within Forge name/lore actions, not in external plugins
%<stat_id>%is dynamic and depends on keys injected by materialvariableseffects- Quality
item_metaactionlines run through the CoreLib action system, where general CoreLib placeholders such as%player_name%are available. That is a separate mechanism from the internal template variables above - Forged result items expose
forge_recipe_id,forge_quality_id,forge_quality_display, andforge_quality_multiplierto the CoreLib variable system; the source is documented in Audit and Signature - GUI copy variables (
%recipe%,%current%,%max%,%capacity_state%,%blueprint_requirements%,%page%, and so on) only work inside GUI templates; see GUI Configuration