/compute

Cheats / op 2Java 26.3

Evaluates a number provider (a random range or formula) and prints the result. Its basic form is /compute block <computePos> float <provider>; it has 9 syntax forms and 4 arguments. Permission: Cheats / op 2.

Who can use it
Cheats / op 2
Syntax forms
9
Arguments
4

/compute syntax

Game data

Every form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.

/compute block <computePos> float <provider>
/compute block <computePos> float <provider> <scale>
/compute block <computePos> integer <provider>
/compute default float <provider>
/compute default float <provider> <scale>
/compute default integer <provider>
/compute entity <computeTarget> float <provider>
/compute entity <computeTarget> float <provider> <scale>
/compute entity <computeTarget> integer <provider>

/compute arguments

What each argument expects, with the limits the game enforces.

/compute arguments
ArgumentExpectsLimits
<computePos>Block coordinates (x y z, ~ relative, ^ local)—
<provider>Number provider ID—
<scale>Number—
<computeTarget>Target selector or player name (@s, @p, @a, @e, @r)one target

Other commands

Data: Minecraft Java Edition 26.3 game files. How we source this

Evaluates a number provider (a random range or formula) and prints the result. It has 9 syntax forms and can be run by: Cheats / op 2.

See Also

🔍

Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.

Report an Issue

/compute FAQ (Java 26.3)

What does /compute do in Minecraft?

Evaluates a number provider (a random range or formula) and prints the result.

What is the syntax of /compute?

The basic form is /compute block <computePos> float <provider>. All forms are listed above.

Do you need cheats for /compute?

Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).