Skip to main content
Ctrl+K

Bookshelf

  • ๐Ÿš€ Quickstart
  • ๐Ÿงฉ Modules
  • ๐Ÿ“– Examples
  • ๐Ÿค Contribute
    • ๐Ÿ”— Related
    • ๐Ÿ“‹ FAQ
    • ๐Ÿ› ๏ธ Changelog
    • โค๏ธ Special Thanks
  • GitHub
  • Support us
  • Discord server
  • Gunivers
  • ๐Ÿš€ Quickstart
  • ๐Ÿงฉ Modules
  • ๐Ÿ“– Examples
  • ๐Ÿค Contribute
  • ๐Ÿ”— Related
  • ๐Ÿ“‹ FAQ
  • ๐Ÿ› ๏ธ Changelog
  • โค๏ธ Special Thanks
  • GitHub
  • Support us
  • Discord server
  • Gunivers

Section Navigation

Runtime

  • ๐Ÿ–ฅ๏ธ Bitwise
  • ๐Ÿงฑ Block
  • ๐ŸŽจ Color
  • โ›ฐ๏ธ Environment
  • ๐Ÿ—๏ธ Generation
  • โค๏ธ Health
  • ๐ŸŽฏ Hitbox
  • ๐Ÿท๏ธ ID
  • ๐Ÿ–ฑ๏ธ Interaction
  • ๐Ÿ”— Link
  • ๐Ÿงฎ Math
  • ๐Ÿƒ Move
  • ๐Ÿงญ Position
  • ๐ŸŽฒ Random
  • ๐Ÿ”ฆ Raycast
  • โฒ๏ธ Schedule
  • ๐Ÿ“ฐ Sidebar
  • ๐Ÿงฃ Spline
  • ๐Ÿ”  String
  • โŒš Time
  • โžก๏ธ Vector
  • ๐Ÿ‘€ View
  • ๐Ÿ… XP

Development

  • ๐Ÿ”ฌ Dump
  • ๐Ÿ“„ Log

Prefabs

  • ๐ŸŒณ Tree
  • ๐Ÿงฉ Modules
  • ๐Ÿ“ฐ Sidebar

๐Ÿ“ฐ Sidebar#

#bs.sidebar:help

Create visually appealing and dynamic sidebars using the scoreboard system.


๐Ÿ”ง Functions#

You can find below all functions available in this module.


Create#

#bs.sidebar:create

Create and register a new sidebar.

Inputs:

Function macro:

  • Arguments
    • objective: An objective used for the sidebar.
    • display_name: Displayed objective name. Must be a valid SNBT text component.
    • contents: Lines displayed on the sidebar.
      • : Must either be a valid SNBT text component or an array with two SNBT text components for the left and right sides.

Example: Create and display a new sidebar with left-aligned text:

# Create a new sidebar
function #bs.sidebar:create { \
    objective: "my_guessing_game", \
    display_name: { text: "Guess my name" }, \
    contents: [ \
        { text: " Clues:", color: "gold", bold: true }, \
        { text: "  โ€ข I gave my name to a famous test" }, \
        { text: "  โ€ข I am a pioneer of computer science and AI" }, \
        [{ text: " My name is: " }, { score: { objective: "enigma", name: "VHVyaW5n" }}], \
    ], \
}

# Display the sidebar
scoreboard objectives setdisplay sidebar my_guessing_game

Example: Create and display a new sidebar with right-aligned text:

# Create a new sidebar
function #bs.sidebar:create { \
    objective: "my_guessing_game_2", \
    display_name: { text: "Guess my name V2" }, \
    contents: [ \
        ["", { text: " Clues:", color: "gold", bold: true }], \
        ["", { text: "  โ€ข I gave my name to a famous test" }], \
        ["", { text: "  โ€ข I am a pioneer of computer science and AI" }], \
        ["", [{ text: " My name is: " }, { score: { objective: "enigma", name: "VHVyaW5n" }}]], \
    ], \
}

# Display the sidebar
scoreboard objectives setdisplay sidebar my_guessing_game_2

Credits: Aksiome


Refresh#

#bs.sidebar:refresh

Update dynamic parts of the sidebar.

Inputs:

Function macro:

  • Arguments
    • objective: The objective for the sidebar to refresh.

Example: Refresh a sidebar:

function #bs.sidebar:refresh {objective:"my_guessing_game"}

Credits: Aksiome


๐Ÿ’ฌ Did it help you?

Feel free to leave your questions and feedback below!

previous

โฒ๏ธ Schedule

next

๐Ÿงฃ Spline

On this page
  • ๐Ÿ”ง Functions
    • Create
    • Refresh
Edit on GitHub

This Page

  • Show Source

ยฉ Copyright 2025, Gunivers.

Code of Conduct | License (MPL 2.0) | Mentions Lรฉgales (FR)

Built with the PyData Sphinx Theme 0.16.1.