BetterHud 1.10
Notice
- Now support about Oraxen 2.0 is dropped.
- Now support about Nexo is available.
Add
- 1.21.4 support
- Add 'children' in image.
Code (YAML):
children_full:
type
: single
file
:
"children/full.png"
#parent image
setting:
children
:
#define the children you want use.
- children_half
- children_container
children-mapper
:
#replace the image to child if this condition is matched.
children_container:
1:
first
: health_percentage
second
: 0.33
operation
:
"<"
children_half:
1:
first
: health_percentage
second
: 0.66
operation
:
"<"
children_half:
type
: single
file
:
"children/half.png"
children_container:
type
: single
file
:
"children/container.png"
children_full:
type
: single
file
:
"children/full.png"
setting:
children
: *
#wild card(*) defines all available image.
follow
:
"skript_variable:your_value"
#If you want to show image depend on some placeholder, set 'follow' section.
- Now we're using maven central to publish API
Code (Kotlin):
dependencies
{
compileOnly
(
"io.github.toxicity188:BetterHud-standard-api:VERSION"
)
//Standard API
compileOnly
(
"io.github.toxicity188:BetterHud-bukkit-api:VERSION"
)
//Platform API
}
- Add 'color-overrides' in image, text, head, layout
Code (YAML):
test_layout:
heads:
1:
name
: test_head
align
: center
texts:
1:
name
: test_text
pattern
: |
Text1
Text2
line
: 3
align
: center
line-align
: center
scale
: 0.5
y
: 48
properties
:
- wave
color-overrides:
1:
color
:
"#FF8080"
conditions:
1:
first
: health_percentage
second
: 0.33
operation
:
"<"
- Add 'static-scale' in render scale
Code (YAML):
test_head:
heads:
1:
name
: test_head
align
: center
type
: fancy
y
: 64
x
: 64
render-scale:
x
: 3.0
y
: 3.0
static-scale
: true
- Add 'placeholder-option' and 'placeholder-string-format'
Code (YAML):
test_text:
texts:
1:
name
: unifont
pattern
: |
[name]
[health_percentage]%
placeholder-option:
evaluate
: t * 100
join
:
" "
placeholder-string-format:
number
:
"#,###"
background
: test
align
: center
line-align
: center
scale
: 0.5
line
: 5
split-width
: 300
y
: 32
- Add these option in config.yml
Code (Text):
disable-legacy-offset: false #If this is true, a correct pixel offset is provided.
- Add 'hud turn on|off <player' command
- Remove space constraint in text layout
Change
- Now BetterHud uses BetterCommand 1.4
- Now BetterHud uses Kotlin 2.1.0
Fix
- Fix placeholder comma.
- Fix Folia adaption
- Fix layout identifier.
- Fix render scale calculation.
- Optimize text renderer.