Update Equipment authored by Woodyso's avatar Woodyso
The Equipment section in a mob config is a special droptable that The Equipment section in a mob config defines what kind of equipment the mob will spawn with. The equipment will only be applied to the mob when it spawns or during a reload, and can be changed afterwards by using the [Equip mechanic](/skills/mechanics/equip).
defines what kind of equipment the mob will spawn with. The equipment
will only be applied to the mob when it spawns or during a reload, and If the PreventOtherDrops option is not enabled, then the mob will naturally drop all of its equipped items on death.
can be changed afterwards by using the [Equip
mechanic](/skills/mechanics/equip). If you want your mob to not wear any equipment, you can use the option "PreventRandomEquipment". See [Mob Options](/databases/mobs/options). An alternative to using that option is to equip your mob with *dummy items*, such as AIR.
If you want your mob to not wear any kind of equipment, you can use the Equipment slots can also accept droptables, allowing for the creation of "sets" where a random item is selected from the set. For example, a droptable can be created that contains every vanilla helmet, which can then be used on the mob in the equipment tab to select one random helmet to wear.
option "PreventRandomEquipment". See [Mob
Options](/databases/mobs/options). An alternative to using that option
is to equip your mob with *dummy items*. Such items need have the item
ID AIR.
Equipment is a special type of droptable and can reference other
droptables, allowing you to use drop conditions to create advanced
equipment sets. If you define the slot in a droptable and reference it
normally in the Equipment section (or equip skill), the mob will "equip"
the drops instead of dropping them.
Syntax Syntax
------ ------
...@@ -27,29 +17,28 @@ Syntax ...@@ -27,29 +17,28 @@ Syntax
- ... - ...
**<item>** **<item>**
Can be either the name of a [MythicMobs item](/databases/items/overview) Can be either the name of a [MythicMobs item](/databases/items/overview) or a vanilla item.
or a vanilla item.
**<slot>** **<slot>**
Defines the slot on the mob that item should be carried on. Defines the slot on the mob that item should be carried on.
| Slot | Description | | Slot | Description |
|---------|-------------------------------------------------------------------------------------------------------------| |---------|-------------------------------------------------------------------------------------------------------------|
| HEAD | The head slot. Apart from regular helmets can be any blocktype or player head. Most will render accurately. | | HEAD | The head slot. Accepts regular helmets, playerheads, and even blocktypes. |
| CHEST | The chest slot. Will only render chestplates, but will carry any items. | | CHEST | The chest slot. Will only render chestplates, but will carry any items. |
| LEGS | The leg slot. Will only render leggings, but will carry any items. | | LEGS | The leg slot. Will only render leggings, but will carry any items. |
| FEET | The feet slot. Will only render boots, but will carry any items. | | FEET | The feet slot. Will only render boots, but will carry any items. |
| HAND | The mainhand slot. Will render any type of item. | | HAND | The mainhand (right) hand slot. |
| OFFHAND | The offhand slot, introduced in MC 1.9. Will render any type of item. | | OFFHAND | The offhand (left) hand slot. |
Examples Example
-------- --------
awesome_boss: awesome_boss:
Type: pig_zombie Type: pig_zombie
Equipment: Equipment:
- awesome_boss_helmet:4 - awesome_boss_helmet HEAD
- diamond_sword:0 - diamond_sword HAND
-------- --------
...@@ -117,10 +106,10 @@ MMOItems ...@@ -117,10 +106,10 @@ MMOItems
To equip a mob with an mmoitem, use the following syntax: To equip a mob with an mmoitem, use the following syntax:
``` ```
Equipment: Equipment:
- mmoitems{type=ARMOR;id=STEEL_HELMET}:4 - mmoitems{type=ARMOR;id=STEEL_HELMET} HEAD
- mmoitems{type=ARMOR;id=STEEL_CHESTPLATE}:3 - mmoitems{type=ARMOR;id=STEEL_CHESTPLATE} CHEST
- mmoitems{type=ARMOR;id=STEEL_LEGGINGS}:2 - mmoitems{type=ARMOR;id=STEEL_LEGGINGS} LEGS
- mmoitems{type=ARMOR;id=STEEL_BOOTS}:1 - mmoitems{type=ARMOR;id=STEEL_BOOTS} FEET
- mmoitems{type=SWORD;id=RUBY_SWORD}:0 - mmoitems{type=SWORD;id=RUBY_SWORD} HAND
``` ```
Please note that mmo stats on the armor DO NOT work on mythicmobs. They will not have extra hp, defense or attack damage because of it. Please note that mmo stats on the armor DO NOT work on MythicMobs. As such, they will not have extra health, defense or attack damage because of it.
\ No newline at end of file \ No newline at end of file