Advertisement
Guest User

Untitled

a guest
Aug 28th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. if (wave >= 5) {
  2. ItemStack helmet;
  3. ItemStack chestplate;
  4. ItemStack leggings;
  5. ItemStack boots;
  6. ItemStack weapon;
  7.  
  8. if (wave < 10) {
  9. helmet = new ItemStack(Material.LEATHER_HELMET);
  10. chestplate = new ItemStack(Material.LEATHER_CHESTPLATE);
  11. leggings = new ItemStack(Material.LEATHER_LEGGINGS);
  12. boots = new ItemStack(Material.LEATHER_BOOTS);
  13. weapon = new ItemStack(Material.WOOD_SWORD);
  14.  
  15. } else if (wave < 15) {
  16. helmet = new ItemStack(Material.CHAINMAIL_HELMET);
  17. chestplate = new ItemStack(Material.CHAINMAIL_CHESTPLATE);
  18. leggings = new ItemStack(Material.CHAINMAIL_LEGGINGS);
  19. boots = new ItemStack(Material.CHAINMAIL_BOOTS);
  20. weapon = new ItemStack(Material.WOOD_AXE);
  21.  
  22. } else if (wave < 20) {
  23. helmet = new ItemStack(Material.IRON_HELMET);
  24. chestplate = new ItemStack(Material.IRON_CHESTPLATE);
  25. leggings = new ItemStack(Material.IRON_LEGGINGS);
  26. boots = new ItemStack(Material.IRON_BOOTS);
  27. weapon = new ItemStack(Material.IRON_SWORD);
  28.  
  29. } else if (wave < 25) {
  30. helmet = new ItemStack(Material.GOLD_HELMET);
  31. chestplate = new ItemStack(Material.GOLD_CHESTPLATE);
  32. leggings = new ItemStack(Material.GOLD_LEGGINGS);
  33. boots = new ItemStack(Material.GOLD_BOOTS);
  34. weapon = new ItemStack(Material.GOLD_SWORD);
  35.  
  36. } else {
  37. helmet = new ItemStack(Material.DIAMOND_HELMET);
  38. chestplate = new ItemStack(Material.DIAMOND_CHESTPLATE);
  39. leggings = new ItemStack(Material.DIAMOND_LEGGINGS);
  40. boots = new ItemStack(Material.DIAMOND_BOOTS);
  41. weapon = new ItemStack(Material.DIAMOND_SWORD);
  42.  
  43. }
  44. for (ControllableMob<LivingEntity> cm : monsters) {
  45. LivingEntity e = cm.getEntity();
  46. if (!e.getType().equals(EntityType.CREEPER)
  47. && !e.getType().equals(EntityType.WITCH)) {
  48. EntityEquipment equip = e.getEquipment();
  49. equip.setBoots(boots);
  50. equip.setChestplate(chestplate);
  51. equip.setHelmet(helmet);
  52. equip.setLeggings(leggings);
  53. equip.setItemInHand(weapon);
  54.  
  55. equip.setBootsDropChance(0);
  56. equip.setChestplateDropChance(0);
  57. equip.setHelmetDropChance(0);
  58. equip.setLeggingsDropChance(0);
  59. equip.setItemInHandDropChance(0);
  60.  
  61. e.setMaxHealth(Math.round(e.getMaxHealth() + amplifier));
  62. }
  63. }
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement