@Override
public void onEntityCollision(BlockState state, World worldIn, BlockPos pos, Entity entityIn){
if (!worldIn.isRemote && entityIn instanceof LivingEntity) {
LivingEntity entity = (LivingEntity) entityIn;
entity.addPotionEffect(new EffectInstance(Effects.GLOWING, 1, 1));
}
}