.. _appendix_commands: Command Reference ================= MSC commands are documented in the main chapters. This page provides a quick index to find the command you need. .. contents:: :local: :depth: 2 Commands by Category -------------------- Script Commands ^^^^^^^^^^^^^^^ Manage scripts bound to blocks, entities, and regions. **Parent command:** ``/script`` See :ref:`Scripts - Command Reference ` for full documentation. .. list-table:: :widths: 40 60 :header-rows: 1 * - Command - Purpose * - ``/script create ...`` - Add lines to a script * - ``/script view `` - Display script contents * - ``/script remove [line]`` - Delete script or line * - ``/script import/export `` - Sync with paste.minr.org * - ``/script copy/paste/wipe`` - Bulk operations in WorldEdit selection Namespace Commands ^^^^^^^^^^^^^^^^^^ Manage namespaces that contain variables and functions. **Parent command:** ``/namespace`` See :ref:`Namespaces - Command Reference ` for full documentation. .. list-table:: :widths: 40 60 :header-rows: 1 * - Command - Purpose * - ``/namespace define `` - Create a new namespace * - ``/namespace remove `` - Delete a namespace and its contents * - ``/namespace info `` - View namespace metadata * - ``/namespace variables `` - List variables in namespace * - ``/namespace functions `` - List functions in namespace * - ``/namespace types `` - List custom types in namespace Variable Commands ^^^^^^^^^^^^^^^^^ Manage persistent variables within namespaces. **Parent command:** ``/variable`` (alias: ``/var``) See :ref:`Variables - Command Reference ` for full documentation. .. list-table:: :widths: 40 60 :header-rows: 1 * - Command - Purpose * - ``/variable define [= expr]`` - Create a persistent variable * - ``/variable remove `` - Delete a variable * - ``/variable set = `` - Set a variable's value * - ``/variable info `` - View variable metadata Function Commands ^^^^^^^^^^^^^^^^^ Manage custom functions within namespaces. **Parent command:** ``/function`` (alias: ``/func``) See :ref:`Functions - Command Reference ` for full documentation. .. list-table:: :widths: 40 60 :header-rows: 1 * - Command - Purpose * - ``/function define [ReturnType] `` - Create a function definition * - ``/function remove `` - Delete a function * - ``/function redefine ...`` - Change function signature (keep script) * - ``/function info `` - View function metadata Type Commands ^^^^^^^^^^^^^ Manage custom types with fields, methods, and constructors. **Parent command:** ``/type`` See :ref:`Types - Command Reference ` for full documentation. .. list-table:: :widths: 40 60 :header-rows: 1 * - Command - Purpose * - ``/type define `` - Create a custom type * - ``/type remove `` - Delete a type * - ``/type info `` - View type metadata * - ``/type fields/methods/constructors `` - List type members **Field subcommands:** ``/type field define/remove/info`` **Method subcommands:** ``/type method define/remove/redefine/info`` **Constructor subcommands:** ``/type constructor define/remove/info`` All Commands at a Glance ------------------------ .. list-table:: :widths: 25 75 :header-rows: 1 * - Parent - Subcommands * - ``/script`` - create, view, remove, info, export, import, copy, paste, wipe, count, undo * - ``/namespace`` - define, remove, info, variables, functions, types * - ``/variable`` - define, remove, set, info * - ``/function`` - define, remove, redefine, info * - ``/type`` - define, remove, info, fields, methods, constructors * - ``/type field`` - define, remove, info * - ``/type method`` - define, remove, redefine, info * - ``/type constructor`` - define, remove, info