Skip to content

Instantly share code, notes, and snippets.

@intsuc
Last active October 7, 2019 05:23
Show Gist options
  • Save intsuc/084379af83dab55f431a4267a3675c1b to your computer and use it in GitHub Desktop.
Save intsuc/084379af83dab55f431a4267a3675c1b to your computer and use it in GitHub Desktop.
data modify storage 0 0[].1 set value 0b
scoreboard players operation index 0 *= 65536 0
execute if score index 0 matches 0.. run data modify storage 0 0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[].1 set value 0b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[0].1 set value 1b
execute if score index 0 matches ..-1 run data modify storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[1].1 set value 1b
scoreboard players operation index 0 += index 0
execute if score index 0 matches 0.. run data modify storage 0 result set from storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0
execute if score index 0 matches ..-1 run data modify storage 0 result set from storage 0 0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].0[{1: 1b}].2
scoreboard objectives add 0 dummy
scoreboard players set 65536 0 65536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment