command /function

Datapacks and command blocks

Runs a function from a datapack - a .mcfunction file with a list of commands.

  • rights - game master
  • Minecraft 26.3
My game select version

We'll remember in this browser and set up where your version is available. Open link settings are more important than this choice; the Vicki versions do not change.

On page 6 sections

Briefly

Examples are verified by the game - copy

  • Run function
    /function mypack:start

Rights - game master.

Syntax

This is how the game itself shows it /help function: in angle brackets - what to substitute, in square brackets - optional, through a line - one of.

  • /function <name> [<arguments>|with]

Rights

We need a game master level: Level 2 for the command unit, for the data pack functions and for the guests of the world open to the network with authorized commands. It's written in server consoles without a cross-section.

Numbers

WhatMeaning
command/function
RightsPlaymaster (2)
Where ison the server and in single player with cheats

Frequently asked questions

How to use command / function?

Syntax: /function <name> For example, /function mypack:start is to start a function.

What rights are needed for /function?

We need a game master level: Level 2 for the command unit, for the data pack functions and for the guests of the world open to the network with authorized commands.

Does the command block work?

Yeah, the command unit's doing right-level 2 commands, and this one doesn't need any more. You don't have to write a line in the block.

Also, date packs and command blocks.

According to Minecraft 26.3, the syntax is a clue to /help from the game itself, right from her command report, each example is checked by a review of the game's commands.