-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prophunt: Title at start + WIP ping refactor
- Loading branch information
Showing
5 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Executed as and at the pinging player | ||
# tellraw @a {"text":"prophunt:ping/run"} | ||
|
||
|
||
effect give @s glowing 1 1 true | ||
summon block_display ~ ~ ~ {Glowing:1b,block_state:{Name:"minecraft:air"},Tags:["prophunt.ping","prophunt.ping.new"]} | ||
team join prophunt @e[type=block_display,tag=prophunt.ping.new] | ||
scoreboard players set @ | ||
playsound minecraft:block.note_block.bell master @a[tag=prophunt.is_hunter] ~ ~ ~ 2 1 1 | ||
scoreboard players set @s prophunt.use_item_trigger 0 |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Executed as and at the pinging player | ||
# tellraw @a {"text":"prophunt:ping/raycast"} | ||
|
||
scoreboard players remove #prophunt.ping.raycast ctx 1 | ||
execute if score #prophunt.ping.raycast ctx matches 1.. if block ~ ~ ~ air positioned ^ ^ ^0.5 run function prophunt:ping/raycast | ||
execute unless block ~ ~ ~ air align xyz positioned ~ ~0.5 ~ run function prophunt:ping/effect | ||
execute if score #prophunt.ping.raycast ctx matches ..0 align xyz positioned ~ ~0.5 ~ run function prophunt:ping/effect |
This file was deleted.
Oops, something went wrong.
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,4 +1,5 @@ | ||
# Executed globally | ||
# tellraw @a {"text":"prophunt:ping/trigger"} | ||
|
||
execute as @a[tag=prophunt.is_hunter,scores={prophunt.use_item_trigger=1..}] at @s run function prophunt:ping/run | ||
execute as @a[tag=prophunt.is_hunter,scores={prophunt.use_item_trigger=1..}] at @s run scoreboard players set #prophunt.ping.raycast ctx 50 | ||
execute as @a[tag=prophunt.is_hunter,scores={prophunt.use_item_trigger=1..}] at @s run function prophunt:ping/raycast |
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