Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 562 Bytes

scoreboard_operation.rst

File metadata and controls

24 lines (17 loc) · 562 Bytes

Scoreboard Operations

Example

Define two variables and use a scoreboard operation to multiply the first.

var variable1 := 5
var variable2 := 2
sbop gvar variable1 *= gvar variable2

Compiled

scoreboard objectives add variable1 dummy
scoreboard players set --databind variable1 5
scoreboard objectives add variable2 dummy
scoreboard players set --databind variable2 2
scoreboard players operation --databind variable1 *= --databind variable2