Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
databases:misc:equipment [2016/03/17 06:48]
jaylawl [Syntax]
databases:misc:equipment [2019/09/19 21:57] (current)
xikage
Line 2: Line 2:
 {{http://​fs5.directupload.net/​images/​160306/​vfzfiynv.jpg?​500x200}} {{http://​fs5.directupload.net/​images/​160306/​vfzfiynv.jpg?​500x200}}
  
-The equipment tag in a mobfile ​defines what kind of equipment the mob will spawn with. The equipment will only be applied to the mob once on it's initial spawn and can be changed afterwards by using the [[:​skills:​mechanics:​equip|Equip mechanic]].+The Equipment section ​in a mob config is a special droptable that 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 [[:​skills:​mechanics:​equip|Equip mechanic]].
  
-If you want your mob to not wear any kind of equipment, you can use the option "​PreventRandomEquipment"​. See [[:​databases:​mobs:​options|Mob Options]]. An alternative to using that option is to equip your mob with //dummy items//. Such items need have the item ID 0.+If you want your mob to not wear any kind of equipment, you can use the option "​PreventRandomEquipment"​. See [[:​databases:​mobs:​options|Mob 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 =====
Line 11: Line 13:
   Type: <​mobtype>​   Type: <​mobtype>​
   Equipment:   Equipment:
-  - <​item>​:<​slot>​ +  - <​item>​ <​slot>​ 
-  - <​item>​:<​slot>​+  - <​item>​ <​slot>​
   - ...   - ...
 </​code>​ </​code>​
Line 23: Line 25:
  
 ^ Slot ^ Description ^ ^ Slot ^ Description ^
-|  ​5  | The offhand slot, introduced in MC 1.9. Will render any type of item. | +|  ​HEAD  | The head slot. Apart from regular helmets can be any blocktype or player head. Most will render accurately. | 
-|  4  | The head slot. Apart from regular helmets can be any blocktype or player head. Most will render accurately. | +|  ​CHEST  | The chest slot. Will only render chestplates,​ but will carry any items. | 
-|  ​ | 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. | 
-|  ​ | 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. | 
-|  ​ | The feet slot. Will only render boots, but will carry any items. | +|  ​HAND  | The mainhand slot. Will render any type of item. | 
-|  ​ | The mainhand slot. Will render any type of item. | +|  OFFHAND ​ | The offhand slot, introduced ​in MC 1.9Will render any type of item|
-//The offhand slot was added in version 2.3.2.//+
  
 ===== Examples ===== ===== Examples =====

databases/misc/equipment.txt · Last modified: 2019/09/19 21:57 by xikage