explanations/Mob Abilities

Mob Abilities allow you to customize how strong/weak your mobs are (Per world too!) (Also how they look with Armour/Setting as a baby)

By default in your config you will see an empty config under MobAbilities

MobAbilities: {}

If you want to add a new mob type its name under MobAbilities (Remember to remove the {}) (Get mob names from here)

MobAbilities:
  ZOMBIE: {}

After you start your server or reload MobManagers config, changes will be made to ZOMBIE: {}

MobAbilities:
  ZOMBIE:
    SpawnRate: 1.0
    BabyRate: 0.0
    PotionEffects: []
    HealthBonus: []
    DamageMulti: []
    ArmourSets: []
    StartingItem: []
    AbilitySets: []

All rate settings will be set to their default values, all chance lists are defaulted to nothing. From here you can start customizing your mob!

MobAbilities:
  ZOMBIE:
    SpawnRate: 0.5
    BabyRate: 0.0
    PotionEffects:
    - Chance: 1
      Effects:
      - SPEED
      - JUMP
    - Chance: 19
      Effects:
      - NONE
    HealthBonus:
    - Chance: 1
      Bonus: 10
    DamageMulti:
    - Chance: 1
      Multi: 9001.0
    - Chance: 9000
      Multi: 1.0
    ArmourSets:
    - Chance: 1
      Material: DIAMOND
    - Chance: 9
      Material: NONE
    Item_Hand:
    - Chance: 5
      ID: 1
    - Chance: 1
      ID: 276
    ApplySets:
    - Chance: 1
      SetName: BabySteve
    - Chance: 1
      SetName: SteveTheZombie
    - Chance: 1
      SetName: NONE

Here is an example of a config for a Zombie. With the above settings.....

  • Every zombie would spawn with an extra 10 HP (Because there is only one value in the chance list for HealthBonus)
  • 1 / 20 zombies would be effected with Speed and Jump until it dies
  • 19 / 20 zombies would have no potion effects added to them
  • 1 / 9001 zombies would deal an extra 9001 times more damage!
  • 9000 / 9001 zombies would deal normal damage
  • 1 / 10 zombies would spawn wearing Diamond armour
  • 9 / 10 zombies would spawn wearing no armour
  • 5 / 6 zombies would spawn holding no weapon (Due to using air as the item id)
  • 1 / 6 zombies would spawn holding a diamond sword!
  • 1 / 3 zombies would take the ability set named BabySteve
  • 1 / 3 zombies would take the ability set named SteveTheZombie
  • 1 / 3 zombies would take the built in AbilitySet named NONE which contains no abilities

Note that AbilitySets must be defined in the global abilities.yml file to be used. Check the example in abilities.yml When creating AbilitySets

Note that all of these abilities can stack with each other, each ability is added to a mob from each set of abilities. A single mob can end up with Potion Effects, Bonus HP, A Damage Multi and Armour all at once.

If any of this is not clear. Please let me know! :)


Comments

Posts Quoted:
Reply
Clear All Quotes