Skip to content

Command Reference

Main Command

/craftorithm <subcommand> [arguments]

Aliases: /cra, /craft, /crafto

Subcommand List

Recipe Management

CommandArgumentsDescription
create<type> [recipe_id] [filename]Open recipe creation GUI
edit<recipe_id>Open recipe editing GUI
remove<recipe_name>Delete recipe file and unregister
disable<recipe_id>Disable a recipe (including vanilla recipes)
display<recipe_id> [player]Display a recipe as a GUI
recipebook[--player <name>] [--type <type>]Open recipe book browser

Item Management

CommandArgumentsDescription
item saveSave held item as a custom item
item give<item> [player]Give a custom item
item fuel add<burn_time>Add held item as fuel
item fuel remove<fuel_id>Remove a custom fuel

System Commands

CommandArgumentsDescription
reloadReload plugin configuration
versionDisplay plugin version
openmenu<name> [player]Open a custom menu
script<expression>Execute a script expression

Recipe Type Parameters

The create command supports the following type values:

TypeDescription
vanilla_shapedShaped recipe
vanilla_shapelessShapeless recipe
vanilla_smelting_furnaceFurnace smelting
vanilla_smelting_blastBlast furnace smelting
vanilla_smelting_smokerSmoker smelting
vanilla_smelting_campfireCampfire cooking
vanilla_smithing_transformSmithing table transform
vanilla_stonecuttingStonecutting
vanilla_brewingBrewing (Paper only)
anvilAnvil

Usage Examples

bash
# Create a shaped recipe with ID my_sword, saved to weapons.yml
/cra create vanilla_shaped my_sword weapons.yml

# Edit a recipe
/cra edit craftorithm:my_sword

# Disable the vanilla diamond sword recipe
/cra disable minecraft:diamond_sword

# Display a recipe to another player
/cra display craftorithm:my_sword PlayerName

# Open the recipe book
/cra recipebook --player Steve --type vanilla_shaped

# Execute a script
/cra script perm("craftorithm.vip")

Tab Completion

All commands support tab completion:

  • Recipe type auto-completion
  • Registered recipe ID auto-completion
  • Online player name auto-completion
  • Custom menu name auto-completion

基于 GPL-3.0 许可证发布