Added health display for mobs during combat.

During combat, players will now see a healthbar appear over the head of
hostile mobs when they are damaged. This healthbar will have two display
options - HEARTS and BAR - which can be changed via the /mobhealth
command.

New Permissions:
mcmmo.mobhealthdisplay - Allows viewing of mob health display
mcmmo.commands.mobhealth - Allows access to the /mobhealth command

New Config Options (config.yml):
Mob_Healthbar.Display_Type - the default health display type
Mob_Healthbar.Display_Time - the amount of time to show health display
This commit is contained in:
GJ
2013-04-04 22:11:11 -04:00
parent 87feb8c250
commit da29185b7d
14 changed files with 247 additions and 1 deletions

View File

@ -27,6 +27,12 @@ General:
# Should mcMMO over-write configs to update, or make new ones ending in .new?
Config_Update_Overwrite: true
Mob_Healthbar
# Default display for mob health bars - HEARTS, BAR, or DISABLED
Display_Type: HEARTS
# Amount of time (in seconds) to display. To display permanently, set to -1
Display_Time: 3
Database_Purging:
# Amount of time (in hours) to wait between database purging
# To only run at server start, set to 0

View File

@ -104,6 +104,9 @@ commands:
mcnotify:
aliases: [notify]
description: Toggle mcMMO abilities chat display notifications on/off
mobhealth:
aliases: [mcmobhealth]
description: Change the style of the mob healthbar
permissions:
mcmmo.*:
default: false
@ -659,6 +662,7 @@ permissions:
mcmmo.commands.mcstats: true
mcmmo.commands.mctop.all: true
mcmmo.commands.mining: true
mcmmo.commands.mobhealth: true
mcmmo.commands.party.all: true
mcmmo.commands.ptp: true
mcmmo.commands.ptp.accept: true
@ -875,6 +879,9 @@ permissions:
mcmmo.commands.mmoupdate:
default: false
description: Allows access to the mmoupdate command
mcmmo.commands.mobhealth:
default: true
description: Allows access to the mobhealth command
mcmmo.commands.party.*:
default: false
description: Implies access to all mcmmo.commands.party permissions.
@ -1179,6 +1186,7 @@ permissions:
children:
mcmmo.chat.partychat: true
mcmmo.commands.defaults: true
mcmmo.mobhealthdisplay: true
mcmmo.motd: true
mcmmo.skills.all: true
mcmmo.defaultsop:
@ -1200,6 +1208,8 @@ permissions:
mcmmo.item.chimaerawing: true
mcmmo.item.chimaerawing:
description: Allows use of Chimaera Wing item
mcmmo.mobhealthdisplay:
description: Allows viewing of mob health display during combat
mcmmo.motd:
description: Allows access to the motd
mcmmo.party.*: