Renamed Antiwart to Wither Wart
This commit is contained in:
parent
f2a3589cba
commit
51f57d79cc
7 changed files with 12 additions and 13 deletions
|
@ -35,7 +35,7 @@
|
|||
<entry key="tile.bop.plants.cattailbottom.name">Cattail</entry>
|
||||
<entry key="tile.bop.plants.reed.name">Reed</entry>
|
||||
<entry key="tile.bop.plants.cactus.name">Tiny Cactus</entry>
|
||||
<entry key="tile.bop.plants.antiwart.name">Antiwart</entry>
|
||||
<entry key="tile.bop.plants.witherwart.name">Wither Wart</entry>
|
||||
|
||||
<entry key="tile.bop.flowers.clover.name">Clover</entry>
|
||||
<entry key="tile.bop.flowers.swampflower.name">Swampflower</entry>
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 311 B |
Binary file not shown.
After Width: | Height: | Size: 398 B |
|
@ -156,7 +156,7 @@ public class BlockReferences {
|
|||
cattail (Blocks.plants, 7),
|
||||
reed (Blocks.plants, 8),
|
||||
tinyCactus (Blocks.plants, 12),
|
||||
antiwart (Blocks.plants, 13),
|
||||
witherwart (Blocks.plants, 13),
|
||||
|
||||
treeMoss (Blocks.treeMoss, 0),
|
||||
moss (Blocks.moss, 0),
|
||||
|
|
|
@ -13,6 +13,8 @@ import net.minecraft.creativetab.CreativeTabs;
|
|||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
@ -27,7 +29,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
|
||||
public class BlockBOPPlant extends BlockFlower implements IShearable
|
||||
{
|
||||
private static final String[] plants = new String[] {"deadgrass", "desertgrass", "desertsprouts", "dunegrass", "holytallgrass", "thorn", "barley", "cattail", "reed", "cattailtop", "cattailbottom", "wildcarrot", "cactus", "antiwart"};
|
||||
private static final String[] plants = new String[] {"deadgrass", "desertgrass", "desertsprouts", "dunegrass", "holytallgrass", "thorn", "barley", "cattail", "reed", "cattailtop", "cattailbottom", "wildcarrot", "cactus", "witherwart"};
|
||||
private Icon[] textures;
|
||||
|
||||
private static final int CATTAILTOP = 9;
|
||||
|
@ -339,6 +341,11 @@ public class BlockBOPPlant extends BlockFlower implements IShearable
|
|||
public void harvestBlock(World world, EntityPlayer player, int x, int y, int z, int meta)
|
||||
{
|
||||
super.harvestBlock(world, player, x, y, z, meta);
|
||||
|
||||
if (meta == 13)
|
||||
{
|
||||
player.addPotionEffect(new PotionEffect(Potion.wither.id, 200));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -366,14 +373,6 @@ public class BlockBOPPlant extends BlockFlower implements IShearable
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
|
||||
{
|
||||
int meta = par1World.getBlockMetadata(par2, par3, par4);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBlockReplaceable(World world, int x, int y, int z)
|
||||
|
|
|
@ -13,7 +13,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
|
||||
public class ItemBlockPlant extends ItemBlock
|
||||
{
|
||||
private static final String[] plants = new String[] {"deadgrass", "desertgrass", "desertsprouts", "dunegrass", "holytallgrass", "thorn", "barley", "cattail", "reed", "cattailtop", "cattailbottom", "wildcarrot", "cactus", "antiwart"};
|
||||
private static final String[] plants = new String[] {"deadgrass", "desertgrass", "desertsprouts", "dunegrass", "holytallgrass", "thorn", "barley", "cattail", "reed", "cattailtop", "cattailbottom", "wildcarrot", "cactus", "witherwart"};
|
||||
@SideOnly(Side.CLIENT)
|
||||
private Icon[] textures;
|
||||
|
||||
|
@ -39,7 +39,7 @@ public class ItemBlockPlant extends ItemBlock
|
|||
textures[0] = iconRegister.registerIcon("biomesoplenty:item_barley");
|
||||
textures[1] = iconRegister.registerIcon("biomesoplenty:item_cattail");
|
||||
textures[2] = iconRegister.registerIcon("biomesoplenty:item_reed");
|
||||
textures[3] = iconRegister.registerIcon("biomesoplenty:item_antiwart");
|
||||
textures[3] = iconRegister.registerIcon("biomesoplenty:item_witherwart");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue