Guest User

Untitled

a guest
Apr 2nd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1.     @Override
  2.     public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
  3.     {
  4.         playerIn.attackEntityFrom(new CogsDamageSource(), 10);
  5.         return true;
  6.     }
  7.  
  8.     @Override
  9.     public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)
  10.     {
  11.         entityIn.attackEntityFrom(new CogsDamageSource(), 10);
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment