GUI Templates
EmakiStation has four window templates under plugins/EmakiStation/gui/.
| Template | Window | Station configuration key |
|---|---|---|
station_catalog.yml | Recipe catalog (page 1) | layout |
station_preview.yml | Material preview (page 2) | preview_layout |
station_queue.yml | Craft queue (page 3) | queue_layout |
station_dismantle.yml | Dismantle window | layout of a dismantle station |
The first three form the three-page crafting flow: the catalog submits on left click and opens the material preview on right click; the preview confirms the submission; the queue page views, cancels, claims and buys queue slots. The dismantle window is separate and entered through /emakistation dismantle <station>.
Slots Must Declare type Explicitly
EmakiStation slots must declare type explicitly. The CoreLib template parser only infers types for a few Forge-specific key names; a custom key name without type is nothing but decoration.
slots:
recipe_list:
slots: [10, 11, 12]
type: "recipe_list"Recipe Catalog Types
type | Purpose |
|---|---|
recipe_list | List recipes. Required, or layout validation fails. |
queue_open | Open the craft queue page. |
batch_multiplier | Cycle the multiplier; left click increases, right click decreases. |
output_toggle | Switch output routing. |
prev_page / next_page / page_info | Pagination. |
close | Close the window. |
This page has no input slot. Players do not place materials into the window; materials are deducted from the merged inventory-plus-warehouse pool at submission time.
Material Preview Types
type | Purpose |
|---|---|
material_list | List the selected recipe's material requirements. Required. |
recipe_display | Show the recipe being previewed. |
cost_display | Show the currency cost and the player's balance. |
max_craftable | Show how many crafts the materials and balance allow, and jump straight to the maximum on click. |
batch_multiplier | Cycle the multiplier. |
confirm | Submit. |
back | Return to the catalog, landing on the original page. |
prev_page / next_page / page_info | Material list pagination. |
close | Close the window. |
This page is read-only and does not accept inserted items.
Material Amount Display Rules
| Requirement | Display |
|---|---|
| ≤ 99 | The icon carries the real number, drawn directly by the client. |
| ≥ 100 | The icon amount is fixed at 1 with no number drawn; the real amount appears only in the lore's %required_exact%. |
Always keep %required_exact% in the lore, or players will have no way to learn large requirements.
Amounts of 65–99 exceed the natural stack size of most items, so the plugin temporarily raises the max_stack_size component of the rendered icon. That change applies only to the display icon inside the window and is never handed to the player.
Craft Queue Types
type | Purpose |
|---|---|
queue_view | List queue entries. Required. |
capacity_display | Show used / ceiling along with where the ceiling comes from. |
queue_purchase | Buy extra queue slots; left click buys one, Shift buys a whole batch. |
claim_all | Claim every pending output. |
back | Return to the catalog, landing on the original page. |
prev_page / next_page / page_info | Queue pagination. |
close | Close the window. |
This page is read-only and does not accept inserted items.
Dismantle Window Types
type | Purpose |
|---|---|
dismantle_input | Show the item the recipe needs, i.e. the input icon of the selected recipe. |
dismantle_item_display | Alias of dismantle_input. |
dismantle_rolls_display | Show the roll count range (%rolls_min% / %rolls_max%). |
dismantle_output_list | Output list across several paginated cells, using the pool_entry / rolled_output virtual items. |
dismantle_confirm | Confirm the dismantle, or claim already-rolled outputs. |
prev_page / next_page / page_info | Output list pagination. |
back | Return to the catalog. |
close | Close the window. |
Title Placeholders
| Placeholder | Available on |
|---|---|
%station_name% | Recipe catalog, craft queue, dismantle window. |
%recipe_name% | Material preview. |
%used% / %max% | Craft queue. |
These are internal template placeholders rendered by EmakiStation itself and unrelated to PlaceholderAPI.
virtual_items and texts
All four templates have a virtual_items section defining the icon forms of list entries, for example recipe_entry / recipe_locked on the catalog, material_satisfied / material_missing / confirm_blocked on the preview, queue_entry / queue_pending / purchase_unavailable on the queue page, and no_recipe / pool_entry / rolled_output on the dismantle window.
The three crafting templates also have a texts section for configurable line fragments. The dismantle window has no texts section.