-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
10 additions
and
36 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/if_else/2.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
scoreboard players set ticks nn_spawn 20 | ||
$tp @e[tag=$(bot_name)_z] @e[tag=$(map),limit=1,sort=random] |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/1.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_mall"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/10.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_hauntedmansion"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/11.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_habitablezone"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/12.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_doomspire"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/13.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_crossroads_c"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/14.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_topmodernhouse"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/2.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_poolrooms"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/3.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_port"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/4.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_camberturn"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/5.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_crossroads"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/6.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_russia"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/7.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_trainstation"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/8.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_fungle"} |
1 change: 0 additions & 1 deletion
1
nnb_spawnsystem/data/nnb_spawnsystem/functions/__private__/switch_case/0/9.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
execute store result score spawn nn_spawn run random value 1..60 | ||
function nnb_spawnsystem:call_bots {"sel_map":"nn_hotel"} |
3 changes: 2 additions & 1 deletion
3
nnb_spawnsystem/data/nnb_spawnsystem/functions/map_detect.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
execute store result storage nnb_spawnsystem:__storage__ switch_key int 1 run scoreboard players get map nn_map | ||
function nnb_spawnsystem:__private__/switch_case/0/select with storage nnb_spawnsystem:__storage__ | ||
function nnb_spawnsystem:__private__/switch_case/0/select with storage nnb_spawnsystem:__storage__ | ||
schedule function nnb_spawnsystem:map_detect 1t |
5 changes: 2 additions & 3 deletions
5
nnb_spawnsystem/data/nnb_spawnsystem/functions/setup_bots.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
scoreboard players set ticks nn_spawn 20 | ||
scoreboard players remove ticks nn_spawn 1 | ||
$say $(bot_name) $(id) $(map) | ||
$execute unless entity @e[tag=$(bot_name)] run scoreboard players set spawn nn_nextbot_spawn $(id) | ||
$tp @e[tag=$(bot_name)_z] @e[tag=$(map),limit=1,sort=random] | ||
execute if score ticks nn_spawn <= 0 nn_lobby run function nnb_spawnsystem:map_detect | ||
execute if score ticks nn_spawn <= 0 nn_lobby run function nnb_spawnsystem:__private__/if_else/2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters