Block reference

Crafting I/O

Crafting I/O is the planning and recipe-frontend block. It stores the visible recipe grid, links to a Crafting CPU, binds named Material I/O routes, and can execute either a simple linked craft or a queued multi-step plan.

Craft planning endpoint Queued plan capable Partially implemented
Back to block overview
In game

Grid-size and state controls.

  • Right click prints the full Crafting I/O state summary.
  • Shift-right-click cycles the grid size. The current implementation supports 3x3, 5x5, and 7x7.
  • Name tags rename the endpoint for route and CPU linking.
Grid and route commands

Configure the recipe frontend.

  • grid_width(), grid_height(), set_grid_size(size), grid_slot_count().
  • grid_slot(slot), grid(), set_grid_slot(slot, item_id, count), and clear_grid().
  • route_count(), route(index), routes(), set_route(route_name, endpoint_api, side), clear_route(route_name), and clear_routes().
  • window_origin() and set_window_origin(x, y) control the active 3x3 recipe window inside a larger grid.
  • linked_cpu(), set_linked_cpu(api_name), material_input_device(), set_material_input_device(api_name), material_input_side(), set_material_input_side(side), material_output_device(), set_material_output_device(api_name), material_output_side(), and set_material_output_side(side).
  • apply_recipe_window() pushes the active recipe window into the linked Crafting CPU.
Preview and plan commands

Inspect and edit craft plans.

  • linked_preview(): preview of the linked CPU result for the current window.
  • craft_linked(crafts): execute the linked recipe directly through the linked CPU and material endpoints.
  • plan_step_count(), plan_step(index), and plan() inspect the current plan.
  • append_plan_step(x, y, crafts[, input_route, output_route]), set_plan_step(index, x, y, crafts[, input_route, output_route]), remove_plan_step(index), clear_plan(), and rebuild_plan().
  • craft_plan(cycles): execute the current plan directly.
Queued plan commands

Queue, resume, abort, and inspect long jobs.

  • queued_plan_cycles(), set_queued_plan_cycles(cycles), and queue_plan(cycles).
  • can_resume_queued_plan(), resume_queued_plan(), can_abort_queued_plan(), abort_queued_plan(), and clear_queued_plan().
  • queued_plan_reservation_mode() and set_queued_plan_reservation_mode("full_queue" | "active_cycle").
  • craft_queued_plan(): continue executing the queued plan until blocked, failed, or completed.
  • queued_plan(): structured job snapshot including queue state, reservation mode, action hints, blocker metadata, resume/abort flags, and tracked intermediate details.