Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1011 Bytes

File metadata and controls

28 lines (22 loc) · 1011 Bytes

PercentHealth

The icon for this module is a daylight sensor.

When enabled this module will update all of the configured objectives with player's health in percentages. Objectives are updated when a player takes damage, and periodically for all online players.

When disabled the modules stops updating the objectives.

Configuration

update period: 20
objectives:
- objective name: UHCHealthName
  objective display name: '&c&h'
- objective name: UHCHealthList
  objective display name: Health
  scaling: 5

update period - how often to forcibly update all online player's health (in ticks) objectives - a list of objectives to create/track
objective name - the name of the objetive to create/update
objective display name - the display name to give the objective, can use colour codes like &c. Using &h will be replaced with a heart.
scaling - int, how much to multiply the player's health by. Defaults to 5 if not provided (changes 0-20 into 0-100)