diff --git a/nnb_spawnsystem/data/nnb_spawnsystem/functions/call_bots.mcfunction b/nnb_spawnsystem/data/nnb_spawnsystem/functions/call_bots.mcfunction index 3baecc5..33537c4 100644 --- a/nnb_spawnsystem/data/nnb_spawnsystem/functions/call_bots.mcfunction +++ b/nnb_spawnsystem/data/nnb_spawnsystem/functions/call_bots.mcfunction @@ -4,4 +4,4 @@ execute store result storage nnb_spawnsystem:temp limit int 1 run scoreboard pla 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__ scoreboard players add ticks nn_spawn 1 -execute if score ticks nn_spawn matches 6.. run function nnb_spawnsystem:setup_bots with storage nnb_spawnsystem:temp \ No newline at end of file +execute if score ticks nn_spawn matches ..-1 run function nnb_spawnsystem:setup_bots with storage nnb_spawnsystem:temp \ No newline at end of file diff --git a/nnb_spawnsystem/data/nnb_spawnsystem/functions/setup_bots.mcfunction b/nnb_spawnsystem/data/nnb_spawnsystem/functions/setup_bots.mcfunction index 8d93505..4b1098b 100644 --- a/nnb_spawnsystem/data/nnb_spawnsystem/functions/setup_bots.mcfunction +++ b/nnb_spawnsystem/data/nnb_spawnsystem/functions/setup_bots.mcfunction @@ -1,3 +1,3 @@ execute if score spawn nn_spawn matches 29 run scoreboard players set spawn nn_spawn 0 $execute unless entity @e[tag=$(bot_name)] run scoreboard players set spawn nn_nextbot_spawn $(id) -execute if score ticks nn_spawn matches 11.. run function nnb_spawnsystem:tp_bots with storage nnb_spawnsystem:temp \ No newline at end of file +execute if score ticks nn_spawn matches ..-6 run function nnb_spawnsystem:tp_bots with storage nnb_spawnsystem:temp \ No newline at end of file diff --git a/nnb_spawnsystem/main.jmc b/nnb_spawnsystem/main.jmc index 9f37f1e..e244be8 100644 --- a/nnb_spawnsystem/main.jmc +++ b/nnb_spawnsystem/main.jmc @@ -225,7 +225,7 @@ function call_bots() { } // Call the universal spawn bot function scoreboard players add ticks nn_spawn 1; -if (nn_spawn:ticks > 5) { +if (nn_spawn:ticks < 0) { setup_bots() with storage nnb_spawnsystem:temp; }} @@ -241,7 +241,7 @@ function setup_bots() { $execute unless entity @e[tag=$(bot_name)] run scoreboard players set spawn nn_nextbot_spawn $(id); // Delay the teleportation stuff - if (nn_spawn:ticks > 10) { + if (nn_spawn:ticks < -5) { tp_bots() with storage nnb_spawnsystem:temp; }}