Skip to content

Commit

Permalink
🚸 show feedback link to player after beat Flowey for the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom committed Oct 24, 2024
1 parent 3e96d2a commit eb81ba0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ execute if score #omegaflowey.bossfight.player_hit_count omegaflowey.global.flag
# Play custom item pickup sound
stopsound @s player minecraft:entity.item.pickup
playsound omega-flowey:player.get-item player @s ~ ~ ~ 10

# Show feedback link, but only the first time they beat it
execute unless entity @s[tag=omegaflowey.player.survived_flowey] run \
function omegaflowey.entity:directorial/boss_fight/shared/stop/as_active_player/won/log_thanks_for_playing

tag @s add omegaflowey.player.survived_flowey
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
function omegaflowey.utils:log/self { text_component: '[ \
"", \
{ "text": "Thanks for playing our ", "color": "aqua" }, \
{ "text": "demo", "color": "gold" }, \
{ "text": "! ", "color": "aqua" }, \
{ "translate": ":trophy:" } \
]'}

function omegaflowey.utils:log/self { text_component: '[ \
{ \
"text": "", "extra": [ \
{ "text": "We\'d love if you shared your ", "color": "aqua" }, \
{ "text": "feedback ", "color": "yellow" }, \
{ "translate": ":heart:" }, \
" ", \
{ "text": "[link]", "color": "light_purple", "underlined": true } \
], \
"clickEvent": { \
"action": "open_url", \
"value": "https://forms.gle/AkksowKZeQYoZ2z46" \
} \
} \
]'}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ execute on target run function omegaflowey.utils:log/self { text_component: ' \
{ \
"text": "", "extra": [ \
{ "text": "Click here to leave us ", "color": "aqua" }, \
{ "text": "feedback", "underlined": true, "color": "yellow" }, \
{ "text": "!", "color": "aqua" } \
{ "text": "feedback", "underlined": true, "color": "yellow" } \
], \
"clickEvent": { \
"action": "open_url", \
Expand Down

0 comments on commit eb81ba0

Please sign in to comment.