๐ Your First Custom Bar
Step 1: Create the Design (Layout)
# This is our blueprint. It defines two lines of text.
layout-lines:
# Line 1: Displays the pig's name in pink.
- line: '&d%sunshine_mob_name%'
y-offset: 0.25 # We position it slightly upwards.
# Line 2: Displays the current and max health with a heart.
- line: '&cโค &f%sunshine_health_current%&7/&f%sunshine_health_max%'
scale: 0.8 # We make it a little smaller.Step 2: Assign the Design to the Pig
# We tell the plugin that all PIGs should use our new design.
PIG:
name: 'Oinker' # This name will replace %sunshine_mob_name%
layout: 'pig_layout' # The name of our layout file!
vertical-offset: 1.2 # Adjusts the bar's height above the pig.
components: {} # We leave this empty since our design doesn't use components.Step 3: Reload and Enjoy!
Last updated