Skip to content

Commit 15d3e04

Browse files
committedJun 25, 2021
Improve quality of hover-over event
1 parent 244d7e5 commit 15d3e04

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎data/stack_attack_lobby/functions/queue/join_queue.mcfunction

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ playsound minecraft:ui.button.click player @s ~ ~ ~ 0.2 0.4
1212
scoreboard players add players_in_queue sat_data 1
1313

1414
# announce not enough players yet
15-
execute if score players_in_queue sat_data < required_players sat_data run tellraw @a[tag=sat_waiting_for_game] ["",{"text":"["},{"text":"S","color":"yellow"},{"text":"tack ","color":"light_purple"},{"text":"A","color":"blue"},{"text":"ttack","color":"green"},{"text":"] ","color":"none"},{"selector":"@s","color":"none"},{"text":" queued up! (","color":"green"},{"score":{"name":"players_in_queue","objective":"sat_data"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Not enough players in queue","color":"white"}]}},"color":"red"},{"text":"/","color":"green"},{"score":{"name":"max_players","objective":"sat_data"},"color":"green","hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Max players","color":"white"}]}}},{"text":")","color":"green"}]
15+
execute if score players_in_queue sat_data < required_players sat_data run tellraw @a[tag=sat_waiting_for_game] ["",{"text":"["},{"text":"S","color":"yellow"},{"text":"tack ","color":"light_purple"},{"text":"A","color":"blue"},{"text":"ttack","color":"green"},{"text":"] ","color":"none"},{"selector":"@s","color":"none"},{"text":" queued up! (","color":"green"},{"score":{"name":"players_in_queue","objective":"sat_data"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Not enough players in queue","color":"white"}]}},"color":"red"},{"text":"/","color":"green"},{"score":{"name":"max_players","objective":"sat_data"},"color":"green","hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Max players per arena","color":"white"}]}}},{"text":")","color":"green"}]
1616

1717
# announce game start possible
18-
execute if score players_in_queue sat_data >= required_players sat_data run tellraw @a[tag=sat_waiting_for_game] ["",{"text":"["},{"text":"S","color":"yellow"},{"text":"tack ","color":"light_purple"},{"text":"A","color":"blue"},{"text":"ttack","color":"green"},{"text":"] ","color":"none"},{"selector":"@s","color":"none"},{"text":" queued up! (","color":"green"},{"score":{"name":"players_in_queue","objective":"sat_data"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Enough players in queue to start a game","color":"white"}]}},"color":"green"},{"text":"/","color":"green"},{"score":{"name":"max_players","objective":"sat_data"},"color":"green","hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Max players","color":"white"}]}}},{"text":")","color":"green"}]
18+
execute if score players_in_queue sat_data >= required_players sat_data run tellraw @a[tag=sat_waiting_for_game] ["",{"text":"["},{"text":"S","color":"yellow"},{"text":"tack ","color":"light_purple"},{"text":"A","color":"blue"},{"text":"ttack","color":"green"},{"text":"] ","color":"none"},{"selector":"@s","color":"none"},{"text":" queued up! (","color":"green"},{"score":{"name":"players_in_queue","objective":"sat_data"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Enough players in queue to start a game","color":"white"}]}},"color":"green"},{"text":"/","color":"green"},{"score":{"name":"max_players","objective":"sat_data"},"color":"green","hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Max players per arena","color":"white"}]}}},{"text":")","color":"green"}]

‎data/stack_attack_lobby/functions/queue/show_queue_info.mcfunction

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
playsound minecraft:ui.button.click player @s ~ ~ ~ 0.2 0.4
77

88
# announce not enough players yet
9-
execute if score players_in_queue sat_data < required_players sat_data run tellraw @s ["",{"text":"["},{"text":"S","color":"yellow"},{"text":"tack ","color":"light_purple"},{"text":"A","color":"blue"},{"text":"ttack","color":"green"},{"text":"] ","color":"none"},{"text":"Currently queued up: ","color":"green"},{"score":{"name":"players_in_queue","objective":"sat_data"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Not enough players in queue","color":"white"}]}},"color":"red"},{"text":"/","color":"green"},{"score":{"name":"max_players","objective":"sat_data"},"color":"green","hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Max players","color":"white"}]}}}]
9+
execute if score players_in_queue sat_data < required_players sat_data run tellraw @s ["",{"text":"["},{"text":"S","color":"yellow"},{"text":"tack ","color":"light_purple"},{"text":"A","color":"blue"},{"text":"ttack","color":"green"},{"text":"] ","color":"none"},{"text":"Currently queued up: ","color":"green"},{"score":{"name":"players_in_queue","objective":"sat_data"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Not enough players in queue","color":"white"}]}},"color":"red"},{"text":"/","color":"green"},{"score":{"name":"max_players","objective":"sat_data"},"color":"green","hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Max players per arena","color":"white"}]}}}]
1010

1111
# announce game start possible
12-
execute if score players_in_queue sat_data >= required_players sat_data run tellraw @s ["",{"text":"["},{"text":"S","color":"yellow"},{"text":"tack ","color":"light_purple"},{"text":"A","color":"blue"},{"text":"ttack","color":"green"},{"text":"] ","color":"none"},{"text":"Currently queued up: ","color":"green"},{"score":{"name":"players_in_queue","objective":"sat_data"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Enough players in queue to start a game","color":"white"}]}},"color":"green"},{"text":"/","color":"green"},{"score":{"name":"max_players","objective":"sat_data"},"color":"green","hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Max players","color":"white"}]}}}]
12+
execute if score players_in_queue sat_data >= required_players sat_data run tellraw @s ["",{"text":"["},{"text":"S","color":"yellow"},{"text":"tack ","color":"light_purple"},{"text":"A","color":"blue"},{"text":"ttack","color":"green"},{"text":"] ","color":"none"},{"text":"Currently queued up: ","color":"green"},{"score":{"name":"players_in_queue","objective":"sat_data"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Enough players in queue to start a game","color":"white"}]}},"color":"green"},{"text":"/","color":"green"},{"score":{"name":"max_players","objective":"sat_data"},"color":"green","hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Max players per arena","color":"white"}]}}}]

0 commit comments

Comments
 (0)
Please sign in to comment.