Skip to content

Commit

Permalink
DP | Fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik0-0 committed Feb 27, 2024
1 parent f8d3785 commit fc6718a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +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 function nnb_spawnsystem:__private__/if_else/2
$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
$say $(bot_name) $(id) $(map)
8 changes: 4 additions & 4 deletions nnb_spawnsystem/main.jmc
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ function setup_bots() {
scoreboard players remove ticks nn_spawn 1;
$execute unless entity @e[tag=$(bot_name)] run scoreboard players set spawn nn_nextbot_spawn $(id);

if (nn_spawn:ticks <= nn_spawn:0) {
$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;
$say "$(bot_name) $(id) $(map)";
scoreboard players set ticks nn_spawn 20;
$tp @e[tag=$(bot_name)_z] @e[tag=$(map),limit=1,sort=random];
}


}


Expand Down

0 comments on commit fc6718a

Please sign in to comment.