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=valuearguments can be placed anywhere on the line.- Wrap values containing spaces in double quotes.
- Ids without a namespace use your pack’s namespace.
Resources
Section titled “Resources”resource.create
Section titled “resource.create”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
Section titled “resource.delete”resource.delete <type> <id> [pack=]Deletes an existing resource without asking for confirmation. pack is data or resource.
resource.move
Section titled “resource.move”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.
Advancements
Section titled “Advancements”content is blank (default) or duplicate, which copies the referenced advancement.
advancement.createChild
Section titled “advancement.createChild”advancement.createChild <parent> <id> [content=]Creates a new advancement under parent. The parent can also be a vanilla advancement.
advancement.createParent
Section titled “advancement.createParent”advancement.createParent <child> <id> [content=]Creates a new advancement between child and its current parent.
advancement.insert
Section titled “advancement.insert”advancement.insert <parent> <id> [content=]Creates a new advancement under parent and moves all of the parent’s children under it.
Scoreboards
Section titled “Scoreboards”objective.create
Section titled “objective.create”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
Section titled “objective.delete”objective.delete <name>Removes every scoreboard objectives add line for the objective from your functions. Commands that still use the objective are left alone.
Models
Section titled “Models”model.createGeneric
Section titled “model.createGeneric”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
Section titled “model.createChild”model.createChild <parent> [id] [pack=]Creates a model that inherits from another model, copying its textures under the new name.
model.createOverride
Section titled “model.createOverride”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.