diff --git a/nnb_spawnsystem/data/nnb_spawnsystem/functions/setup_bots.mcfunction b/nnb_spawnsystem/data/nnb_spawnsystem/functions/setup_bots.mcfunction index bc09d94..ea90951 100644 --- a/nnb_spawnsystem/data/nnb_spawnsystem/functions/setup_bots.mcfunction +++ b/nnb_spawnsystem/data/nnb_spawnsystem/functions/setup_bots.mcfunction @@ -1,5 +1,5 @@ scoreboard players remove 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 <= 0 nn_spawn run tp @e[tag=$(bot_name)_z] @e[tag=$(map),limit=1,sort=random] -$execute if score ticks nn_spawn <= 0 nn_spawn run scoreboard players set ticks nn_spawn 20 +execute if score ticks nn_spawn <= 0 nn_spawn run scoreboard players set ticks nn_spawn 20 $say $(bot_name) $(id) $(map) \ No newline at end of file diff --git a/nnb_spawnsystem/main.jmc b/nnb_spawnsystem/main.jmc index 245481f..853c095 100644 --- a/nnb_spawnsystem/main.jmc +++ b/nnb_spawnsystem/main.jmc @@ -165,7 +165,7 @@ function setup_bots() { $execute unless entity @e[tag=$(bot_name)] run scoreboard players set spawn nn_nextbot_spawn $(id); $execute if score ticks nn_spawn <= 0 nn_spawn run tp @e[tag=$(bot_name)_z] @e[tag=$(map),limit=1,sort=random]; - $execute if score ticks nn_spawn <= 0 nn_spawn run scoreboard players set ticks nn_spawn 20; + execute if score ticks nn_spawn <= 0 nn_spawn run scoreboard players set ticks nn_spawn 20; $say "$(bot_name) $(id) $(map)";