English
Placeholder Reference
PlaceholderAPI Placeholders
Expansion identifier: emakistrengthen
Prerequisite: PlaceholderAPI is installed. Once installed, EmakiStrengthen registers the following placeholders, all reading strengthen data from the player's main-hand item
| Placeholder | Description | Example |
|---|---|---|
%emakistrengthen_mainhand_star% | Current star level (0 if not eligible) | 7 |
%emakistrengthen_mainhand_temper% | Temper level | 3 |
%emakistrengthen_mainhand_recipe% | Associated recipe ID (empty if none) | weapon_basic |
%emakistrengthen_mainhand_eligible% | Whether the item is eligible for strengthening | true |
%emakistrengthen_mainhand_success_count% | Cumulative success count | 5 |
%emakistrengthen_mainhand_failure_count% | Cumulative failure count | 2 |
%emakistrengthen_mainhand_max_star% | The recipe's maximum star (0 when not eligible) | 12 |
%emakistrengthen_mainhand_success_rate% | Success rate for the current star | 65.5 |
%emakistrengthen_mainhand_crack_level% | Crack level (temper value) | 3 |
Usage Example
yaml
lore:
- '<gray>Star: <white>%emakistrengthen_mainhand_star%'
- '<gray>Temper: <white>%emakistrengthen_mainhand_temper%'
- '<gray>Recipe: <white>%emakistrengthen_mainhand_recipe%'
- '<gray>Eligible: <white>%emakistrengthen_mainhand_eligible%'Internal Template Variables
The following variables are injected while the strengthen layer presentation is built and can be used in recipe name_actions, lore_actions, and stat line templates
General Variables
| Variable | Description | Example |
|---|---|---|
%star% | Current star level | 7 |
%temper% | Temper level | 3 |
%max_temper% | Recipe max temper limit | 4 |
%temper_color% | Color tag (<red> if temper > 0, else <green>) | <red> |
Stat Line Variables
Available in stat line templates:
| Variable | Description | Example |
|---|---|---|
%id% | Stat ID | physical_attack |
%sign% | Sign character | + |
%value% | Formatted absolute stat value | 15.5 |
%<stat_id>% | Any cumulative stat value. The actual key comes from accumulated recipe stats or variables | 120 |
NOTE
stat_lines is parsed and stored on the recipe model; the strengthen layer output in the current version comes from each star's name_actions / lore_actions, and the stat line template rendering path is not wired in yet. The stat line variables %id% / %sign% / %value% are only available while rendering a stat line template
Template Example
Recipe-level lore_actions (general variables available):
yaml
lore_actions:
- action: "prepend"
content:
- "<yellow>★ Strengthen Level: +%star%"
- "%temper_color%Temper: %temper%/%max_temper%"stat_lines stat line templates (stat line variables available):
yaml
stat_lines:
physical_attack:
template: "<gray>Attack: <white>%sign%%value%"
section_id: "strengthen.stats.primary"
section_order: 210Action Context Variables
When the success/failure actions (StrengthenActionCoordinator) run, these variables are injected into the Action context:
| Variable | Description | Example |
|---|---|---|
%strengthen_recipe_id% | Strengthen recipe ID | weapon_basic |
%strengthen_recipe% | Strengthen recipe display name | Basic Weapon Strengthen |
%strengthen_star% | Resulting star | 8 |
%strengthen_temper% | Temper level | 3 |
%strengthen_max_star% | Recipe maximum star | 12 |
%strengthen_success_rate% | Success rate of this attempt | 65.5 |
%strengthen_show_item% | Hover text of the result item | [Shadow Blade +8] |
%strengthen_result_slot% | Result slot ID | main_hand |
%strengthen_operation_id% | Operation ID of this attempt | 3f1c… |
%operation_id% | Same as %strengthen_operation_id% | 3f1c… |
%star% | Resulting star (same as %strengthen_star%) | 8 |
%temper% | Temper level (same as %strengthen_temper%) | 3 |
%was_star% | Star before the attempt (failure actions only) | 8 |
%dropped% | Whether the item dropped (failure actions only) | false |
%protected% | Whether protection triggered (failure actions only) | true |
Notes
- All PlaceholderAPI keys prefixed with
mainhand_read main-hand item data - When the main-hand item has no strengthen data,
starandtemperreturn0andrecipereturns empty - Internal template variables only work within Strengthen's
name_actions/lore_actionsand stat line templates %<stat_id>%is dynamic and depends on stat keys configured in the recipe