Tweaked Ambrosia, changed how you obtain the ??? music disc
This commit is contained in:
parent
01f052847f
commit
702afea7c0
7 changed files with 34 additions and 15 deletions
|
@ -39,7 +39,7 @@ public class BOPAchievements
|
|||
|
||||
public static Achievement achPromised;
|
||||
public static Achievement achCelestial;
|
||||
public static Achievement achBird;
|
||||
public static Achievement achAmbrosia;
|
||||
|
||||
public static AchievementPage pageBiome;
|
||||
|
||||
|
@ -66,10 +66,10 @@ public class BOPAchievements
|
|||
|
||||
achPromised = (new Achievement(3093, "bop.achPromised", 1, -3, new ItemStack(Blocks.holyGrass.get(), 1, 0), achFlower)).registerAchievement().setSpecial();
|
||||
achCelestial = (new Achievement(3094, "bop.achCelestial", -1, -4, new ItemStack(Items.miscItems.get(), 1, 4), achPromised)).registerAchievement();
|
||||
achBird = (new Achievement(3095, "bop.achBird", 0, -6, new ItemStack(Item.feather, 1, 0), achCelestial)).registerAchievement();
|
||||
achAmbrosia = (new Achievement(3095, "bop.achAmbrosia", 0, -6, new ItemStack(Items.food.get(), 1, 10), achCelestial)).registerAchievement();
|
||||
|
||||
biomesOPlentyAchievementList = new Achievement[] { achFlower, achFlowerBand, achDartBlower, achScythe, achEnderporter, achBerry, achMoss, achThorn, achCoral,
|
||||
achHoney, achWitherWart, achGrave, achPhantom, achPromised, achCelestial, achBird};
|
||||
achHoney, achWitherWart, achGrave, achPhantom, achPromised, achCelestial, achAmbrosia};
|
||||
|
||||
pageBiome = new AchievementPage("Biomes O\' Plenty", biomesOPlentyAchievementList);
|
||||
|
||||
|
|
|
@ -263,7 +263,6 @@ public class BOPCrafting
|
|||
}
|
||||
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(Items.bopDiscMud.get(), 1), new Object[] {" M ", "MDM", " M ", 'M', Items.mudball.get(), 'D', Items.bopDisc.get()});
|
||||
GameRegistry.addRecipe(new ItemStack(Blocks.planks.get(), 1, 10), new Object[] {"##", "##", '#', Blocks.bamboo.get()});
|
||||
GameRegistry.addRecipe(new ItemStack(Items.jarEmpty.get(), 3, 0), new Object[] {"# #", "# #", "###", '#', Block.glass});
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Items.food.get(), 1, 10), new Object[] {Block.plantYellow, new ItemStack(Item.potion, 1, 0), new ItemStack(Blocks.flowers2.get(), 1, 6), new ItemStack(Blocks.coral.get(), 1, 3), new ItemStack(Blocks.plants.get(), 1, 15), new ItemStack(Items.miscItems.get(), 1, 4), new ItemStack(Items.jarFilled.get(), 1, 0), new ItemStack(Items.food.get(), 1, 0), Item.sugar});
|
||||
|
|
|
@ -38,7 +38,6 @@ public class BOPVanillaCompat {
|
|||
|
||||
if (BOPConfigurationMisc.dungeonLoot == true)
|
||||
{
|
||||
dungeon.addItem(new WeightedRandomChestContent(new ItemStack(Items.bopDisc.get()), 1, 1, 2));
|
||||
dungeon.addItem(new WeightedRandomChestContent(new ItemStack(Blocks.colorizedSaplings.get(),1,6), 1, 1, 1));
|
||||
|
||||
mineshaft.addItem(new WeightedRandomChestContent(new ItemStack(Items.miscItems.get(), 1, 1), 2, 8, 25));
|
||||
|
|
|
@ -5,6 +5,7 @@ import net.minecraft.entity.SharedMonsterAttributes;
|
|||
import net.minecraft.entity.monster.IMob;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
@ -263,13 +264,23 @@ public class EntityGlob extends EntityLiving implements IMob
|
|||
return "mob.slime." + (this.getGlobSize() > 1 ? "big" : "small");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the item ID for the item the mob drops on death.
|
||||
*/
|
||||
@Override
|
||||
protected int getDropItemId()
|
||||
protected void dropFewItems(boolean par1, int par2)
|
||||
{
|
||||
return this.getGlobSize() == 1 ? Item.slimeBall.itemID : Items.mudball.get().itemID;
|
||||
int var3 = rand.nextInt(3) + rand.nextInt(1 + par2);
|
||||
|
||||
if (rand.nextInt(1000) == 0)
|
||||
{
|
||||
this.entityDropItem(new ItemStack(Items.bopDiscMud.get(), 1, 1), 0.0F);
|
||||
}
|
||||
|
||||
for (int var4 = 0; var4 < var3; ++var4)
|
||||
{
|
||||
this.entityDropItem(new ItemStack(Items.mudball.get(), 1, 1), 0.0F);
|
||||
}
|
||||
|
||||
|
||||
this.dropItem(Item.slimeBall.itemID, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -30,6 +30,12 @@ public class BOPCraftHandler implements ICraftingHandler
|
|||
var1.addStat(BOPAchievements.achFlowerBand, 1);
|
||||
}
|
||||
|
||||
//Drink of the Gods
|
||||
if (var2.itemID == Items.food.get().itemID && var2.getItemDamage() == 10)
|
||||
{
|
||||
var1.addStat(BOPAchievements.achAmbrosia, 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -228,6 +228,10 @@ public class ItemBOPFood extends ItemFood
|
|||
|
||||
case 10:
|
||||
player.addPotionEffect(new PotionEffect(Potion.field_76444_x.id, 5000, 4));
|
||||
player.addPotionEffect(new PotionEffect(Potion.field_76443_y.id, 100, 1));
|
||||
player.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 500, 2));
|
||||
player.addPotionEffect(new PotionEffect(Potion.regeneration.id, 400, 2));
|
||||
player.addPotionEffect(new PotionEffect(Potion.resistance.id, 600, 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -438,8 +438,8 @@ achievement.bop.achPromised=Movin' On Up!
|
|||
achievement.bop.achPromised.desc=Welcome to the Promised Land!
|
||||
achievement.bop.achCelestial=Blue Sky
|
||||
achievement.bop.achCelestial.desc=I am the one who...blocks...
|
||||
achievement.bop.achBird=Free Bird
|
||||
achievement.bop.achBird.desc=Well, not anymore.
|
||||
achievement.bop.achAmbrosia=Drink of the Gods
|
||||
achievement.bop.achAmbrosia.desc=Stay thirst, my friends.
|
||||
|
||||
itemGroup.tabBiomesOPlenty=Biomes O' Plenty
|
||||
|
||||
|
|
Loading…
Reference in a new issue