Skip to content

Commit

Permalink
DP | Final fix: Try to add effects
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik0-0 committed Feb 27, 2024
1 parent a382e5d commit bddccf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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,tag=!done] @e[tag=$(map),limit=1,sort=random]
$execute if score ticks nn_spawn <= 0 nn_spawn at @e[tag=$(bot_name)_z,tag=!done] run summon minecraft:lightning_bolt ~ ~ ~
$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
1 change: 1 addition & 0 deletions nnb_spawnsystem/main.jmc
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,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,tag=!done] @e[tag=$(map),limit=1,sort=random];
$execute if score ticks nn_spawn <= 0 nn_spawn run execute at @e[tag=$(bot_name)_z,tag=!done] run summon minecraft:lightning_bolt ~ ~ ~;
$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;
Expand Down

0 comments on commit bddccf6

Please sign in to comment.