-
Notifications
You must be signed in to change notification settings - Fork 17
Added menu icon in tellraw messages for click actions #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added menu icon in tellraw messages for click actions #122
Conversation
Regarding changes to how it displays:
Do you agree with those changes? |
Nice work :) |
data/bingo/functions/util/bingo_menu/print_options_hint.mcfunction
Outdated
Show resolved
Hide resolved
Perhaps it'd still be nice to print the menu for when another team completes a goal, as well as when you die & respawn, from the original #71. |
I usually only do the part inside the brackets, not sure if I am entirely consistent here tho, and I don't really care 😁 |
I'm unsure how to go about printing the menu for all teams, considering that the functions are run as "@s". But perhaps there is some other global detection that could be used? For death detection, we would need a scoreboard objective for counting deaths. I'm unsure what would be a suitable name for that scoreboard objective according to your naming scheme, nor where that should be set up. Perhaps that could be done in a follow-up pull request? |
Quick&dirty would be to simply add the same tellraw in all announce functions. Other possibility is to add a new function with the tellraw and execute.
Well, the scoreboard should go in init with everything else and sth like
Would be happy to merge without these changes, if you prefer that, |
Actually, it's probably best if I do both changes with #55 at once. |
data/bingo/functions/game/bingo_menu/print_with_hint.mcfunction
Outdated
Show resolved
Hide resolved
Otherwise should be good to merge, thank you very much :) |
Co-authored-by: NeunEinser <daniel30797@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and looks good. Changed the menu button to print without hint, so the hint should only appear on game start or when rejoining
Addresses Issue #71
Changes
bingo.game.go_to_lobby.hint
was changed tobingo.game.menu.options.hint
as the text described both going to lobby and switching spectator mode.bingo.game.menu.text
,bingo.game.menu.icon
,bingo.game.menu.title
,bingo.game.menu.hover_text
,bingo.game.menu.hint
Added a print_bingo_menu function that prints out the bingo menu in chatAdded a couple of print functions to display the menu, the menu options and their respective hint messages.Where it displays (outdated)
Notes
de_de.json
andpl_pl.json
, otherwise the script will fail.Any thoughts or changes to be made? Feel free to make your own changes if you wish.