Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 141
    • Issues 141
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Items
  • Attributes

Attributes · Changes

Page history
Prettied up the page. authored Aug 11, 2020 by Eutherin's avatar Eutherin
Hide whitespace changes
Inline Side-by-side
Showing with 51 additions and 77 deletions
+51 -77
  • Items/Attributes.md Items/Attributes.md +51 -77
  • No files found.
Items/Attributes.md
View page @ 7c470a33
Item Attributes Item Attributes
=============== ===============
*Added in version 2.4*
The attributes section for items made with MythicMobs handles the new
Minecraft 1.9 attribute system. It makes it possible to apply different
attributes given to the entity wearing/using it depeding on the slot.
The old system in which attributes for items where put into the
*Options:*-tag are no longer supported.
Item:
Id: item_id
Attributes:
Slot:
Attribute: [number]
The attributes section for items made with MythicMobs handles the Minecraft attribute system. It makes it possible to apply different attributes given to the entity wearing/using it depending on the slot.
```
Item:
Id: item_id
Attributes:
Slot:
Attribute: [number]
```
Attributes in this section also allow number ranges and forced Attributes in this section also allow number ranges and forced
percentages. See examples at the bottom of the page. percentages. See examples at the bottom of the page.
...@@ -23,12 +18,8 @@ Attributes ...@@ -23,12 +18,8 @@ Attributes
**AttackSpeed: \[number\]** **AttackSpeed: \[number\]**
- Handles the attack speed or cooldown time of the item. Only does - Handles the attack speed or cooldown time of the item. Only does something when used on weapons.
something when used on weapons. - Using this attribute will override the original attack speed value of the item. Base item attack speed and custom attack speed do not stack. See [Common Items](/items/Common Item Id's) for a list of base attack speed values.
- Using this attribute will override the original attack speed value
of the item. Base item attack speed and custom attack speed do not
stack. See [Common Items](/databases/items/commonitems) for a list
of base attack speed values.
**Armor: \[number\]** **Armor: \[number\]**
...@@ -38,31 +29,19 @@ Attributes ...@@ -38,31 +29,19 @@ Attributes
**ArmorToughness: \[number\]** **ArmorToughness: \[number\]**
- `Not sure what this does yet but it's in there!` - Alters the damage reduction percentage of the armor
- (Apparently affects the damage reduction percentage of the armor)
**Damage: \[number\]** **Damage: \[number\]**
- Sets the melee damage of the item. (May in fact ADD onto the items - Sets the melee damage of the item.
base damage. - Using this attribute will override the original damage value of the item. Base item damage and custom damage do not stack.
- Using this attribute will override the original damage value of the - 1 damage = 0.5 hearts
item. Base item damage and custom damage do not stack.
- The above may only apply to non-weapon/tool items.
- 1 damage = 0.5 hearts damage
**FollowRange: \[number\]**
- Sets the follow range stat of the item.
- Only has an effect when worn by mobs.
- `Not implemented yet as of build #1530`
**Health: \[number\]** **Health: \[number\]**
- Sets the health of the item which will give the wearer extra or - Sets the health of the item which will give the wearer extra or minus health.
minus health. - Use positive numbers for extra health and negative numbers for minus health.
- Use positive numbers for extra health and negative numbers for minus - 1 health = 0.5 hearts
health.
- 1 health = 0.5 hearts health
**Luck: \[number\]** **Luck: \[number\]**
...@@ -73,14 +52,12 @@ Attributes ...@@ -73,14 +52,12 @@ Attributes
- Sets the knockback resistance of the item. - Sets the knockback resistance of the item.
- Use *\[number\]%* to force percentage values. - Use *\[number\]%* to force percentage values.
- Examples: - Examples: ```KnockbackResistance: 99%```
- **KnockbackResistance: 99%**
**MovementSpeed: \[number\]** **MovementSpeed: \[number\]**
- Sets the movement speed of the item. - Sets the movement speed of the item.
- Use positive numbers for additional speed and negative numbers for - Use positive numbers for additional speed and negative numbers for minus speed.
minus speed.
Slots Slots
----- -----
...@@ -101,38 +78,35 @@ Examples ...@@ -101,38 +78,35 @@ Examples
This example item will grant +10 luck when the item is held in the main This example item will grant +10 luck when the item is held in the main
hand, but will grant +7 luck and +2 extra damage if the item is held in hand, but will grant +7 luck and +2 extra damage if the item is held in
the off hand slot: the off hand slot:
```
lucky_charms: lucky_charms:
Id: potato_item Id: potato_item
Display: 'Rotten Lucky Charm' Display: 'Rotten Lucky Charm'
Attributes: Attributes:
MainHand: MainHand:
Luck: 10 Luck: 10
OffHand: OffHand:
Luck: 7 Luck: 7
Damage: 2 Damage: 2
```
This example item grants +2 extra health no matter in which slot the This example item grants +2 extra health no matter in which slot the item is being held, but will also grant +4% movement speed if the item is worn in the feet slot:
item is being held, but will also grant +4% movement speed if the item ```
is worn in the feet slot: happy_feet:
Id: leather_boots
happy_feet: Display: 'Penguin Hide'
Id: leather_boots Attributes:
Display: 'Penguin Hide' All:
Attributes: Health: 2
All: Feet:
Health: 2 MovementSpeed: 0.04
Feet: ```
MovementSpeed: 0.04 Each time this item is generated it will have a random damage value between 3 and 5 and a random speed bonus between 1 % and 5 % when worn in the main hand:
```
Each time this item is generated it will have a random damage value lucky_sword:
between 3 and 5 and a random speed bonus between 1 % and 5 % when worn Id: wood_sword
in the main hand: Display: '&eLucky Sword&r'
Attributes:
lucky_sword: MainHand:
Id: wood_sword Damage: 3-5
Display: '&eLucky Sword&r' MovementSpeed: 0.01-0.05
Attributes: ```
MainHand: \ No newline at end of file
Damage: 3-5
MovementSpeed: 0.01-0.05
Clone repository
  • Home
  • Changelogs
  • Premium Features
  • Commands and Permissions
  • FAQ / Common Issues
  • Mythic Add-ons
  • Compatible Plugins
  • API Information

Mobs

  • Overview
  • Types
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Extra: Disguises
  • Extra: MiniaturePets

Skills

  • Overview
  • Mechanics
  • Effects
  • Targeters
  • Triggers
  • Conditions
  • Placeholders
  • Variables

Items & Drops

  • Drops and Drop Tables
  • Options
  • Attributes
  • Common Item ID's
  • Enchantments
  • Potions
  • Banner Layers

Spawning

  • Spawners
  • Random Spawns