Reset Score
Play 0x4F, server → client.
play · 0x4F · clientbound (server → client)
Removes a score from the scoreboard. entity_name is the score holder; if objective_name is absent, the holder is removed from every objective. The client updates its scoreboard display.
Sent by the server, read by the client. Listen for it with client.on("ResetScore", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
entity_name |
String | |
objective_name |
Optional |
Send it
await client.sendPacket("ResetScore", {
entity_name: /* String */,
objective_name: /* Optional */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/clientbound/ResetScore.ts