Skip to content

Commit

Permalink
DP | Add stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik0-0 committed Nov 28, 2024
1 parent c242817 commit 2997407
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,6 @@ tag @a[tag=trespasser_d] remove trespasser_d

tag @a[tag=anim8or_d] remove anim8or_d

tag @a[tag=pool_noodle_d] remove pool_noodle_d
tag @a[tag=pool_noodle_d] remove pool_noodle_d

tag @a[tag=accurex_d] remove accurex_d
2 changes: 2 additions & 0 deletions nnb_jumpscares/data/nnb_jumpscares/functions/root.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,6 @@ scoreboard players add @a[tag=anim8or_d] nn_jumpscare 1

scoreboard players add @a[tag=pool_noodle_d] nn_jumpscare 1

scoreboard players add @a[tag=accurex_d] nn_jumpscare 1

# Remember to add it to templates too!
10 changes: 9 additions & 1 deletion nnb_jumpscares/data/nnb_jumpscares/functions/titles.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -439,4 +439,12 @@ execute at @a[tag=pool_noodle_d] if score @p nn_jumpscare matches 1 run title @p
execute at @a[tag=pool_noodle_d] if score @p nn_jumpscare matches 2 run title @p title {"text":"    "}
execute at @a[tag=pool_noodle_d] if score @p nn_jumpscare matches 3 run title @p title {"text":"","color":"red"}
execute at @a[tag=pool_noodle_d] if score @p nn_jumpscare matches 3 run scoreboard players add @p nn_jumpscare_run 10
# execute at @a[tag=pool_noodle_d] if score @p nn_jumpscare matches 3 run title @p title {"text":"","color":"red"}
# execute at @a[tag=pool_noodle_d] if score @p nn_jumpscare matches 3 run title @p title {"text":"","color":"red"}

#> accurex
title @a[tag=accurex_d] times 0 5 20
execute at @a[tag=accurex_d] if score @p nn_jumpscare matches 1 run title @p title {"text":" ","color":"red"}
execute at @a[tag=accurex_d] if score @p nn_jumpscare matches 2 run title @p title {"text":"    "}
execute at @a[tag=accurex_d] if score @p nn_jumpscare matches 3 run title @p title {"text":"","color":"red"}
execute at @a[tag=accurex_d] if score @p nn_jumpscare matches 3 run scoreboard players add @p nn_jumpscare_run 10
# execute at @a[tag=accurex_d] if score @p nn_jumpscare matches 3 run title @p title {"text":"","color":"red"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kill @e[tag=accurex]
stopsound @a[tag=nextbot_timeout] * vibecraft:possession
tag @a[scores={nn_possesion=58},tag=nextbot_timeout] remove nextbot
tag @a[scores={nn_possesion=58},tag=nextbot_timeout] remove accurex_z
scoreboard players set @a[tag=nextbot_timeout] nn_possesion 0
tag @a[tag=nextbot_timeout] remove n_nextbot
tag @a[tag=nextbot_timeout] remove nextbot_timeout
23 changes: 22 additions & 1 deletion nnb_possessions/data/nnb_possessions/functions/assign.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -1195,4 +1195,25 @@ execute if entity @a[scores={nn_possesion=58},tag=!nextbot_timeout] run tag @a[s
execute at @a[tag=pool_noodle_z] run tp @e[tag=pool_noodle] ~ ~2 ~

#> Screen effects tag
tag @a[tag=pool_noodle_z] add n_nextbot
tag @a[tag=pool_noodle_z] add n_nextbot




#> ------------------ accurex | id 59

#> Detect and assign possession
execute at @e[type=minecraft:zombie,tag=accurex_z] if entity @e[type=minecraft:snowball,distance=..2.2] run execute at @a[distance=..5.5,sort=nearest,tag=!nextbot,limit=1] run scoreboard players set @p nn_possesion 58
execute at @e[type=minecraft:zombie,tag=accurex_z] if entity @e[type=minecraft:snowball,distance=..2.2] run tag @e[type=zombie,limit=1,distance=..1.1] add controled
execute at @e[type=minecraft:zombie,tag=accurex_z] if entity @e[type=minecraft:snowball,distance=..2.2] run kill @e[tag=controled,distance=..1.1,limit=1]
execute at @a[scores={nn_possesion=59}] run tag @p add nextbot

#> Reset on timeout
execute if entity @a[scores={nn_possesion=59},tag=nextbot_timeout] run function nnb_possessions:59/accurex_end

#> Teleport sprite and assign tags
execute if entity @a[scores={nn_possesion=59},tag=!nextbot_timeout] run tag @a[scores={nn_possesion=59},tag=!nextbot_timeout] add accurex_z
execute at @a[tag=accurex_z] run tp @e[tag=accurex] ~ ~2 ~

#> Screen effects tag
tag @a[tag=accurex_z] add n_nextbot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data modify storage nnb_spawnsystem:temp bot_name set value "accurex"
2 changes: 2 additions & 0 deletions nnb_spawnsystem/main.jmc
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ function call_bots() {
data modify storage nnb_spawnsystem:temp bot_name set value "anim8or";
case 58:
data modify storage nnb_spawnsystem:temp bot_name set value "pool_noodle";
case 59:
data modify storage nnb_spawnsystem:temp bot_name set value "accurex";
}
// Call the universal spawn bot function
scoreboard players remove ticks nn_spawn 1;
Expand Down

0 comments on commit 2997407

Please sign in to comment.