-
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
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
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,6 @@ | ||
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 tp @e[tag=$(bot_name)_z,tag=!done] @e[tag=$(map),limit=1,sort=random] | ||
$execute if score ticks nn_spawn <= 0 nn_spawn run tag @e[tag=$(bot_name)_z,tag=!done] add done | ||
$execute if score ticks nn_spawn <= 0 nn_spawn run tellraw @a[tag=debug] "$(bot_name) $(id) $(map)" | ||
execute if score ticks nn_spawn <= 0 nn_spawn run scoreboard players set ticks nn_spawn 20 |
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