Armor full set bonus - jojodmo/CustomItems GitHub Wiki
Armor full set bonus
Whats a full set bonus?: Give the player the following potion effects while they are wearing the full set of armor
First head to the file below
armor.yml
This file is found in your plugin folder inside CustomItems Inside this file you will set the armor category ands the effect you would like it to give, you can give multiple effects in one like below. Is giving glowing and increase damage.
See Minecraft Potion Type List for the names of the Minecraft potion effects
categories:
mygreatarmor:
# handlers for this armor category
handlers:
# if the player is wearing a full set of armor in this category, do this:
wearingFullSet:
# give the player the following potion effects while they are wearing the full set
# of armor
effects:
-
potion: "GLOWING" #effect one
-
potion: "INCREASE_DAMAGE" #the second effect
strength: 2
particles: false
showIcon: true
myOtherArmorCategory:
# this file can hold as many Categorys as you want with as many effects as you want
After you have added you Category in this exmaple its mygreatarmor - You then need to add the name of the category to all your armor pieces
greatarmor_helmet.yml
name: mygreatarmor_helmet
item:
material: DIAMOND_HELMET
displayName: 'mygreatarmor Helmet'
lore:
- '&7&oDurability: 450 / 450'
armor:
category: mygreatarmor
greatarmor_chestplate.yml
name: mygreatarmor_chestplate
item:
material: DIAMOND_CHESTPLATE
displayName: 'mygreatarmor Chestplate'
lore:
- '&7&oDurability: 450 / 450'
armor:
category: mygreatarmor
greatarmor_leggings.yml
name: mygreatarmor_leggings
item:
material: DIAMOND_LEGGINGS
displayName: 'mygreatarmor Leggings'
lore:
- '&7&oDurability: 450 / 450'
armor:
category: mygreatarmor
greatarmor_boots.yml
name: mygreatarmor_boots
item:
material: DIAMOND_BOOTS
displayName: 'mygreatarmor Boots'
lore:
- '&7&oDurability: 450 / 450'
armor:
category: mygreatarmor
Then restart your server and your done Warning if you don't restart your server it will not work