Skip to content

Commit

Permalink
DP | Optimization & Rewrite Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik0-0 committed Feb 28, 2024
1 parent 5633b6e commit de0d3ef
Show file tree
Hide file tree
Showing 62 changed files with 217 additions and 126 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "metal_pipe"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "noob"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "observer"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "benny"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "racoon"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "fazmug"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "donot"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "bear5"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "blabber"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "chilly"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "smurf_cat"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "toob"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "intruder"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "jet"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "darkness"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "bear"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "litlle_gerry"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "winrar"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "fan"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "boykisser"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "subspace_tripmine"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "nothing"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "crying_sans"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "nuke"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "flash"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "osc"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "cb"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "dragon"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "carter"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "shroom"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "grumbo"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "giggle"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "rei"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "pbj"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "ico"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "leorio"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "mohu"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "jack"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "unfortunate"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "lolguy"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "smiler"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "boba"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "squewe"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "ccat"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "smile_ghost"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "andy"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "inhabitant"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "leoret"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "dread"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "catnap"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "mrl"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "trespasser"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "anim8or"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "idiot"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "ohl"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "meem"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "nope"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$function nnb_spawnsystem:__private__/switch_case/1/$(switch_key)
Original file line number Diff line number Diff line change
@@ -1,56 +1,6 @@
$execute if score spawn nn_spawn matches 1 run function nnb_spawnsystem:setup_bots {"bot_name":"metal_pipe","id":"1","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 2 run function nnb_spawnsystem:setup_bots {"bot_name":"toob","id":"2","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 3 run function nnb_spawnsystem:setup_bots {"bot_name":"crying_sans","id":"3","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 4 run function nnb_spawnsystem:setup_bots {"bot_name":"pbj","id":"4","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 5 run function nnb_spawnsystem:setup_bots {"bot_name":"smile_ghost","id":"5","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 6 run function nnb_spawnsystem:setup_bots {"bot_name":"idiot","id":"6","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 7 run function nnb_spawnsystem:setup_bots {"bot_name":"ohl","id":"7","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 8 run function nnb_spawnsystem:setup_bots {"bot_name":"meem","id":"8","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 9 run function nnb_spawnsystem:setup_bots {"bot_name":"nope","id":"9","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 10 run function nnb_spawnsystem:setup_bots {"bot_name":"noob","id":"10","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 11 run function nnb_spawnsystem:setup_bots {"bot_name":"observer","id":"11","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 12 run function nnb_spawnsystem:setup_bots {"bot_name":"benny","id":"12","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 13 run function nnb_spawnsystem:setup_bots {"bot_name":"racoon","id":"13","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 14 run function nnb_spawnsystem:setup_bots {"bot_name":"fazmug","id":"14","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 15 run function nnb_spawnsystem:setup_bots {"bot_name":"donot","id":"15","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 16 run function nnb_spawnsystem:setup_bots {"bot_name":"bear5","id":"16","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 17 run function nnb_spawnsystem:setup_bots {"bot_name":"blabber","id":"17","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 18 run function nnb_spawnsystem:setup_bots {"bot_name":"chilly","id":"18","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 19 run function nnb_spawnsystem:setup_bots {"bot_name":"smurf_cat","id":"19","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 20 run function nnb_spawnsystem:setup_bots {"bot_name":"intruder","id":"20","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 21 run function nnb_spawnsystem:setup_bots {"bot_name":"jet","id":"21","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 22 run function nnb_spawnsystem:setup_bots {"bot_name":"darkness","id":"22","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 23 run function nnb_spawnsystem:setup_bots {"bot_name":"bear","id":"23","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 24 run function nnb_spawnsystem:setup_bots {"bot_name":"litlle_gerry","id":"24","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 26 run function nnb_spawnsystem:setup_bots {"bot_name":"fan","id":"26","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 27 run function nnb_spawnsystem:setup_bots {"bot_name":"boykisser","id":"27","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 28 run function nnb_spawnsystem:setup_bots {"bot_name":"subspace_tripmine","id":"28","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 29 run function nnb_spawnsystem:setup_bots {"bot_name":"nothing","id":"0","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 30 run function nnb_spawnsystem:setup_bots {"bot_name":"nuke","id":"30","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 31 run function nnb_spawnsystem:setup_bots {"bot_name":"flash","id":"31","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 32 run function nnb_spawnsystem:setup_bots {"bot_name":"osc","id":"32","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 33 run function nnb_spawnsystem:setup_bots {"bot_name":"cb","id":"33","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 34 run function nnb_spawnsystem:setup_bots {"bot_name":"dragon","id":"34","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 35 run function nnb_spawnsystem:setup_bots {"bot_name":"carter","id":"35","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 36 run function nnb_spawnsystem:setup_bots {"bot_name":"shroom","id":"36","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 37 run function nnb_spawnsystem:setup_bots {"bot_name":"grumbo","id":"37","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 38 run function nnb_spawnsystem:setup_bots {"bot_name":"giggle","id":"38","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 39 run function nnb_spawnsystem:setup_bots {"bot_name":"rei","id":"39","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 40 run function nnb_spawnsystem:setup_bots {"bot_name":"ico","id":"40","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 41 run function nnb_spawnsystem:setup_bots {"bot_name":"leorio","id":"41","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 42 run function nnb_spawnsystem:setup_bots {"bot_name":"mohu","id":"42","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 43 run function nnb_spawnsystem:setup_bots {"bot_name":"jack","id":"43","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 44 run function nnb_spawnsystem:setup_bots {"bot_name":"unfortunate","id":"44","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 45 run function nnb_spawnsystem:setup_bots {"bot_name":"lolguy","id":"45","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 46 run function nnb_spawnsystem:setup_bots {"bot_name":"smiler","id":"46","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 47 run function nnb_spawnsystem:setup_bots {"bot_name":"boba","id":"47","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 48 run function nnb_spawnsystem:setup_bots {"bot_name":"squewe","id":"48","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 49 run function nnb_spawnsystem:setup_bots {"bot_name":"ccat","id":"49","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 50 run function nnb_spawnsystem:setup_bots {"bot_name":"andy","id":"50","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 51 run function nnb_spawnsystem:setup_bots {"bot_name":"inhabitant","id":"51","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 52 run function nnb_spawnsystem:setup_bots {"bot_name":"leoret","id":"52","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 53 run function nnb_spawnsystem:setup_bots {"bot_name":"dread","id":"53","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 54 run function nnb_spawnsystem:setup_bots {"bot_name":"catnap","id":"54","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 55 run function nnb_spawnsystem:setup_bots {"bot_name":"mrl","id":"55","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 56 run function nnb_spawnsystem:setup_bots {"bot_name":"trespasser","id":"56","map":"$(sel_map)"}
$execute if score spawn nn_spawn matches 57 run function nnb_spawnsystem:setup_bots {"bot_name":"anim8or","id":"57","map":"$(sel_map)"}
$data modify storage nnb_spawnsystem:temp map set value $(sel_map)
execute store result storage nnb_spawnsystem:temp id int 1 run scoreboard players get spawn nn_spawn
execute store result storage nnb_spawnsystem:temp limit int 1 run scoreboard players get random_r nn_spawn
execute store result storage nnb_spawnsystem:__storage__ switch_key int 1 run scoreboard players get spawn nn_spawn
function nnb_spawnsystem:__private__/switch_case/1/select with storage nnb_spawnsystem:__storage__
function nnb_spawnsystem:setup_bots with storage nnb_spawnsystem:temp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
scoreboard players remove ticks nn_spawn 1
execute if score spawn nn_spawn matches 29 run scoreboard players set spawn nn_spawn 0
scoreboard players add ticks nn_spawn 1
$execute unless entity @e[tag=$(bot_name)] run scoreboard players set spawn nn_nextbot_spawn $(id)
$execute if score ticks nn_spawn <= 1 nn_spawn run tp @e[tag=$(bot_name)_z,tag=!done] @e[tag=$(map),limit=1,sort=random]
$execute if score ticks nn_spawn <= 0 nn_spawn at @e[tag=$(bot_name)_z,tag=!done] run summon minecraft:lightning_bolt ~ ~ ~
$execute if score ticks nn_spawn <= 1 nn_spawn run tag @e[tag=$(bot_name)_z,tag=!done] add done
$execute if score ticks nn_spawn <= 1 nn_spawn run tellraw @a[tag=debug] "$(bot_name) $(id) $(map)"
execute if score ticks nn_spawn <= 1 nn_spawn run scoreboard players set ticks nn_spawn 20
execute if score ticks nn_spawn matches 10 run function nnb_spawnsystem:tp_bots with storage nnb_spawnsystem:temp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$tp @e[tag=$(bot_name)_z,tag=!done] @e[tag=$(map),limit=1,sort=random]
$execute at @e[tag=$(bot_name)_z,tag=!done] run summon minecraft:lightning_bolt ~ ~ ~
$tag @e[tag=$(bot_name)_z,tag=!done] add done
$tellraw @a[tag=debug] "$(bot_name) $(id) $(map)"
$scoreboard players set ticks nn_spawn $(limit)
Loading

0 comments on commit de0d3ef

Please sign in to comment.