Tweaked how the Air Orb takes damage.
This commit is contained in:
parent
a01bdcebbf
commit
a958f31454
1 changed files with 2 additions and 7 deletions
|
|
@ -21,18 +21,13 @@ public class ItemOrbAir extends Item {
|
||||||
|
|
||||||
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer)
|
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer)
|
||||||
{
|
{
|
||||||
world.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F);
|
|
||||||
|
|
||||||
if (entityPlayer.onGround)
|
if (entityPlayer.onGround)
|
||||||
{
|
{
|
||||||
|
world.playSoundEffect(entityPlayer.posX, entityPlayer.posY, entityPlayer.posZ, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F);
|
||||||
|
itemStack.damageItem(1, entityPlayer);
|
||||||
entityPlayer.addVelocity(0, 2.5, 0);
|
entityPlayer.addVelocity(0, 2.5, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!world.isRemote)
|
|
||||||
{
|
|
||||||
itemStack.damageItem(1, entityPlayer);
|
|
||||||
}
|
|
||||||
|
|
||||||
return itemStack;
|
return itemStack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue