Skip to content

Commands

Open the command palette with Ctrl+Shift+P and type a command followed by its arguments.

resource.create function "foo:my func"
model.createGeneric item/ruby parent=item/handheld
  • <arg> is required, [arg] is optional.
  • name=value arguments can be placed anywhere on the line.
  • Wrap values containing spaces in double quotes.
  • Ids without a namespace use your pack’s namespace.
resource.create <type> <id> [content...] [pack=]

Creates a new resource, filled with default content when none is given. pack is data or resource.

resource.delete <type> <id> [pack=]

Deletes an existing resource without asking for confirmation. pack is data or resource.

resource.move <type> <from> <to> [pack=]

Renames a resource and updates every reference to it in your packs’ JSON and mcfunction files. For example, renaming a texture also renames it in the layers of models that use it.

content is blank (default) or duplicate, which copies the referenced advancement.

advancement.createChild <parent> <id> [content=]

Creates a new advancement under parent. The parent can also be a vanilla advancement.

advancement.createParent <child> <id> [content=]

Creates a new advancement between child and its current parent.

advancement.insert <parent> <id> [content=]

Creates a new advancement under parent and moves all of the parent’s children under it.

objective.create <name> [criteria]

Adds scoreboard objectives add for the objective to the top of your first #minecraft:load function. criteria defaults to dummy.

objective.delete <name>

Removes every scoreboard objectives add line for the objective from your functions. Commands that still use the objective are left alone.

model.createGeneric <texture> [id] [parent=] [pack=]

Creates a model that shows a texture. parent defaults to item/generated; other options are block/block, item/handheld and item/handheld_rod.

model.createChild <parent> [id] [pack=]

Creates a model that inherits from another model, copying its textures under the new name.

model.createOverride <model> <target> [customModelData] [pack=]

Adds a custom model data override to target that switches it to model. Picks the next free number when customModelData is taken or left out.