Document and finalize the Garden of Glass. Missing the Cocoon of Caprice to be 100%.

This commit is contained in:
Lizbeth Rika committed 2015-07-07 22:20:13 +01:00
1 parent 025782d498
commit a0b47c9615
6 files changed
+36 -7

No files matched your search

@@ -42,7 +42,7 @@ public class BlockRoot extends BlockMod {
@Override
public int quantityDropped(Random r) {
return 2 + r.nextInt(2);
return 2 + r.nextInt(3);
}
}
@@ -91,6 +91,12 @@ public class ItemManaResource extends ItemMod implements IFlowerComponent, IElve
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) {
if(par1ItemStack.getItemDamage() == 4 || par1ItemStack.getItemDamage() == 14)
return EntityDoppleganger.spawn(par2EntityPlayer, par1ItemStack, par3World, par4, par5, par6, par1ItemStack.getItemDamage() == 14);
else if(par1ItemStack.getItemDamage() == 20 && net.minecraft.item.ItemDye.applyBonemeal(par1ItemStack, par3World, par4, par5, par6, par2EntityPlayer)) {
if(!par3World.isRemote)
par3World.playAuxSFX(2005, par4, par5, par6, 0);
return true;
}
return super.onItemUse(par1ItemStack, par2EntityPlayer, par3World, par4, par5, par6, par7, par8, par9, par10);
}
@@ -69,6 +69,7 @@ public final class LexiconData {
public static LexiconEntry terrasteel;
public static LexiconEntry blackLotus;
public static LexiconEntry flowerBag;
public static LexiconEntry gardenOfGlass;
public static LexiconEntry manaIntro;
public static LexiconEntry spreader;
@@ -321,6 +322,12 @@ public final class LexiconData {
flowerBag = new BLexiconEntry(LibLexicon.BASICS_FLOWER_BAG, categoryBasics);
flowerBag.setLexiconPages(new PageText("0"), new PageText("2"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeFlowerBag));
if(Botania.gardenOfGlassLoaded) {
gardenOfGlass = new BLexiconEntry(LibLexicon.BASICS_GARDEN_OF_GLASS, categoryBasics);
gardenOfGlass.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipeRootToSapling), new PageCraftingRecipe("4", ModCraftingRecipes.recipeRootToFertilizer), new PageCraftingRecipe("5", ModCraftingRecipes.recipePebbleCobblestone), new PageText("6"), new PageManaInfusionRecipe("7", ModManaInfusionRecipes.sugarCaneRecipe), new PageCraftingRecipe("8", ModCraftingRecipes.recipeMagmaToSlimeball), new PageText("9"), new PageCraftingRecipe("10", ModCraftingRecipes.recipeFelPumpkin));
gardenOfGlass.setPriority().setIcon(new ItemStack(ModItems.manaResource, 1, 20));
}
if(Botania.thaumcraftLoaded)
new CLexiconEntry("wrap", categoryBasics, "Thaumcraft").setLexiconPages(new PageText("0")); // lel
@@ -38,6 +38,7 @@ public final class LibLexicon {
public static final String BASICS_TERRASTEEL = "terrasteel";
public static final String BASICS_BLACK_LOTUS = "blackLotus";
public static final String BASICS_FLOWER_BAG = "flowerBag";
public static final String BASICS_GARDEN_OF_GLASS = "gardenOfGlass";
public static final String MANA_INTRO = "mIntro";
public static final String MANA_SPREADER = "spreader";
@@ -58,10 +58,11 @@ public final class SkyblockWorldEvents {
if(block == Blocks.grass || block == Blocks.dirt) {
if(event.world.isRemote)
event.entityPlayer.swingItem();
else event.world.playSoundEffect(event.x + 0.5, event.y + 0.5, event.z + 0.5, block.stepSound.getBreakSound(), block.stepSound.getVolume() * 0.4F, block.stepSound.getPitch() + (float) (Math.random() * 0.2 - 0.1));
if(event.world.rand.nextInt(3) == 0)
event.entityPlayer.inventory.addItemStackToInventory(new ItemStack(ModItems.manaResource, 1, 21));
else {
event.world.playSoundEffect(event.x + 0.5, event.y + 0.5, event.z + 0.5, block.stepSound.getBreakSound(), block.stepSound.getVolume() * 0.4F, block.stepSound.getPitch() + (float) (Math.random() * 0.2 - 0.1));
if(Math.random() < 0.4)
event.entityPlayer.dropPlayerItemWithRandomChoice(new ItemStack(ModItems.manaResource, 1, 21), false);
}
}
}
}