Minecraft:Commands/compute
From SAS Gaming Wiki
More actions
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.
- Template:Cd
- 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
- Specifies a block that will be available to the number provider.
- Template:Arg desc
- Specifies an entity that will be available to the number provider.
- Template:Arg desc
- Specifies the Minecraft:number provider to evaluate.
- Template:Arg desc
- The result of the provider will be scaled by this value and rounded towards negative infinity for command output.
- Template:Arg desc
Result
Output
History
Template:Navbox new content Template:Navbox commands
Minecraft:de:Befehl/compute Minecraft:ja:コマンド/compute Minecraft:zh:命令/compute