Hello, I'm trying to create a new block that once placed by the player it will act differently if the player placed the block while sneaking as opposed to while just standing up.
so if the block is placed while sneaking (holding shift key) it will trigger one event and if placed while standing (without holding shift) it will trigger a different event.
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack)
{
if(par5EntityLiving.isSneaking()){
so if the block is placed while sneaking (holding shift key) it will trigger one event and if placed while standing (without holding shift) it will trigger a different event.
any ideas?
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack)
{
if(par5EntityLiving.isSneaking()){
} else {
}
}