mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Added the Horn of the Covering to clear snow. Closes #648
This commit is contained in:
1 parent
6c922ebc8f
commit
dc01b5ad8e
6 files changed
+13
-5
No files matched your search
@@ -239,6 +239,7 @@ public final class ModCraftingRecipes {
|
||||
public static List<IRecipe> recipesCosmeticItems;
|
||||
public static List<IRecipe> recipesMushrooms;
|
||||
public static IRecipe recipeSwapRing;
|
||||
public static IRecipe recipeSnowHorn;
|
||||
|
||||
public static void init() {
|
||||
// Lexicon Recipe
|
||||
@@ -1587,6 +1588,10 @@ public final class ModCraftingRecipes {
|
||||
'M', LibOreDict.MANA_STEEL);
|
||||
recipeSwapRing = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Horn of the Covering Recipe
|
||||
addShapelessOreDictRecipe(new ItemStack(ModItems.grassHorn, 1, 2), new ItemStack(ModItems.grassHorn), new ItemStack(Items.snowball));
|
||||
recipeSnowHorn = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Storage Block Recipes
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
|
||||
"III", "III", "III",
|
||||
|
||||
@@ -22,6 +22,7 @@ import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.EnumAction;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -36,7 +37,7 @@ import vazkii.botania.common.lib.LibItemNames;
|
||||
|
||||
public class ItemGrassHorn extends ItemMod {
|
||||
|
||||
private static final int SUBTYPES = 2;
|
||||
private static final int SUBTYPES = 3;
|
||||
IIcon[] icons;
|
||||
|
||||
public ItemGrassHorn() {
|
||||
@@ -112,7 +113,7 @@ public class ItemGrassHorn extends ItemMod {
|
||||
int z = srcz + j;
|
||||
|
||||
Block block = world.getBlock(x, y, z);
|
||||
if(stackDmg == 0 && block instanceof BlockBush && !(block instanceof ISpecialFlower) && (!(block instanceof IGrassHornExcempt) || ((IGrassHornExcempt) block).canUproot(world, x, y, z)) || stackDmg == 1 && block instanceof BlockLeavesBase)
|
||||
if((stackDmg == 0 && block instanceof BlockBush && !(block instanceof ISpecialFlower) && (!(block instanceof IGrassHornExcempt) || ((IGrassHornExcempt) block).canUproot(world, x, y, z))) || (stackDmg == 1 && block instanceof BlockLeavesBase) || (stackDmg == 2 && block == Blocks.snow_layer))
|
||||
coords.add(new ChunkCoordinates(x, y, z));
|
||||
}
|
||||
|
||||
|
||||
@@ -567,7 +567,7 @@ public final class LexiconData {
|
||||
terrasteelArmor.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeTerrasteelHelm), new PageCraftingRecipe("2", ModCraftingRecipes.recipeTerrasteelChest), new PageCraftingRecipe("3", ModCraftingRecipes.recipeTerrasteelLegs), new PageCraftingRecipe("4", ModCraftingRecipes.recipeTerrasteelBoots));
|
||||
|
||||
grassHorn = new BLexiconEntry(LibLexicon.TOOL_GRASS_HORN, categoryTools);
|
||||
grassHorn.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeGrassHorn), new PageCraftingRecipe("2", ModCraftingRecipes.recipeLeafHorn));
|
||||
grassHorn.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeGrassHorn), new PageCraftingRecipe("2", ModCraftingRecipes.recipeLeafHorn), new PageCraftingRecipe("3", ModCraftingRecipes.recipeSnowHorn));
|
||||
|
||||
terraBlade = new BLexiconEntry(LibLexicon.TOOL_TERRA_SWORD, categoryTools);
|
||||
terraBlade.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeTerraSword));
|
||||
|
||||
@@ -944,6 +944,7 @@ item.botania:manasteelSword.name=Manasteel Sword
|
||||
item.botania:manasteelShears.name=Manasteel Shears
|
||||
item.botania:grassHorn0.name=Horn of the Wild
|
||||
item.botania:grassHorn1.name=Horn of the Canopy
|
||||
item.botania:grassHorn2.name=Horn of the Covering
|
||||
item.botania:terrasteel.name=Terrasteel Ingot
|
||||
item.botania:terrasteelHelm.name=Terrasteel Helmet
|
||||
item.botania:terrasteelChest.name=Terrasteel Chestplate
|
||||
@@ -1812,9 +1813,10 @@ botania.page.manaGear9=The &1Manasteel Boots&0
|
||||
|
||||
# -- HORN OF THE WILD
|
||||
botania.entry.grassHorn=Horn of the Wild
|
||||
botania.page.grassHorn0=Clearing out &1Tall Grass&0 by hand can definitely be a nuisance.<br>Simply blowing the &1Horn of the Wild&0 will quickly cause any nearby vegetation to uproot, leaving behind drops as if it had been broken by hand.<br>With some modifications, the horn can be modified to break leaves instead.
|
||||
botania.page.grassHorn0=Clearing out &1Tall Grass&0 by hand can definitely be a nuisance.<br>Simply blowing the &1Horn of the Wild&0 will quickly cause any nearby vegetation to uproot, leaving behind drops as if it had been broken by hand.<br>With some modifications, the horn can be modified to break leaves or snow instead.
|
||||
botania.page.grassHorn1=Crafting the horn
|
||||
botania.page.grassHorn2=Modifying the horn
|
||||
botania.page.grassHorn2=Modifying to break &1Leaves&0
|
||||
botania.page.grassHorn3=Modifying to break &1Snow&0
|
||||
|
||||
# -- TERRASTEEL ARMOR
|
||||
botania.entry.terrasteelArmor=Terrasteel Armor
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
File renamed without changes.
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Reference in new issue
Block a user