Skip to content

Instantly share code, notes, and snippets.

@intsuc
Last active April 20, 2023 10:28
Show Gist options
  • Select an option

  • Save intsuc/0901df9d487f7829d97491613a12d351 to your computer and use it in GitHub Desktop.

Select an option

Save intsuc/0901df9d487f7829d97491613a12d351 to your computer and use it in GitHub Desktop.
List-Mapped Trie
scoreboard players operation #_index lmt = #index lmt
execute store result score #size lmt if data storage lmt: ""[]
execute if score #size lmt matches 0 run data modify storage lmt: "" append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: "" append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
scoreboard players operation #index lmt += #index lmt
execute store result score #size lmt if data storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][]
execute if score #size lmt matches 0 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append from storage lmt: branch[]
execute if score #size lmt matches 3 if score #index lmt matches 0.. run data remove storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][2]
execute if score #size lmt matches 2 if score #index lmt matches ..-1 run data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value []
function init
scoreboard players set #index lmt 0
function touch
data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value 0b
data get storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][0]
# Storage lmt: has the following contents: 0b
scoreboard players set #index lmt 1
function touch
data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value {data: 1s}
data get storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][0].data
# Storage lmt: has the following contents: 1s
scoreboard players set #index lmt -1
function touch
data modify storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2] append value 4294967295L
data get storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][0]
# Storage lmt: has the following contents: 4294967295L
scoreboard players set #index lmt 0
function touch
data get storage lmt: ""[-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][-2][0]
# Storage lmt: has the following contents: 0b
data modify storage lmt: branch set value [[], []]
scoreboard objectives add lmt dummy
execute unless score #_index lmt = #index lmt run function _touch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment