naming. MalleableBaseQuest now handles multiple forming items at the same time. Zombie Leaders accurately labeled now deeper underground. Damage Reduction and Base Damage notifications do not appear as often now. Only under substantial changes to damage or reduction to reduce spam. All related artifact recipes have been added. Loot tables updated to reflect new availability of Artifact Crafting drops. Malleable Base Drop now scales with the resource obtained for it. Fixed a drop not properly appearing from Wither Skeletons. Updated API and generic functions to include a new hardened item notification along with more fixes to naming functions and more support methods. Added GetModifiedDamage() to API.dev
parent
ee6784447a
commit
f453499468
Binary file not shown.
@ -0,0 +1,618 @@ |
||||
package sig.plugin.TwosideKeeper.HelperStructures; |
||||
|
||||
import org.bukkit.Bukkit; |
||||
import org.bukkit.Material; |
||||
import org.bukkit.enchantments.Enchantment; |
||||
import org.bukkit.inventory.ItemStack; |
||||
import org.bukkit.inventory.ShapedRecipe; |
||||
import org.bukkit.inventory.ShapelessRecipe; |
||||
|
||||
import sig.plugin.TwosideKeeper.Artifact; |
||||
import sig.plugin.TwosideKeeper.TwosideKeeper; |
||||
|
||||
public enum ArtifactItemType { |
||||
AXE(0,"AXE",TierType.ALL,UpgradePath.TOOL,new String[]{"EEx","EEx","xEx"}, |
||||
new ItemStack[]{ |
||||
new ItemStack(Material.GOLD_AXE), //T1
|
||||
new ItemStack(Material.WOOD_AXE), //T2
|
||||
new ItemStack(Material.WOOD_AXE), //T3
|
||||
new ItemStack(Material.STONE_AXE), //T4
|
||||
new ItemStack(Material.STONE_AXE), //T5
|
||||
new ItemStack(Material.IRON_AXE), //T6
|
||||
new ItemStack(Material.IRON_AXE), //T7
|
||||
new ItemStack(Material.IRON_AXE), //T8
|
||||
new ItemStack(Material.DIAMOND_AXE), //T9
|
||||
new ItemStack(Material.DIAMOND_AXE), //T10
|
||||
}, |
||||
new double[]{ |
||||
1.0d, //T1
|
||||
1.5d, //T2
|
||||
2.0d, //T3
|
||||
2.5d, //T4
|
||||
3.0d, //T5
|
||||
3.5d, //T6
|
||||
4.0d, //T7
|
||||
4.5d, //T8
|
||||
5.0d, //T9
|
||||
6.0d //T10
|
||||
}), |
||||
SWORD(1,"SWORD",TierType.ALL,UpgradePath.WEAPON,new String[]{"EEE","EEE","EEE"}, |
||||
new ItemStack[]{ |
||||
new ItemStack(Material.GOLD_SWORD), //T1
|
||||
new ItemStack(Material.WOOD_SWORD), //T2
|
||||
new ItemStack(Material.WOOD_SWORD), //T3
|
||||
new ItemStack(Material.STONE_SWORD), //T4
|
||||
new ItemStack(Material.STONE_SWORD), //T5
|
||||
new ItemStack(Material.IRON_SWORD), //T6
|
||||
new ItemStack(Material.IRON_SWORD), //T7
|
||||
new ItemStack(Material.IRON_SWORD), //T8
|
||||
new ItemStack(Material.DIAMOND_SWORD), //T9
|
||||
new ItemStack(Material.DIAMOND_SWORD), //T10
|
||||
}, |
||||
new double[]{ |
||||
2.0d, //T1
|
||||
3.0d, //T2
|
||||
4.0d, //T3
|
||||
5.0d, //T4
|
||||
6.0d, //T5
|
||||
7.0d, //T6
|
||||
8.0d, //T7
|
||||
9.0d, //T8
|
||||
10.0d, //T9
|
||||
12.0d //T10
|
||||
}), |
||||
PICKAXE(2,"PICKAXE",TierType.ALL,UpgradePath.TOOL,new String[]{"EEE","xEx","xEx"}, |
||||
new ItemStack[]{ |
||||
new ItemStack(Material.GOLD_PICKAXE), //T1
|
||||
new ItemStack(Material.WOOD_PICKAXE), //T2
|
||||
new ItemStack(Material.WOOD_PICKAXE), //T3
|
||||
new ItemStack(Material.STONE_PICKAXE), //T4
|
||||
new ItemStack(Material.STONE_PICKAXE), //T5
|
||||
new ItemStack(Material.IRON_PICKAXE), //T6
|
||||
new ItemStack(Material.IRON_PICKAXE), //T7
|
||||
new ItemStack(Material.IRON_PICKAXE), //T8
|
||||
new ItemStack(Material.DIAMOND_PICKAXE), //T9
|
||||
new ItemStack(Material.DIAMOND_PICKAXE), //T10
|
||||
}), |
||||
HOE(3,"HOE",TierType.ALL,UpgradePath.TOOL,new String[]{"EEx","xEx","xEx"}, |
||||
new ItemStack[]{ |
||||
new ItemStack(Material.GOLD_HOE), //T1
|
||||
new ItemStack(Material.WOOD_HOE), //T2
|
||||
new ItemStack(Material.WOOD_HOE), //T3
|
||||
new ItemStack(Material.STONE_HOE), //T4
|
||||
new ItemStack(Material.STONE_HOE), //T5
|
||||
new ItemStack(Material.IRON_HOE), //T6
|
||||
new ItemStack(Material.IRON_HOE), //T7
|
||||
new ItemStack(Material.IRON_HOE), //T8
|
||||
new ItemStack(Material.DIAMOND_HOE), //T9
|
||||
new ItemStack(Material.DIAMOND_HOE), //T10
|
||||
}), |
||||
BOW(4,"BOW",TierType.ONE,UpgradePath.BOW,new String[]{"EEx","ExE","EEx"}, |
||||
new ItemStack[]{ |
||||
new ItemStack(Material.BOW), //T1
|
||||
new ItemStack(Material.BOW), //T2
|
||||
new ItemStack(Material.BOW), //T3
|
||||
new ItemStack(Material.BOW), //T4
|
||||
new ItemStack(Material.BOW), //T5
|
||||
new ItemStack(Material.BOW), //T6
|
||||
new ItemStack(Material.BOW), //T7
|
||||
new ItemStack(Material.BOW), //T8
|
||||
new ItemStack(Material.BOW), //T9
|
||||
new ItemStack(Material.BOW), //T10
|
||||
}), |
||||
SHOVEL(5,"SPADE",TierType.ALL,UpgradePath.TOOL,new String[]{"E","E","E"}, |
||||
new ItemStack[]{ |
||||
new ItemStack(Material.GOLD_SPADE), //T1
|
||||
new ItemStack(Material.WOOD_SPADE), //T2
|
||||
new ItemStack(Material.WOOD_SPADE), //T3
|
||||
new ItemStack(Material.STONE_SPADE), //T4
|
||||
new ItemStack(Material.STONE_SPADE), //T5
|
||||
new ItemStack(Material.IRON_SPADE), //T6
|
||||
new ItemStack(Material.IRON_SPADE), //T7
|
||||
new ItemStack(Material.IRON_SPADE), //T8
|
||||
new ItemStack(Material.DIAMOND_SPADE), //T9
|
||||
new ItemStack(Material.DIAMOND_SPADE), //T10
|
||||
}), |
||||
HELMET(6,"HELMET",TierType.ARMOR,UpgradePath.ARMOR,new String[]{"EEE","ExE"}, |
||||
new ItemStack[]{ |
||||
new ItemStack(Material.LEATHER_HELMET), //T1
|
||||
new ItemStack(Material.LEATHER_HELMET), //T2
|
||||
new ItemStack(Material.GOLD_HELMET), //T3
|
||||
new ItemStack(Material.IRON_HELMET), //T4
|
||||
new ItemStack(Material.IRON_HELMET), //T5
|
||||
new ItemStack(Material.IRON_HELMET), //T6
|
||||
new ItemStack(Material.DIAMOND_HELMET), //T7
|
||||
new ItemStack(Material.DIAMOND_HELMET), //T8
|
||||
new ItemStack(Material.DIAMOND_HELMET), //T9
|
||||
new ItemStack(Material.LEATHER_HELMET), //T10
|
||||
}, |
||||
new double[]{ |
||||
3.75d, //T1
|
||||
5.0d, //T2
|
||||
6.25d, //T3
|
||||
7.50d, //T4
|
||||
8.75d, //T5
|
||||
11.25d, //T6
|
||||
13.75d, //T7
|
||||
16.25d, //T8
|
||||
18.75d, //T9
|
||||
22.50d //T10
|
||||
}, |
||||
new int[]{ |
||||
2, //T1
|
||||
3, //T2
|
||||
4, //T3
|
||||
5, //T4
|
||||
6, //T5
|
||||
7, //T6
|
||||
9, //T7
|
||||
10, //T8
|
||||
12, //T9
|
||||
14 //T10
|
||||
}), |
||||
CHESTPLATE(7,"CHESTPLATE",TierType.ARMOR,UpgradePath.ARMOR,new String[]{"ExE","EEE","EEE"}, |
||||
new ItemStack[]{ |
||||
new ItemStack(Material.LEATHER_CHESTPLATE), //T1
|
||||
new ItemStack(Material.LEATHER_CHESTPLATE), //T2
|
||||
new ItemStack(Material.GOLD_CHESTPLATE), //T3
|
||||
new ItemStack(Material.IRON_CHESTPLATE), //T4
|
||||
new ItemStack(Material.IRON_CHESTPLATE), //T5
|
||||
new ItemStack(Material.IRON_CHESTPLATE), //T6
|
||||
new ItemStack(Material.DIAMOND_CHESTPLATE), //T7
|
||||
new ItemStack(Material.DIAMOND_CHESTPLATE), //T8
|
||||
new ItemStack(Material.DIAMOND_CHESTPLATE), //T9
|
||||
new ItemStack(Material.LEATHER_CHESTPLATE), //T10
|
||||
}, |
||||
new double[]{ |
||||
3.75d, //T1
|
||||
5.0d, //T2
|
||||
6.25d, //T3
|
||||
7.50d, //T4
|
||||
8.75d, //T5
|
||||
11.25d, //T6
|
||||
13.75d, //T7
|
||||
16.25d, //T8
|
||||
18.75d, //T9
|
||||
22.50d //T10
|
||||
}, |
||||
new int[]{ |
||||
2, //T1
|
||||
3, //T2
|
||||
4, //T3
|
||||
5, //T4
|
||||
6, //T5
|
||||
7, //T6
|
||||
9, //T7
|
||||
10, //T8
|
||||
12, //T9
|
||||
14 //T10
|
||||
}), |
||||
LEGGINGS(8,"LEGGINGS",TierType.ARMOR,UpgradePath.ARMOR,new String[]{"EEE","ExE","ExE"}, |
||||
new ItemStack[]{ |
||||
new ItemStack(Material.LEATHER_LEGGINGS), //T1
|
||||
new ItemStack(Material.LEATHER_LEGGINGS), //T2
|
||||
new ItemStack(Material.GOLD_LEGGINGS), //T3
|
||||
new ItemStack(Material.IRON_LEGGINGS), //T4
|
||||
new ItemStack(Material.IRON_LEGGINGS), //T5
|
||||
new ItemStack(Material.IRON_LEGGINGS), //T6
|
||||
new ItemStack(Material.DIAMOND_LEGGINGS), //T7
|
||||
new ItemStack(Material.DIAMOND_LEGGINGS), //T8
|
||||
new ItemStack(Material.DIAMOND_LEGGINGS), //T9
|
||||
new ItemStack(Material.LEATHER_LEGGINGS), //T10
|
||||
}, |
||||
new double[]{ |
||||
3.75d, //T1
|
||||
5.0d, //T2
|
||||
6.25d, //T3
|
||||
7.50d, //T4
|
||||
8.75d, //T5
|
||||
11.25d, //T6
|
||||
13.75d, //T7
|
||||
16.25d, //T8
|
||||
18.75d, //T9
|
||||
22.50d //T10
|
||||
}, |
||||
new int[]{ |
||||
2, //T1
|
||||
3, //T2
|
||||
4, //T3
|
||||
5, //T4
|
||||
6, //T5
|
||||
7, //T6
|
||||
9, //T7
|
||||
10, //T8
|
||||
12, //T9
|
||||
14 //T10
|
||||
}), |
||||
BOOTS(9,"BOOTS",TierType.ARMOR,UpgradePath.ARMOR,new String[]{"ExE","ExE"}, |
||||
new ItemStack[]{ |
||||
new ItemStack(Material.LEATHER_BOOTS), //T1
|
||||
new ItemStack(Material.LEATHER_BOOTS), //T2
|
||||
new ItemStack(Material.GOLD_BOOTS), //T3
|
||||
new ItemStack(Material.IRON_BOOTS), //T4
|
||||
new ItemStack(Material.IRON_BOOTS), //T5
|
||||
new ItemStack(Material.IRON_BOOTS), //T6
|
||||
new ItemStack(Material.DIAMOND_BOOTS), //T7
|
||||
new ItemStack(Material.DIAMOND_BOOTS), //T8
|
||||
new ItemStack(Material.DIAMOND_BOOTS), //T9
|
||||
new ItemStack(Material.LEATHER_BOOTS), //T10
|
||||
}, |
||||
new double[]{ |
||||
3.75d, //T1
|
||||
5.0d, //T2
|
||||
6.25d, //T3
|
||||
7.50d, //T4
|
||||
8.75d, //T5
|
||||
11.25d, //T6
|
||||
13.75d, //T7
|
||||
16.25d, //T8
|
||||
18.75d, //T9
|
||||
22.50d //T10
|
||||
}, |
||||
new int[]{ |
||||
2, //T1
|
||||
3, //T2
|
||||
4, //T3
|
||||
5, //T4
|
||||
6, //T5
|
||||
7, //T6
|
||||
9, //T7
|
||||
10, //T8
|
||||
12, //T9
|
||||
14 //T10
|
||||
}); |
||||
|
||||
int data; |
||||
String itemname; |
||||
TierType tier; |
||||
UpgradePath upgrade; |
||||
String[] recipe; |
||||
ItemStack[] itemtiers; |
||||
double[] damageamt; |
||||
int[] healthamt; |
||||
|
||||
ArtifactItemType(int dataval, String itemname, TierType tier, UpgradePath upgrade, String[] recipe, ItemStack[] itemtiers, double[] damageamt, int[] healthamt) { |
||||
ArtifactItemType(dataval,itemname,tier,upgrade,recipe,itemtiers,damageamt,healthamt); |
||||
} |
||||
|
||||
ArtifactItemType(int dataval, String itemname, TierType tier, UpgradePath upgrade, String[] recipe, ItemStack[] itemtiers, double[] damageamt) { |
||||
ArtifactItemType(dataval,itemname,tier,upgrade,recipe,itemtiers,damageamt,new int[]{}); |
||||
} |
||||
|
||||
ArtifactItemType(int dataval, String itemname, TierType tier, UpgradePath upgrade, String[] recipe, ItemStack[] itemtiers) { |
||||
ArtifactItemType(dataval,itemname,tier,upgrade,recipe,itemtiers,new double[]{},new int[]{}); |
||||
} |
||||
|
||||
private void ArtifactItemType(int dataval, String itemname, TierType tier, UpgradePath upgrade, String[] recipe, ItemStack[] itemtiers, double[] damageamt, int[] healthamt) { |
||||
this.data=dataval; |
||||
this.itemname=itemname; |
||||
this.tier=tier; |
||||
this.upgrade=upgrade; |
||||
this.recipe=recipe; |
||||
this.itemtiers=itemtiers; |
||||
this.damageamt = damageamt; |
||||
this.healthamt = healthamt; |
||||
}; |
||||
|
||||
public int getDataValue() { |
||||
return this.data; |
||||
} |
||||
public String getItemName() { |
||||
return this.itemname; |
||||
} |
||||
public TierType getTier() { |
||||
return this.tier; |
||||
} |
||||
public UpgradePath getUpgradePath() { |
||||
return this.upgrade; |
||||
} |
||||
public double getDamageAmt(int tier) { |
||||
if (this.damageamt.length>=tier) { |
||||
TwosideKeeper.log("Returning value "+this.damageamt[tier-1], 5); |
||||
return this.damageamt[tier-1]; |
||||
} else { |
||||
return -1; |
||||
} |
||||
} |
||||
public int getHealthAmt(int tier) { |
||||
if (this.healthamt.length>=tier) { |
||||
return this.healthamt[tier-1]; |
||||
} else { |
||||
return -1; |
||||
} |
||||
} |
||||
|
||||
public ShapedRecipe defineBaseRecipe() { |
||||
ShapedRecipe axe_layout_recipe = new ShapedRecipe(Artifact.createRecipe(0, this)); |
||||
axe_layout_recipe.shape(recipe); |
||||
axe_layout_recipe.setIngredient('E', Material.PUMPKIN_SEEDS); |
||||
return axe_layout_recipe; |
||||
} |
||||
public void defineAllDecompRecipes() { |
||||
for (int i=0;i<10;i++) { |
||||
ShapelessRecipe decomp_recipe = new ShapelessRecipe(Artifact.createRecipe(i+1, this)); |
||||
decomp_recipe.addIngredient(itemtiers[i].getType()); |
||||
Bukkit.addRecipe(decomp_recipe); |
||||
} |
||||
} |
||||
|
||||
public ItemStack getTieredItem(int tier) { |
||||
ItemStack ouritem = itemtiers[tier-1]; |
||||
switch (tier) { |
||||
case 1:{ |
||||
switch (upgrade) { |
||||
case WEAPON:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 1); |
||||
}break; |
||||
case BOW:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 1); |
||||
}break; |
||||
case ARMOR:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 1); |
||||
}break; |
||||
case TOOL:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DIG_SPEED, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 1); |
||||
}break; |
||||
} |
||||
}break; |
||||
case 2:{ |
||||
switch (upgrade) { |
||||
case WEAPON:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 2); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 2); |
||||
}break; |
||||
case BOW:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 2); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 2); |
||||
}break; |
||||
case ARMOR:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 2); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 2); |
||||
}break; |
||||
case TOOL:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DIG_SPEED, 2); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 2); |
||||
}break; |
||||
} |
||||
}break; |
||||
case 3:{ |
||||
switch (upgrade) { |
||||
case WEAPON:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 3); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 3); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_MOBS, 1); |
||||
}break; |
||||
case BOW:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 4); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 3); |
||||
}break; |
||||
case ARMOR:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 3); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_EXPLOSIONS, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FALL, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FIRE, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_PROJECTILE, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 3); |
||||
}break; |
||||
case TOOL:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DIG_SPEED, 3); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 3); |
||||
}break; |
||||
} |
||||
}break; |
||||
case 4:{ |
||||
switch (upgrade) { |
||||
case WEAPON:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 4); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 4); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_MOBS, 1); |
||||
}break; |
||||
case BOW:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 5); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 4); |
||||
}break; |
||||
case ARMOR:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 4); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_EXPLOSIONS, 2); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FALL, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FIRE, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_PROJECTILE, 2); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 5); |
||||
}break; |
||||
case TOOL:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DIG_SPEED, 4); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 4); |
||||
}break; |
||||
} |
||||
}break; |
||||
case 5:{ |
||||
switch (upgrade) { |
||||
case WEAPON:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 6); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 6); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_MOBS, 2); |
||||
}break; |
||||
case BOW:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 7); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 6); |
||||
}break; |
||||
case ARMOR:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 6); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_EXPLOSIONS, 4); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FALL, 2); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FIRE, 2); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_PROJECTILE, 4); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 7); |
||||
}break; |
||||
case TOOL:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DIG_SPEED, 6); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 6); |
||||
}break; |
||||
} |
||||
}break; |
||||
case 6:{ |
||||
switch (upgrade) { |
||||
case WEAPON:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 8); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 8); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_MOBS, 3); |
||||
}break; |
||||
case BOW:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 8); |
||||
}break; |
||||
case ARMOR:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 8); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_EXPLOSIONS, 6); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FALL, 4); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FIRE, 4); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_PROJECTILE, 6); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); |
||||
}break; |
||||
case TOOL:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DIG_SPEED, 8); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 8); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_BLOCKS, 1); |
||||
}break; |
||||
} |
||||
}break; |
||||
case 7:{ |
||||
switch (upgrade) { |
||||
case WEAPON:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_MOBS, 5); |
||||
ouritem.addUnsafeEnchantment(Enchantment.KNOCKBACK, 1); |
||||
}break; |
||||
case BOW:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 12); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_KNOCKBACK, 1); |
||||
}break; |
||||
case ARMOR:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_EXPLOSIONS, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FALL, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FIRE, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_PROJECTILE, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 14); |
||||
}break; |
||||
case TOOL:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DIG_SPEED, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_BLOCKS, 2); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 2); |
||||
}break; |
||||
} |
||||
}break; |
||||
case 8:{ |
||||
switch (upgrade) { |
||||
case WEAPON:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 14); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_MOBS, 7); |
||||
ouritem.addUnsafeEnchantment(Enchantment.KNOCKBACK, 1); |
||||
}break; |
||||
case BOW:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 14); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_KNOCKBACK, 1); |
||||
}break; |
||||
case ARMOR:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 12); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_EXPLOSIONS, 12); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FALL, 12); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FIRE, 12); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_PROJECTILE, 12); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 14); |
||||
}break; |
||||
case TOOL:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DIG_SPEED, 14); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_BLOCKS, 4); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 6); |
||||
}break; |
||||
} |
||||
}break; |
||||
case 9:{ |
||||
switch (upgrade) { |
||||
case WEAPON:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 18); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_MOBS, 9); |
||||
ouritem.addUnsafeEnchantment(Enchantment.KNOCKBACK, 1); |
||||
}break; |
||||
case BOW:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 18); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_KNOCKBACK, 1); |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_INFINITE, 1); |
||||
}break; |
||||
case ARMOR:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 16); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_EXPLOSIONS, 16); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FALL, 16); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FIRE, 16); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_PROJECTILE, 16); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 18); |
||||
}break; |
||||
case TOOL:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DIG_SPEED, 18); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_BLOCKS, 7); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 12); |
||||
}break; |
||||
} |
||||
}break; |
||||
case 10:{ |
||||
switch (upgrade) { |
||||
case WEAPON:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 40); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 20); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_MOBS, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.KNOCKBACK, 2); |
||||
}break; |
||||
case BOW:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 40); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 20); |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_KNOCKBACK, 2); |
||||
ouritem.addUnsafeEnchantment(Enchantment.ARROW_INFINITE, 1); |
||||
}break; |
||||
case ARMOR:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 20); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_EXPLOSIONS, 20); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FALL, 20); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_FIRE, 20); |
||||
ouritem.addUnsafeEnchantment(Enchantment.PROTECTION_PROJECTILE, 20); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 75); |
||||
}break; |
||||
case TOOL:{ |
||||
ouritem.addUnsafeEnchantment(Enchantment.DIG_SPEED, 40); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DURABILITY, 20); |
||||
ouritem.addUnsafeEnchantment(Enchantment.LOOT_BONUS_BLOCKS, 10); |
||||
ouritem.addUnsafeEnchantment(Enchantment.DAMAGE_ALL, 20); |
||||
}break; |
||||
}break; |
||||
} |
||||
} |
||||
return ouritem; |
||||
} |
||||
|
||||
} |
||||
|
||||
enum TierType { |
||||
ALL, //Contains Wooden, Stone, Iron, Gold, Diamond Variants of this item.
|
||||
ONE, //Only the specified item exists for this type of Artifact.
|
||||
ARMOR //The armor type contains Leather, Iron, Gold, and Diamond Variants.
|
||||
} |
||||
|
||||
enum UpgradePath { |
||||
WEAPON, //Weapon Upgrade Path - Boosts mostly offensive based statistics.
|
||||
BOW, //Bow Upgrade Path - Boosts mostly offensive based statistics, but for a bow.
|
||||
ARMOR, //Armor Upgrade Path - Boosts mostly defensive based statistics.
|
||||
TOOL //Tool Upgrade Path - Boosts mostly utility based statistics.
|
||||
} |
Loading…
Reference in new issue