Remove reaction boss bar; fix death coords; F-tribute head
- Reactions: drop the purple boss bar that sat on screen for the whole reaction window (curiosidades, adivinha, luto [F], /ia answers). Live counts still ride on the reactor's action bar and the closing tally line. - mortes: death coordinates were sent during PlayerDeathEvent and the Java death screen swallowed them. Capture at death, deliver on PlayerRespawnEvent (1 tick later) so the player actually receives them. Respects keepInventory. - luto: pressing F to pay respects now drops the dead player's head into the mourner's inventory — once per mourner per death, never to the dead player. First gameplay-touching feature; toggle with luto.cabeca (default on). - Fix the /f typed twin: it fell through to help because "f" is not a configured reaction (the mourning set is hardcoded). Route it to reactLatest so Bedrock players can pay respects too. - README + config updated. 117 tests green. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,9 +2,13 @@
|
||||
|
||||
Chat-only social features for the Canalhandia Minecraft server (Paper 26.2).
|
||||
|
||||
**Nothing here touches gameplay.** No items, no world edits, no attributes, no
|
||||
economy. Everything is chat messages, boss bars and clickable buttons, and every
|
||||
module can be switched off independently.
|
||||
**Almost nothing here touches gameplay** — no world edits, no attributes, no
|
||||
economy, and no items anywhere except one: the `luto` tribute. Pressing F to pay
|
||||
respects drops the dead player's head into the mourner's inventory as a symbolic
|
||||
memento (toggle: `luto.cabeca`). Everything else is chat messages and clickable
|
||||
buttons, and every module can be switched off independently. (The reaction-count
|
||||
boss bar was removed; live counts ride on the reactor's action bar and a closing
|
||||
tally line.)
|
||||
|
||||
All player-facing text is Portuguese (pt-BR).
|
||||
|
||||
@@ -16,11 +20,11 @@ All player-facing text is Portuguese (pt-BR).
|
||||
|---|---|
|
||||
| `curiosidades` | *"Sabia que o Fulano já minerou 5.966 blocos de Pedra?"* — a fact about a player, with reaction buttons. Fires on join by default. |
|
||||
| `adivinha` | The same fact with the name hidden, plus clickable player names. Reveals after 45s and names who guessed right. |
|
||||
| `luto` | A clickable `[F]` under each death message, with a count when the window closes. |
|
||||
| `luto` | A clickable `[F]` under each death message, with a count when the window closes. Pressing F drops the **dead player's head** into the mourner's inventory (once per mourner per death, never to the dead player themselves) — the one gameplay-touching feature; toggle with `luto.cabeca`. Bedrock types `/f`. |
|
||||
| `enquete` | `/enquete Pergunta \| A \| B` — clickable voting with a live tally on the boss bar. |
|
||||
| `ranking` | `/ranking mineracao` and friends. Covers **offline players too**. |
|
||||
| `marcos` | Announces round milestones — 100 km walked, 24 hours played — the first time someone crosses one. |
|
||||
| `mortes` | Replaces each death message with a comic pt-BR line (cause-based flavor + a death counter) and sends the death coordinates **privately** to the dead player, so they can run back to their dropped items. No storage, no command. |
|
||||
| `mortes` | Replaces each death message with a comic pt-BR line (cause-based flavor + a death counter) and sends the death coordinates **privately** to the dead player on respawn (the death screen swallows chat sent during the event), so they can run back to their dropped items. Respects `keepInventory`. No storage, no command. |
|
||||
| `ia` | `/ia <pergunta>` asks an OpenAI-compatible model in chat. Optional wiki grounding, per-player memory, operator corrections. |
|
||||
|
||||
Toggle any of them: `/canalhandia modulo <nome> <on|off>`
|
||||
@@ -52,14 +56,14 @@ These shaped the design, and anyone changing the code should know them before
|
||||
|
||||
There is no vanilla way to update a message that is already in the chat log. So
|
||||
the counts baked into the reaction buttons are **frozen at send time** and never
|
||||
change. The live numbers appear on three other surfaces instead:
|
||||
change. The live numbers appear on two other surfaces instead:
|
||||
|
||||
- a **boss bar** while the window is open (`janela-reacao-segundos`, default 90)
|
||||
- an **action bar** shown to whoever just reacted
|
||||
- a **final tally line** broadcast when the window closes
|
||||
|
||||
An earlier version only had the boss bar, and it read as broken — the buttons
|
||||
showed no number at all.
|
||||
(A boss bar spanning the whole reaction window was tried and removed — it sat
|
||||
on screen for `janela-reacao-segundos` and read as clutter, and the two
|
||||
surfaces above already carry the counts.)
|
||||
|
||||
### 2. Who reacted, without filling the screen
|
||||
|
||||
|
||||
Reference in New Issue
Block a user