Skip to content

Commit

Permalink
πŸ’„ add third-person mode tip to cave (#243)
Browse files Browse the repository at this point in the history
* πŸ’„ add third-person mode tip to cave

* πŸ’„ fix sound categories z fighting at far distances

* 🚸 show feedback link to player after beat Flowey for the first time
  • Loading branch information
TheAfroOfDoom authored Oct 24, 2024
1 parent 1b1a25e commit 12decdb
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ summon minecraft:text_display -137.75 44.0 26.001 { \
} \
}

summon minecraft:text_display -137.75 42.0 26.0015 { \
summon minecraft:text_display -137.75 42.0 26.005 { \
Tags: [ \
"omega-flowey-remastered", \
"decorative", \
Expand Down Expand Up @@ -728,3 +728,60 @@ summon minecraft:block_display -139.13 41.9375 26.001 { \
translation: [0.0f, 0.0f, 0.0f], \
} \
}

summon minecraft:text_display -127.99 39.25 50.5 { \
Tags: [ \
"omega-flowey-remastered", \
"decorative", \
"decorative-cave", \
"tip-third-person-mode-title", \
], \
alignment: "center", \
background: 0, \
brightness: { block: 12, sky: 0 }, \
default_background: 0b, \
line_width: 200, \
see_through: 0b, \
shadow: 0b, \
text: '[ \
{ "text": "TIP", "color": "green", "bold": true, "underlined": true } \
]', \
text_opacity: 255, \
transformation: { \
left_rotation: [0.0f, 0.7071068f, 0.0f, 0.7071068f], \
right_rotation: [0.0f, 0.0f, 0.0f, 1.0f], \
scale: [1.25f, 1.25f, 1.25f], \
translation: [0.0f, 0.0f, 0.0f] \
} \
}

summon minecraft:text_display -127.99 38.5 50.5 { \
Tags: [ \
"omega-flowey-remastered", \
"decorative", \
"decorative-cave", \
"tip-third-person-mode-content", \
], \
alignment: "center", \
background: 0, \
brightness: { block: 12, sky: 0 }, \
default_background: 0b, \
line_width: 200, \
see_through: 0b, \
shadow: 0b, \
text: '[ \
{ "text": "We recommend being in\\n", "color": "yellow" }, \
{ "text": "F5 mode ", "color": "aqua", "bold": true }, \
{ "text": "(", "color": "gray" }, \
{ "text": "third-person", "color": "aqua" }, \
{ "text": ")\\n", "color": "gray" }, \
"for most of the bossfight" \
]', \
text_opacity: 255, \
transformation: { \
left_rotation: [0.0f, 0.7071068f, 0.0f, 0.7071068f], \
right_rotation: [0.0f, 0.0f, 0.0f, 1.0f], \
scale: [0.8125f, 0.8125f, 0.8125f], \
translation: [0.0f, 0.0f, 0.0f] \
} \
}

0 comments on commit 12decdb

Please sign in to comment.