pluginiPlugin

Layout Mode

Directly reference layout configuration for display

Configuration

In the Xerr/core/layout/ directory, configure your layouts, and they can be directly referenced in the BossBar.

Xerr/core/display/bossbar/layout.yml
layout:
  - id: hud_1 # Layout identifier
 
  - id: hud_2
    # Pass text variables to the text element hp of layout hud_2
    variable:
      hp: "Health: %player_health%"
    # Refresh interval, 20 equals 1 second
    refresh: 20
 
  - id: health_bar
    # Refresh interval, 20 equals 1 second
    refresh: 20
    # Display conditions
    condition: |
      all [
        permission xerr.test
        check player health > 10
      ]

On this page