Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7539

Add API for scoreboard number formatting

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • n/a
    • n/a
    • Yes

      Minecraft 1.20.3 added a few new scoreboard features:

      1) The ability to give a player a sort of "nickname" in the scoreboard, the vanilla command is as follows:
      "/scoreboard players display name <targets> <objective> <text component>"
      and reset:
      "/scoreboard players display name <targets> <objective>"

      2) The ability to modify the "score" as blank or as a string/format
      vanilla commands:
      "/scoreboard players display numberformat <targets> <objective> <format>"
      "/scoreboard objectives modify <objective> numberformat <format>"
      and reset:
      "/scoreboard players display numberformat <targets> <objective>"
      "/scoreboard objectives modify <objective> numberformat"

      Number formats:
      styled <style>
      The score will be displayed with the selected style (e.g.

      {"bold":true}

      .
      fixed <text component>
      The score is replaced by the given text component.
      blank
      The score is not shown.

      Thank you for your consideration

            2008Choco Parker Hawke
            ShaneBee Shane Bee
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: