Skip to content

Commit

Permalink
🚸 add feedback form link
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom committed Oct 16, 2024
1 parent 37096cd commit 1b69027
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"criteria": {
"requirement": {
"trigger": "minecraft:player_interacted_with_entity",
"conditions": {
"entity": {
"type": "minecraft:interaction",
"nbt": "{ Tags: [\"description-feedback-form-interaction\"] }"
}
}
}
},
"rewards": {
"function": "omegaflowey.entity:player/interacted/with_feedback_form_link"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
function omegaflowey.entity:player/interacted/with_feedback_form_link/macro with storage omegaflowey:decorative
advancement revoke @s only omegaflowey.entity:player_interacted_with_feedback_form_link
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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" } \
], \
"clickEvent": { \
"action": "open_url", \
"value": "https://forms.gle/AkksowKZeQYoZ2z46" \
} } \
]' \
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$execute as $(feedback_form_interaction_uuid) run function omegaflowey.entity:player/interacted/with_feedback_form_link/as_interaction
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
function omegaflowey.entity:player/interacted/with_animated_java_link/macro with storage omegaflowey:decorative
advancement revoke @s only omegaflowey.entity:player_interacted_with_animated_java_link
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ summon minecraft:text_display -127.0 43.0 43.99 { \
} \
}

summon minecraft:text_display -133.5 42.6875 24.01 {\
summon minecraft:text_display -133.5 43.125 24.01 {\
Tags: [ \
"omega-flowey-remastered", \
"decorative", \
Expand All @@ -202,7 +202,7 @@ summon minecraft:text_display -133.5 42.6875 24.01 {\
translation: [0.0f, 0.0f, 0.0f] \
} \
}
summon minecraft:interaction -132.875 42.625 23.75 { \
summon minecraft:interaction -132.875 43.0625 23.6 { \
Tags: [ \
"omega-flowey-remastered", \
"decorative", \
Expand Down Expand Up @@ -582,3 +582,50 @@ summon minecraft:text_display -142.99 45.1875 32.0 { \
translation: [0.0f, 0.0f, 0.0f] \
} \
}

summon minecraft:text_display -133.5 42.125 24.01 {\
Tags: [ \
"omega-flowey-remastered", \
"decorative", \
"decorative-cave", \
"description-feedback-form", \
], \
alignment: "center", \
background: 0, \
default_background: 0b, \
line_width: 100, \
see_through: 0b, \
shadow: 0b, \
text: '[ \
"Share your ", \
{ "text":"feedback", "color":"yellow" }, \
": ", \
{ "text": "[link]", "color": "aqua", "underlined": true } \
]', \
text_opacity: 255, \
transformation: { \
left_rotation: [0.0f, 0.0f, 0.0f, 1.0f], \
right_rotation: [0.0f, 0.0f, 0.0f, 1.0f], \
scale: [1.3749996f, 1.375f, 1.3749993f], \
translation: [0.0f, 0.0f, 0.0f] \
} \
}
summon minecraft:interaction -132.6 42.15 23.75 { \
Tags: [ \
"omega-flowey-remastered", \
"decorative", \
"decorative-cave", \
"description-feedback-form-interaction", \
], \
width: 1, \
height: 0.5, \
response: true, \
}
execute as @e[ \
x=-134.0, dx=2, y=42.0, dy=2, z=23.0, dz=2, \
type=minecraft:interaction, \
tag=description-feedback-form-interaction, \
tag=omega-flowey-remastered, \
limit=1 \
] run function gu:generate
data modify storage omegaflowey:decorative feedback_form_interaction_uuid set from storage gu:main out

0 comments on commit 1b69027

Please sign in to comment.