Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/compute: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
Line 55: Line 55:
{{Navbox commands}}
{{Navbox commands}}


[[Minecraft:de:Befehl/compute]]
[[Minecraft:ja:コマンド/compute]]
[[Minecraft:ja:コマンド/compute]]
[[Minecraft:zh:命令/compute]]
[[Minecraft:zh:命令/compute]]

Revision as of 11:07, 29 August 2026

Template:Wip Template:In development Template:Infobox command

Evaluates Minecraft:number providers in various contexts.

Syntax

Template:Cmd
Where Template:Cd is one of:
Template:Cd
Run provider with the [[Minecraft:Loot context#minecraft:command_compute_default|Template:Cd]] context, only providing common parameters (execution position and Template:Cd entity).
Template:Cd
Run provider with the [[Minecraft:Loot context#minecraft:command_compute_position|Template:Cd]] context, providing block state and block entity based on the block at Template:Cd.
Template:Cd
Run provider with the [[Minecraft:Loot context#minecraft:command_compute_entity|Template:Cd]] context, providing Template:Cd based on the selector result.
If Template:Cd is set to a number or omitted, the number provider is evaluated in float mode.
If it is set to Template:Cd, the number provider is evaluated in integer mode, truncating after every step.

Arguments

Template:Expand section

Template:Argument

Specifies a block that will be available to the number provider.
Template:Arg desc

Template:Argument

Specifies an entity that will be available to the number provider.
Template:Arg desc

Template:Argument

Specifies the Minecraft:number provider to evaluate.
Template:Arg desc

Template:Argument

The result of the provider will be scaled by this value and rounded towards negative infinity for command output.
Template:Arg desc

Result

Template:Empty section

Output

Template:Empty section

History

Template:HistoryTable

Navigation

Template:Navbox new content Template:Navbox commands

Minecraft:de:Befehl/compute Minecraft:ja:コマンド/compute Minecraft:zh:命令/compute